Jump to content

1.7.5 Set different Alias for an Invoice Address


jowjow

Recommended Posts

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 by jowjow (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...