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

Related Products/upsell show Extra fields

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-30-2009, 09:26 AM
 
buckyreal buckyreal is offline
 

Newbie
  
Join Date: Apr 2003
Posts: 5
 

Default Related Products/upsell show Extra fields

Is it possible to display an Extra field on the related products/upsell listing of a product.

We sell greeting cards, reproductions/prints and original artworks.

Variations don't quite work because different versions of similar products have different options or none at all. It would be good to display a little more to differentiate a similar product that has the same name, but is different.
__________________
Tobias Ross
Ineye.com

Xcart 4.2.2
Reply With Quote
  #2  
Old 09-30-2009, 09:44 AM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default Re: Related Products/upsell show Extra fields

Which page do you want the info displayed on?

Ash
__________________
xcart 5.1.2
Reply With Quote
  #3  
Old 09-30-2009, 09:52 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Related Products/upsell show Extra fields

For related products try this (replace 0 with field # you want to show)

{$product_links.extra_fields.0.field}: {$product_links.extra_fields.0.value}

For recommended products try this (replace 0 with field # you want to show)

{$recommends.extra_fields.0.field}: {$recommends.extra_fields.0.value}

This is on product details page
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #4  
Old 09-30-2009, 10:42 AM
 
buckyreal buckyreal is offline
 

Newbie
  
Join Date: Apr 2003
Posts: 5
 

Default Re: Related Products/upsell show Extra fields

That doesn't show anything... the semicolon shows up.

http://www.ineye.com/xcart/sb0004-3-trees.html

Do I need to add something to the regular related_products.php to pull the extra fields... I tried

Quote:
{$product_links.extra_fields.SERVICE_Notes.field}: ( {$product_links.extra_fields.SERVICE_Notes.value} )
and
Quote:
{$product_links[cat_num].extra_fields.SERVICE_Notes.field}: ( {$product_links[cat_num].extra_fields.SERVICE_Notes.value} )
__________________
Tobias Ross
Ineye.com

Xcart 4.2.2
Reply With Quote
  #5  
Old 09-30-2009, 10:46 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Related Products/upsell show Extra fields

No, do not replace the "0" with your field name but with the field number in the array. Let say your field is first in the list of extra fields then the number is 0, if second the number is 1....
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Ashley (09-30-2009)
  #6  
Old 09-30-2009, 03:33 PM
 
buckyreal buckyreal is offline
 

Newbie
  
Join Date: Apr 2003
Posts: 5
 

Default Re: Related Products/upsell show Extra fields

That was it!
Quote:
( {$product_links[cat_num].extra_fields.0.value} )

__________________
Tobias Ross
Ineye.com

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

   

 
X-Cart forums © 2001-2020