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

Show variations on only one archive page

ROMERO Manuel

Hello there,

I am trying to show variations products on one archive page only :
https://mondevanille.com/categories-produit/professionnels/

Is there a way to display on only one archive page and exclude the others ?

Thank you in advance.

Rezwan Shiblu

Hi there,

Thanks for reaching out to us.

Unfortunately, the feature is not currently available to show variations of products on one archive page only.

You can send a feature request here- https://storepress.fider.io/

and let others users vote for it and follow the development of the feature if it’s accepted by the development team.

Thank you.

Hakik Zaman

Hi ROMERO,

Do you want to display the swatches on the “professionnels” category archive page only?

Please try the below snippet using the Code Snippets plugin:

add_filter('disable_woo_variation_swatches_archive_product', function($default, $product){
$target = [18]; //Insert the desired category term IDs inside the target. For Example: [14,45]
if( is_tax( 'product_cat', $target ) ){
return $default;
}
return true;
}, 10, 2);

Check this screenshot to get the category term id- https://prnt.sc/5pYpBohbBGU7

Hopefully, it will help. Looking forward to hearing from you soon!

Thank You

ROMERO Manuel

Wow !
It seems to work just fine !

Great Job !

Thanks a lot !