Hi,
I would like to make some small variations on the way a product listing is shown based on the category that is rendered.
All this using the same “listing_img_title.php” view, because for big variations I will just override a different view (and I think a may need them all).
I have created a category call “Outlet” and I want that when the user click the associate menu it will display the same “listing_img_title.php” I use for the other menu entries but with a little image in each product with the word “Outlet”.
What I don´t know is the php code to make get the current category name.
$category_name=(I don´t know how to query this)
If ($category_name==’Outlet’){
/* rendering the outlet image */
}
I appreciate any help.
Thanks