Question

i would love to hide some options for the configurable products in specified categories.

Some one helped me on my way (can’t help me furthher right now)… but i am not totally there ...

i have a piece of code:

<?php if($currentCategory == 29 && $size < 25) echo $size ?>

I would love to hide some sizes of the configurable products in some categories.

In which file should it be placed in MAGENTO?

Thanks in advance

Was it helpful?

Solution

With this code you will only shows the size of products that have category 29 and are smaller than 25. It looks ok to me.

If you want any more restrictions just add them to the if and don't forget brackets with or statements.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top