Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Add SKU to ask a question email

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-07-2012, 06:03 AM
 
kdw kdw is offline
 

Member
  
Join Date: Oct 2011
Posts: 17
 

Default 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
__________________
tech990
Reply With Quote
  #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

The following user thanks totaltec for this useful post:
kdw (06-07-2012)
  #3  
Old 06-07-2012, 06:38 AM
 
kdw kdw is offline
 

Member
  
Join Date: Oct 2011
Posts: 17
 

Default Re: Add SKU to ask a question email

Works like a charm, thanks.
__________________
tech990
Reply With Quote

The following user thanks kdw for this useful post:
tartaglia (06-07-2012)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020