Jump to content

Edit History

jowjow

jowjow

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');

         }

        }

 

jowjow

jowjow

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('My Address', [], 'Shop.Theme.Checkout');

        }

 

×
×
  • Create New...