Add custom field to customer order notification email

  • Posts: 56
  • Thank you received: 4
7 years 7 months ago #267669

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5

Not sure why I'm having so much trouble but I would like to add a simple blurb of text to the customers order notification email when the customer buys a product from a specific category. I have tried creating a custom field in both "Item" and "Order" tables, tried "text area" and "custom text" field types. and have selected the fields to display everywhere including the various emails.. they do show everywhere on the site but never on the emails! what am i doing wrong? I specified the category containing all these products in the restrictions section of the custom field. I added "field" to the checkout workflow as well.



Thanks

Matt

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 7 months ago #267720

Hi,

Custom order fields allow customers to fill them during the checkout. Custom item fields allow customers to fill them on the product page.
There are no custom fields to just display text in the notification emails.
That will require editing the emails via the menu System>Emails and add some custom code to display your text based on the categories of the products in the order. It's not just one or two lines, as you need to go through the products of the order, get their id, load the categories of these products with a MySQL query and then display or not the text based on that.

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

Time to create page: 0.054 seconds
Powered by Kunena Forum