![]() |
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 |
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?
|
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.
|
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> |
All times are GMT -8. The time now is 01:35 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.