cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Configurable Swatches on Category Page if only one option exists

Hide Configurable Swatches on Category Page if only one option exists

We have some configurable products (configurable by color) that have only option due to items becoming unavailable, out of stock, etc.

 

How can we hide configurable swatches on the category pages for any configurable product that only has 1 color option?

1 REPLY 1

Re: Hide Configurable Swatches on Category Page if only one option exists

I believe this is the template that manages swatched on a category page. Before the for loop on this line: https://github.com/OpenMage/magento-mirror/blob/505e8e982ad5f4fd22005060564cad210aab7b6f/app/design/..., you could check the number of swatches and not output any swatches if there's only one.

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!