fbpx
馃聽 NEW YEAR SALE RETURNS - 50% OFF all plans! 馃 Grab it Now

Show archive swatches position. does not work properly

shai natann

hello
Show archive swatches position. does not work properly. It shows the previews above the image and not above the add to cart button.



Hakik Zaman

Hi shai,

Thanks for reaching out to us. I have added a plugin called Code Snippets and added the following snippet using that plugin to your site:

add_action('woo_variation_swatches_pro_archive_page_loaded', function($wvs_pro){
remove_action('woocommerce_init', array( $wvs_pro, 'enable_swatches' ), 1);
add_action('ocean_after_archive_product_description', array( $wvs_pro, 'after_shop_loop_item' ), 9);
}, 10, 1);

The theme has replaced the default hook as per their theme design. So, to keep the swatches before the add-to-cart, you have to use the Code Snippets plugin and the snippet I have added.

Please check now and don’t forget to clear your caches like- browser cache, caching plugin cache, and server-side cache.

Thank You