Add address custom fields in admin order email

  • Posts: 1057
  • Thank you received: 11
  • Hikashop Business
7 years 4 months ago #273227

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.7.2
-- PHP version -- : 7.0

Hello,

i have created several address custom fields (vat number, job etc) that appear when a user wants invoice instead of receipt.
So, when an order is created and invoice is selected, i want the admin order email to include those custom fields.
How can i do that?

Thank you in advance

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 4 months ago #273229

Hi,

You can add their corresponding tags in the "address format" setting of the HikaShop configuration.

The following user(s) said Thank You: verzevoul

Please Log in or Create an account to join the conversation.

  • Posts: 1057
  • Thank you received: 11
  • Hikashop Business
7 years 4 months ago #273609

Thank you nicolas,

another thing, vat number field is displayed only if the customer selects invoice, so in case the customer selects receipt there is an empty line in the address. Also this () shows up.
I would like to add a title before each address field, how can i do that?

Thank you

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 4 months ago #273610

Hi,

You can write the text you want directly in the address format field. you can add any HTML you want in there around the tags.

You also have the "mini address format" setting in the HikaShop configuration, which is used for the title.
As you can see there, the default format is:

{address_lastname} {address_firstname} - {address_street}, {address_state} ({address_country})
so if you have (), it just means that you don't have any country selected.
If you've disabled the country field, then you want to remove the ({address_country}) bit from the mini address format so that it doesn't display.

The following user(s) said Thank You: verzevoul

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum