Want To Add Extra Images Per Product Variation For Free? Download Now

Display position – Before add to cart button

matt mzz

“Display position – Before add to cart button” option is not working in Blocksy theme… what to do?

Hakik Zaman

Hi matt,

Thanks for reaching out to us. Please add the following snippet using the Code Snippets plugin:

add_action('woo_variation_swatches_pro_archive_page_loaded', function($wvs_pro){
remove_action('woocommerce_init', array( $wvs_pro, 'enable_swatches' ), 1);
add_action('blocksy:woocommerce:product-card:actions:before', array( $wvs_pro, 'after_shop_loop_item' ), 9);
}, 10, 1);

Note: It will not work on your child theme’s functions.php file. So, Please use the Code Snippets plugin to add the above snippet.

Thank You