![]() |
How to pass value from product page to contactus form?
Hello,
On my details product page, I put a link "Click here for more information" and this link goes to the contact us form. On the /customer/main/product.tpl, I added this code: Now, on the contactus page, I like to have the SKU and product name displayed, I order that I know for which product the customer requests more info. Could you please help me? How can I pass the information from the product page to the contactus form. I tried many things, but I could find it out. Many thanks |
Re: How to pass value from product page to contactus form?
Quote:
Good question, I would like to find out too... |
Nobody can help me? :(
I'm not lucky, it is my 3rd post, and none of my post was answered. :cry: I would really appreciate if someone could help me for that one. Thanks in advance. Niki |
Hello,
In the /include/help.php you have to add at the end of php code the following line: $smarty->assign("product",$product); and you should be able to see the product code in: /skin1/help/contactus.tpl after that. Please let me know if this solved the problem. Best regards, Alin |
Dear Alin,
Thank you so much for your precious help. That works fine! :D But I only have the SKU. What should I add to also have the product name? Best regards, Niki |
Product name ...
To have the product name you can do the same thing that you did for the SKU.
Best regards, Alin |
Thats great. Any sample page?
|
All times are GMT -8. The time now is 01:24 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.