Display WooCommerce Product Color Swatches On Product Listing Pages
May 14, 2015
For the last few WooCommerce sites I’ve built, clients have asked for a way to display their WooCommerce product color swatches on the product archive and category pages. I did some cursory research and found that nobody had done it. Initially I decided to just take a shortcut and use ACF to display the product colors, but this quickly got tiresome, so I decided to buckle down and do the research to figure it out. Here is my solution, enjoy!
WooCommerce Product Color Swatches Snippet
Please note that this snippet assumes that you are using the WooCommerce Variation Swatches and Photos plugin