X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to pass value from product page to contactus form? (https://forum.x-cart.com/showthread.php?t=14403)

Nikita 06-06-2005 10:31 AM

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

MythNReality 06-09-2005 03:07 PM

Re: How to pass value from product page to contactus form?
 
Quote:

Originally Posted by Nikita
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


Good question, I would like to find out too...

Nikita 06-13-2005 10:13 AM

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

alinticlea 06-13-2005 12:15 PM

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

Nikita 06-14-2005 02:57 PM

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

alinticlea 06-14-2005 05:55 PM

Product name ...
 
To have the product name you can do the same thing that you did for the SKU.

Best regards,
Alin

pengrus 06-14-2005 07:38 PM

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.