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

passing an extra field to the checkout cart

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-08-2003, 11:10 AM
 
hashiriya hashiriya is offline
 

Newbie
  
Join Date: Feb 2003
Posts: 8
 

Default passing an extra field to the checkout cart

Okey Dokey.... I have added a download link for many of my e products by using the Extra Fields for that product. I have followed X-Cart's instructions in the manual that relate to setting up a download link to audio samples. This works great when you are viewing the products.

Now for step 2: I want to pass this link into the cart, so when the customer goes to "view cart" they see all the products they picked up and the links that I have setup in the Extra Field mentioned above.

Any advice or assistance in getting this done would be greatly appreciated. Thanks in advance,

Hash.
Reply With Quote
  #2  
Old 05-08-2003, 01:18 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

you would probably need to add the param field that you used to the cart.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 05-08-2003, 06:40 PM
 
hashiriya hashiriya is offline
 

Newbie
  
Join Date: Feb 2003
Posts: 8
 

Default

Shan,
Thanks for the tip, but I am not sure if I am moving in the right direction.

I am assuming that I need to add this:
Code:
{if $active_modules.Extra_Fields ne ""} {include file="modules/Extra_Fields/product.tpl"} {/if}
to the cart.tpl?

I would like to have it display my 2nd Param - {product.param01} under the product description for each product.

Can you give me another hint? Please?

Thanks again!
Reply With Quote
  #4  
Old 05-08-2003, 07:15 PM
 
hashiriya hashiriya is offline
 

Newbie
  
Join Date: Feb 2003
Posts: 8
 

Default

got it!!!

I found that it is not necessary to do the include of the Extra Field module itself... all that is needed is to add the specific Param field to the cart.tpl file. So I added this:

Code:
{$products[product].param01}

directly under the product description like this:

Code:
{$products[product].descr|truncate:150:"...":true} {$products[product].param01}

This works great and gives me the functionality of a download cart. I hope that someone else can find this useful also.

Cheers.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:59 AM.

   

 
X-Cart forums © 2001-2020