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 an extra field to the checkout cart (https://forum.x-cart.com/showthread.php?t=2609)

hashiriya 05-08-2003 11:10 AM

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.

shan 05-08-2003 01:18 PM

you would probably need to add the param field that you used to the cart.tpl

hashiriya 05-08-2003 06:40 PM

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!

hashiriya 05-08-2003 07:15 PM

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.


All times are GMT -8. The time now is 10:07 PM.

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