Skip to main content

Adding custom field to billing address in email

More
4 hours 15 minutes ago #100000024 by yolknet
-- Browser(s) name and version -- : Firefox 156.0

In the confirmation mail after an order the billing and shipment address are displayed. I added a custom field for the house number. Where do I add this custom field so it's in the address block of the email?

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

More
2 hours 37 minutes ago #100000025 by nicolas
Hi,

The address block of the emails uses the address format of HikaShop, the same one as on the frontend. You can edit it in the "Address format" setting of the Checkout tab of the HikaShop configuration.

Add your field there with its column name between braces. For example, if the column name of your custom field is address_house_number:
Code:
{address_street} {address_house_number}
The column name is shown in the listing of Display > Custom fields. Once you save the configuration, the house number appears in the billing and shipping addresses of the emails, and everywhere else the addresses are displayed.

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

Time to create page: 0.160 seconds
Powered by Kunena Forum