customer_info = $customer_info; $this->sale_lib = new Sale_lib(); } /** * @return string */ public function token_id(): string { return 'CU'; } /** * @return string */ public function get_value(): string { // Substitute customer info $customer_id = $this->sale_lib->get_customer(); if ($customer_id != NEW_ITEM && empty($this->customer_info)) { $customer = model(Customer::class); $customer_info = $customer->get_info($customer_id); if ($customer_info != '') { return trim($customer_info->first_name . ' ' . $customer_info->last_name); } } return ''; } }