X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Add SKU to ask a question email (https://forum.x-cart.com/showthread.php?t=63872)

kdw 06-07-2012 06:03 AM

Add SKU to ask a question email
 
I have tried editing ask_question.tpl to add product sku after the product name.
Can't get it to work. Is the SKU variable available and how would I add it to the email.
Thanks

totaltec 06-07-2012 06:28 AM

Re: Add SKU to ask a question email
 
First you have to modify popup_ask.php.
Add this line after line 125:
PHP Code:

$mail_smarty->assign('sku',       $product['productcode']); 

Add it right after the line that assigns the product variable to smarty.

Then you can use the new {$sku} variable in your template. If your site uses html email the correct template is /common_files/mail/html/ask_question.tpl.

I added this line right after line 7:
PHP Code:

<br /><b>{$lng.lbl_sku}:</b> {$sku

You can of course put it wherever you want. :-)

kdw 06-07-2012 06:38 AM

Re: Add SKU to ask a question email
 
Works like a charm, thanks.


All times are GMT -8. The time now is 11:22 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.