Add product description to customer/admin email

  • Posts: 21
  • Thank you received: 0
11 years 2 months ago #150855

-- url of the page with the problem -- :http://www.setup-pilotage.com/
-- HikaShop version -- : HikaShop Business: 2.3.0
-- Joomla version -- : 2.5
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Hi,

I realize there is already one subject just like this : hikashop.com/forum/checkout/864527-how-t...-to-admin-email.html

But couldn't really understand the solution :oops:

I only have a few product which have a description (the ones with reductions, like "Baptême offert pour l'achat de ce stage"). I want to display this descritpion under the product name in the email.

For my email modifications, I have been using the Views->Emails for the moment.


Merci d'avance pour le retour, super travail à tous ;)
Loïc

Last edit: 11 years 1 month ago by Paganikon.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 2 months ago #150893

Hi,

You have to edit in the mail menu "order_status_notification.preload.php", "order_admin_notification.preload.php", "order_status_notification.html.php" and "order_admin_notification.html.php".

In the preload files, add:

$cartProduct['PRODUCT_DESCRIPTION'] = '<p>'.$item->order_product_description.'</p>';
After:
$cartProduct['PRODUCT_DOWNLOAD'] = $t;

And in the html, add:
{LINEVAR:PRODUCT_DESCRIPTION}
Before (for example):
{LINEVAR:PRODUCT_DOWNLOAD}

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

  • Posts: 21
  • Thank you received: 0
11 years 1 month ago #151726

Haven't had the chance of testing this, but I'm sure it works perfectly ! Thanks for the quick answer ;)

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

Time to create page: 0.067 seconds
Powered by Kunena Forum