View Single Post
  #2  
Old 06-07-2012, 06:28 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote