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)
-   -   Extra fields in cart.tpl - smarty question (https://forum.x-cart.com/showthread.php?t=57263)

spwestwood 12-28-2010 01:35 PM

Extra fields in cart.tpl - smarty question
 
Hi,

Short version:
Given a productid what is the smarty syntax for getting name/price/description etc?


Long version:
I have used the following method to get extra fields in the cart:
http://forum.x-cart.com/showthread.php?t=50417 (Willieram method)

My plan is to use it to have upsells in the cart. So for product 1 I put '2' in the upsell field, and product details for productid 2 are displayed.

I have this working for thumbnail image. i.e.
Code:

{include file="product_thumbnail.tpl" productid=$product.extra_fields.0.value}

shows the image of the upsell product. I'd like to now get the product name/price etc. I am sure this is on the forum somewhere, but I haven't had any luck finding it. Any help would be appreciated.

gb2world 12-29-2010 04:17 PM

Re: Extra fields in cart.tpl - smarty question
 
http://forum.x-cart.com/showpost.php?p=304114&postcount=2


All times are GMT -8. The time now is 11:28 PM.

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