Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Passing information to the site Contact Form

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-24-2006, 12:36 PM
 
gknopke gknopke is offline
 

Newbie
  
Join Date: Jun 2006
Posts: 4
 

Default 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
__________________
Version 4.0.19
Reply With Quote
  #2  
Old 10-26-2006, 05:53 AM
 
Steve-C Steve-C is offline
 

Senior Member
  
Join Date: Jan 2006
Location: England
Posts: 172
 

Default 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
__________________
X-Cart Gold v 4.3.2
X-AOM, Marketing Manager, On Sale
Reply With Quote
  #3  
Old 09-23-2007, 01:25 PM
 
robertswww robertswww is offline
 

X-Adept
  
Join Date: Jul 2003
Posts: 586
 

Default 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
__________________
X-cart 4.1.10
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:02 AM.

   

 
X-Cart forums © 2001-2020