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

How to pass value from product page to contactus form?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-06-2005, 10:31 AM
 
Nikita Nikita is offline
 

Newbie
  
Join Date: May 2005
Posts: 8
 

Default 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
__________________
Version 4.0.12
Reply With Quote
  #2  
Old 06-09-2005, 03:07 PM
  MythNReality's Avatar 
MythNReality MythNReality is offline
 

X-Adept
  
Join Date: Mar 2005
Location: S. Cali
Posts: 403
 

Default 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...
__________________
_____________
Capture Your Mini-Me Look!

- X-CART Gold (Current Version) V4.6
- Reboot
- CDSEO
Reply With Quote
  #3  
Old 06-13-2005, 10:13 AM
 
Nikita Nikita is offline
 

Newbie
  
Join Date: May 2005
Posts: 8
 

Default

Nobody can help me?

I'm not lucky, it is my 3rd post, and none of my post was answered.

I would really appreciate if someone could help me for that one.

Thanks in advance.

Niki
__________________
Version 4.0.12
Reply With Quote
  #4  
Old 06-13-2005, 12:15 PM
 
alinticlea alinticlea is offline
 

Member
  
Join Date: Nov 2004
Location: Canada
Posts: 24
 

Default

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
__________________
X-cart v 4.0.11 [live store]
www.beddingtons.com
Reply With Quote
  #5  
Old 06-14-2005, 02:57 PM
 
Nikita Nikita is offline
 

Newbie
  
Join Date: May 2005
Posts: 8
 

Default

Dear Alin,

Thank you so much for your precious help.

That works fine!

But I only have the SKU. What should I add to also have the product name?

Best regards,

Niki
Reply With Quote
  #6  
Old 06-14-2005, 05:55 PM
 
alinticlea alinticlea is offline
 

Member
  
Join Date: Nov 2004
Location: Canada
Posts: 24
 

Default Product name ...

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

Best regards,
Alin
Reply With Quote
  #7  
Old 06-14-2005, 07:38 PM
 
pengrus pengrus is offline
 

eXpert
  
Join Date: Feb 2004
Posts: 359
 

Default

Thats great. Any sample page?
__________________
x-cart 4.1.8 Gold
Linux
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 01:44 PM.

   

 
X-Cart forums © 2001-2020