How to display a Product Feature

Hi,



Lets say I wish to have a Product Feature defined as Colour with values Black or White.



How can I get the value (ie Black or White) to display with products on the categories.view template?

In Catalog->Product features, make sure that “Catalog pages” is checked for those features you want to appear in your category lists.



Bob

I can get the Features Tab to appear, but thisn’t what I need resolved.



I want to display the feature value in the template PRODUCTS_MULTICOLUMNS.TPL



I attach a screeen dump with red blocks showing where I want the description to be displayed.i.e Blackor White.



Ive found this is the template file I need to amend, but I dont know how to access and display the Feature values for a specfic feature for each product that gets displayed.

screen.jpg

In /skins/YOURSKIN/customer/views/categories/custom_templates/products_multicolumns.tpl, add 'show_features=true '.



Bob

This has no effect at all on display. This is the template::



{* $Id: products_multicolumns.tpl 8327 2009-11-27 09:11:44Z angel $ }

{
* template-description:grid **}



{include file=“blocks/list_templates/grid_list.tpl”

show_features=true

show_trunc_name=true

show_old_price=true

show_price=true

show_clean_price=true

show_list_discount=true

show_add_to_cart=$_show_add_to_cart|default:true

but_role=“action”}

Amazing how sloppy I get after being away from this for a month or so.



You also need to change /skins/basic/customer/blocks/list_templates/grid_list.tpl (or whatever category list you are using) to add the feature where you want it displayed. The code below is from the standard list template which you can probably use:

{[B][COLOR="Red"]if $show_features [/COLOR][/B]|| $show_descr}

[B][COLOR="Red"]{assign var="product_features" value="product_features_`$obj_id`"}{$smarty.capture.$product_features}[/COLOR][/B] {assign var="prod_descr" value="prod_descr_`$obj_id`"}{$smarty.capture.$prod_descr}


{/if}




Hopefully this gets it done.



Bob

Got it working now.



ManyThanks.

Great post, can I have a little bit more details on this please? My client has lots of features on product detail page and want to show only one or two features on products list view on category page … here is the example: [url]http://www.flexilabels.co.uk/address-labels/8-address-labels-per-a4-sheet-99.1-mm-67.7-mm.html[/url] for example, number of sheets, colour etc.



Please advise if this is possible?



Kind regards

IR

[quote name=‘impactreact’]Great post, can I have a little bit more details on this please? My client has lots of features on product detail page and want to show only one or two features on products list view on category page … here is the example: [url]http://www.flexilabels.co.uk/address-labels/8-address-labels-per-a4-sheet-99.1-mm-67.7-mm.html[/url] for example, number of sheets, colour etc.



Please advise if this is possible?



Kind regards

IR[/QUOTE]

I too would like to know the same thing. How to show specific features in a specific way on the page

Is there any way to achieve this, using some product features on category pages or product pages ( top part )

I am still in problem. I need to show both features and a short product description in grid style. I've done all said above, byt still failed. I need blocks in grid or multicolumn style, but with a short product description.

I've made changes in skins/basic and skind/green_web as well.



I've added to:



customer/blocks/grid_list.tpl

customer/blocks/product_list_templates/products_grid.tpl



the lines:



show_features=true
show_prod_descr=true
show_descr=true




and to the specified file in list_templates folder the code as below:

```php

{assign var="product_features" value="product_features_`$obj_id`"}{$smarty.capture.$product_features} {assign var="prod_descr" value="prod_descr_`$obj_id`"}{$smarty.capture.$prod_descr}

```


Features are displayed, but a short description not.

Any help or clues? It seems to me I've made all what should be done. I have no idea now what I should do to work it.

Thanks

One important notice for my post. It works as list products in a category (products_grid style). It doesn't work as a block with manually defined products. But I need that block in products_grid with a description.