jowjow Posted April 2, 2019 Share Posted April 2, 2019 (edited) Hi, I need to set a different Alias for Invoice Address. I've already check Address.php, CustomerAddress.php CheckoutAddressesStep.php and I can't figure out where can I set it. I was trying to override CustomerAddress.php changing those lines, but I had no lucky at all. if (empty($address->alias)) { $address->alias = $this->translator->trans('My Address', [], 'Shop.Theme.Checkout'); } I need something like this if (empty($address->alias)) { if(id_invoice_address - or something else){ $address->alias = $this->translator->trans('Invoice Address', [], 'Shop.Theme.Checkout'); } else { $address->alias = $this->translator->trans('My Address', [], 'Shop.Theme.Checkout'); } } Edited April 2, 2019 by jowjow (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now