Customer Order Email - Add related products

  • Posts: 100
  • Thank you received: 1
8 years 7 months ago #234732

-- HikaShop version -- : 2.6.1

Hi,

I am wondering if it would be possible, with custom development, to be able to add related products to the bottom of the Order creation notification email and/or the Order status notification. Using the related products data assigend to the product(s) in the order.

If you think this would be possible, could you point me in the right direction?

Thanks
Alex

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

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 7 months ago #234748

Hi,

It sure is possible.
You'll have to edit the emails via the menu System>Emails and add your custom code in the HTML version.
You'll want to loop through the products in $data->cart->products and for each one, get the product_id of the object, do a MySQL on the hikashop_related table to get the product_id of the related products of the products of the order, and then load their data from the table hikashop_product with another query, etc.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum