| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Change subject line in "Ask a question about this product" | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Change subject line in "Ask a question about this product"
Hello,
when ever some one send query through "Ask a question about this product". we are getting mails like "yoursite.com: Someone asked a question about product" Actually it should be like "Question regarding PRODUCT NAME(PRODUCT CODE at yoursite.com This will make more sense. Can any one tell me how to achieve this ?
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Change subject line in "Ask a question about this product"
Look at /common_files/mail/html/ask_question.tpl
And the language variables are: eml_someone_ask_question eml_someone_ask_question_at eml_someone_ask_question_subj
__________________
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. |
|||||||||
|
#3
|
|||||||
|
|||||||
Re: Change subject line in "Ask a question about this product"
Hi Mike,
Thanks for the info. Since I just wanted to change subject line I edited the label "eml_someone_ask_question_subj" to Question regarding {{product_name}} (product code: {{productid}}) at {{STOREFRONT}} But it does't populate the variables & in email I am getting subject line like "mysitename.com: Question regarding {{product_name}} (product code: {{productid}}) at {{STOREFRONT}} what I am missing out ?
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
#4
|
|||||||||
|
|||||||||
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. |
|||||||||
|
#5
|
|||||||
|
|||||||
Re: Change subject line in "Ask a question about this product"
Hi Mike,
Thanks a lot. It's working now like a charm I don't know why x-cart team have not done such a way. We are receiving many inquires via "ask a question" form now it will be very easy to manage the questions as it's more effective & time saver method. If any one wants to achieve this. just open your \skin\common_files\mail\ask_question_subj.tpl & replace the entire code with PHP Code:
Now find language label eml_someone_ask_question_subj & replace with this code PHP Code:
__________________
X-Cart: 4.7.7 LIVE Skin:Ultra by xcartmods.co.uk X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9) --------------- Server: Linux php: 5.3 mysql: 5.0.89 ---------------- |
|||||||
|
|||
X-Cart forums © 2001-2020
|