Jump to content

(SOLVED) How to insert categories of product into the class(class="category_of_product")?


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 an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...