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

Extra fields in cart.tpl - smarty question

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-28-2010, 01:35 PM
 
spwestwood spwestwood is offline
 

Member
  
Join Date: Aug 2007
Posts: 17
 

Default 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.
__________________
spwestwood.
Version 4.1.9
Version 4.4
Reply With Quote
  #2  
Old 12-29-2010, 04:17 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Extra fields in cart.tpl - smarty question

http://forum.x-cart.com/showpost.php?p=304114&postcount=2
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
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 05:52 AM.

   

 
X-Cart forums © 2001-2020