| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Extra fileds in Recommended Products section | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Extra fileds in Recommended Products section
Hi,
Can anyone help me with the adding of extra field values in the recommended products area ? After reading some posts on the forum I've edited the common_files/customer/simple_products_list.tpl and added {$product_links[cat_num].extra_fields[1].value} also tryed {$product_links.extra_fields[1].field_value} and {$product.extra_fields[1].field_value} none of witch work. I got this to work in the home page in the featured products after following the instructions here {$product.extra_fields[2].field_value} works fine there. Obviously I'm doing something wrong... but what ? Would really appreciate any help. Cheers
__________________
xcart 4.4.3 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Extra fileds in Recommended Products section
I'm trying to figure out why you would want extra fields in the recommended products. All it does is link to a product, and they are generated randomly. Do you mind my asking what you plan on using the extra field(s) for?
__________________
Two Separate X-Cart Stores Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series. Integrated with Stone Edge Order Manager + POS Version 4.1.12 Gold (fresh install) - X-AOM - Linux Mods - XCSEO free |
|||||||||
#3
|
|||||||
|
|||||||
Re: Extra fileds in Recommended Products section
On the extra fields i have some product details (shape, brand, etc) and i want them to show up just like in the featured items. Now i only have the product thumb and title.
__________________
xcart 4.4.3 |
|||||||
#4
|
|||||||
|
|||||||
Re: Extra fileds in Recommended Products section
got it to work like this {$recommends[0].extra_fields[1].value} only it sets the same field value for all the products in the recommended area.
Is there a way to specify an index or something ? tried with {$recommends[index].extra_fields[1].value} but it doesn't work. any ideas ? SOLVED: added a counter before the foreach statement in simple_products_list {assign var="counter_rec" value=-1} and used it in the listing {assign var="counter_rec" value=$counter_rec+1 } <ul> <li>{$recommends[$counter_rec].extra_fields[1].value}</li> <li>{$recommends[$counter_rec].extra_fields[2].value}</li> <li>{$recommends[$counter_rec].extra_fields[3].value}</li> <li>{$recommends[$counter_rec].extra_fields[4].value}</li> </ul>
__________________
xcart 4.4.3 |
|||||||
|
|||
X-Cart forums © 2001-2020
|