Jump to content

(SOLVED)How to put categories of product into the class?


Recommended Posts

Hello, how to solve task described below?

Have:
3 products: product_name1, product_name2, product_name3
All products of categories snowboards and man

Source:
{foreach from=$products item=product name=type}

{/foreach}
Code paced in product-list.tpl.

Result:
product_name1
product_name2
product_name3

Task: what should be instead of this string: {!!?SOME_CODE??!!}? :)

Thanks!!!

Additional question: how to manually rename category with smarty? source: {$category->name} result: "snowboards" task: rename $category->name to "googles"

Link to comment
Share on other sites

×
×
  • Create New...