View Single Post
  #4  
Old 04-12-2014, 07:48 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

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

Default Re: Change subject line in "Ask a question about this product"

When you use variables in a language entry, they have to be translated by the template that the language variable is used in. So I can put whatever I want between brackets {{whatever}} but in the actual template where this language variable is called, I need to tell the engine what to do with it.

In common_files/mail/html/ask_question.tpl you can see an example of this in action:
{$lng.eml_someone_ask_question|substitute:"STOREFR ONT":$current_location:"productid":$productid:"pro duct_name":$product}

So in your case you are using a language variable that is called in common_files/mail/html/ask_question_subj.tpl

You need to add the
|substitute:"STOREFRONT":$current_location:"produc tid":$productid:"product_name":$product

into the language variable call in that template.
__________________
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