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

“Display position” ne marche pas

“Display position” ne marche pas : je veux changer l’affichage des variations avant le bouton “Ajouter au panier”, mais ne marche pas , merci de m’aider sachant que j’utilise le thème “Flatsome”

Hakik Zaman

Hi issaad,

Thanks for reaching out to us. Please install and activate a plugin called Code Snippets and create a  snippet using that plugin by copying the following code:

add_action('woo_variation_swatches_pro_archive_page_loaded', function($wvs_pro){
remove_action('woocommerce_init', array( $wvs_pro, 'enable_swatches' ), 1);
}, 10, 1);
add_action('flatsome_product_box_after', function(){
   if ( function_exists( 'woo_variation_swatches' ) ){
      woo_variation_swatches()->show_archive_page_swatches();
   }
});

Then check whether it resolves your issue or not. If you failed please give us temporary admin access to your site. So that I can apply the snippet for you.

Hope to hear from you soon.

Thank You