Skip to main content

Add address custom fields in admin order email

More
9 years 2 months ago #273227 by verzevoul
-- 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

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

More
9 years 2 months ago #273229 by nicolas
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.

More
9 years 2 months ago #273609 by verzevoul
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

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

More
9 years 2 months ago #273610 by nicolas
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:
Code:
{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.154 seconds
Powered by Kunena Forum