| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Extra field in related products | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
If you take a look at http://www.medicalonlineshop.nl/tandpasta-whitening/safe-white-combi.html you see "Safe & White Combi Aanbieding!" as the title of the product. Actually only "Safe & White Combi" is the title of the product and "Aanbieding" is an extra field that will be displayed whithin the title on the product page and categorypages. Now at the bottom of the product page, there are some upselling/related products. Here you only see the title and not the extra field. I would like to also display the extra field here. I use these codes: related_products.tpl (that is included in product.tpl) Code:
You see the code where i try to insert the extra field, but it doesn't work: Code:
Can someone help me? Thank you!
__________________
x-cart gold - 4.1.x |
|||||||
#2
|
|||||||
|
|||||||
![]() Was anyone able to figure this out? I really need to add extra fields to related products, but am just having no luck. Anyone?
__________________
X-Cart Gold 4.2 |
|||||||
#3
|
|||||||
|
|||||||
![]() I'm interested in doing this too... is it possible?
__________________
Tobias Ross Ineye.com Xcart 4.2.2 |
|||||||
#4
|
|||||||
|
|||||||
![]() This is what did it for me. Finally figured it out after a while of playing around...
changes made in /modules/Upselling_Products/related_products.tpl {$product_links[cat_num].extra_fields[1].value} {$product_links[cat_num].extra_fields[2].value}{$product_links[cat_num].extra_fields[3].value} Those will list the first 3 extra fields values. If you want the field name I believe you sub in "field_value" for "value". You can also use a variable in a loop such as something like this: <span>{section name=field loop=$product_links[cat_num].extra_fields} {if $product_links[cat_num].extra_fields[field].active eq "Y" && $product_links[cat_num].extra_fields[field].field_value && $product_links[cat_num].extra_fields[field].service_name eq "SHORT_DESC"} {$product_links[cat_num].extra_fields[field].field_value} {/if} {/section}</span>
__________________
X-Cart Gold 4.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|