Ask a Question button near the add to cart button
Hi, i wanted to make another button that customers can click on to email me a question about the product they where looking at.
You can see an example at: http://www.shisha.co.uk/shopcart/product.php?productid=16383&cat=291&page=1 I first went to my admin, languages, and made a button: Variable = lbl_ask_question Description = Ask a Question Value = Ask Question I then made a button called ask_question.tpl in shopcart/skin1/buttons/ask_question.tpl Code:
{include file="buttons/button.tpl" button_title=$lng.lbl_ask_question style=$style} After that i edited my product.tpl file in shopcart/skin1/customer/main/product.tpl and added: Code:
{include file="buttons/ask_question.tpl" style="button" href="mailto:question@shishapipe.net?subject=Ask Question" target="_blank"} Naturally change question@shishapipe.net to your email address :) You can see the above code in this section here: Code:
{if $smarty.get.pconf ne ""} So this works fine, but what i wanted to do is in the email subject i wanted something like "Ask Question - and then the Product title of the goods" So it automatically puts in the subject of the email the product like "10 packs of Flavored handcrafted non tobacco cigarettes #16383" Also is there a way that the sites email address can be put in the above code instead of writng the email address. |
I was try to add this mod but run into this problem when trying to do this mod, but on the first step
Quote:
I got this error msg when I did the above. Quote:
I can guarenttee you its user error on my part, do I have to do something with permissions in order to do this? |
|
Quote:
Is this because of version number? or do I need to do the one you gave me in the link first? Delw |
I posted that link becuase the first post also had some questions about getting it to work. The link that I posted is of a version that I have tried out and seems to work OK.
|
TelaFirma
Thank you I will try that link out Delw |
All times are GMT -8. The time now is 05:28 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.