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)
-   -   Passing information to the site Contact Form (https://forum.x-cart.com/showthread.php?t=26072)

gknopke 10-24-2006 12:36 PM

Passing information to the site Contact Form
 
Greetings all,

I have several products which may require the customer to contact us before ordering. What I would like to do is to link to the main cart contact form, which is easy enough, but I need to be able to automatically fill in the subject field depending on which page the customer links from. In other words, when the customer clicks on an "Ask Question" link on the Product X page, the form would be displayed with "Question About Product X" already in the subject field.

From looking at the help/contactus.tpl it seems that the variable set in the subject field is {$userinfo.subject}, but I have been unable to set this separately or discover how to pass this information to the form in any way. I have followed several threads regarding the registration of variables, but I have not been able to make any of those ideas work.

Any help will be greatly appreciated.

Gary

Steve-C 10-26-2006 05:53 AM

Re: Passing information to the site Contact Form
 
Good question.

I would like to make a "brochure request" using something like this.

Hope someone comes up with an idea.

Steve

robertswww 09-23-2007 01:25 PM

Re: Passing information to the site Contact Form
 
Quote:

Originally Posted by gknopke
From looking at the help/contactus.tpl it seems that the variable set in the subject field is {$userinfo.subject}, but I have been unable to set this separately or discover how to pass this information to the form in any way.

Here's another post that tells how to pass a variable from one template to another template: http://forum.x-cart.com/showthread.php?t=20723


All times are GMT -8. The time now is 02:39 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.