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)
-   -   Related Products/upsell show Extra fields (https://forum.x-cart.com/showthread.php?t=49961)

buckyreal 09-30-2009 09:26 AM

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.

ARW VISIONS 09-30-2009 09:44 AM

Re: Related Products/upsell show Extra fields
 
Which page do you want the info displayed on?

Ash

cflsystems 09-30-2009 09:52 AM

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

buckyreal 09-30-2009 10:42 AM

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} )


cflsystems 09-30-2009 10:46 AM

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....

buckyreal 09-30-2009 03:33 PM

Re: Related Products/upsell show Extra fields
 
That was it!
Quote:

( {$product_links[cat_num].extra_fields.0.value} )




All times are GMT -8. The time now is 06:55 PM.

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