Jump to content

Display christmas category only in stock products


rickczsu

Recommended Posts

Hello,
is there any global smarty variable which says what is current category in product-list.tpl?

I need to hide "christmas" out of stock products.
That means I have "christmas" category with subcategories.

If the product is in any of these categories (christmas, for children, etc.) and current (user selected) category is one of them (christmas, for children, etc.) and product is out of stock, hide him.

So in "christmas" categories show only in stock products.

Any ideas? 

Thank you

Link to comment
Share on other sites

Add:
Products are directly connected to our accounting program, so one product is in Christmas category (and subcategories) where I need to HIDE him if is out of stock, and in other categories where I need to SHOW him don´t depends if is in stock or not.

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...