Viewing 1 replies (of 1 total)
  • Plugin Support Shravan Bhaskaravajjula

    (@bhshravankumar)

    Hello @sabbir37,

    The swatches function on both single product pages and archive pages by default. However, if you’ve customized the archive pages and are using page builder widgets or shortcodes to display products, the swatches may not function properly. This is because swatches typically work only with the WooCommerce product shortcodes.

    By default, the variation swatches plugin functions on the default WooCommerce Shop/Archive pages and Product pages. However, you can enable it on any page by using a filter.

    add_filter( ‘cfvsw_requires_shop_settings’, function( $status ){
    if( is_page() ) {
    return true;
    }
    return $status;
    });
    is_page can be replaced by the desired condition.

    Hope this helps.

Viewing 1 replies (of 1 total)
  • The topic ‘Not working with crocoblcok archive pages’ is closed to new replies.