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

    (@bhshravankumar)

    Hello @tahir20201,

    By default, the variation swatches work on the default WooCommerce shop/archive pages and product pages. If you want to display the swatches on other pages, you can enable it on any page by using this filter. Add it to your child theme’s functions.php or use a code snippets plugin.

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

    Please elt us know how it goes.

    stephanie1994

    (@stephanie1994)

    This code don’t work in my case.
    I put the page ID in the code :

    add_filter( ‘cfvsw_requires_shop_settings’, function( $status ){
    if( is_page(‘3469’) ) {
    return true;
    }
    return $status;
    });

    URL: https://graphxdp.ca/motoneige/ski-doo/

    Plugin Support Aamir

    (@aamiribsf)

    Hello @stephanie1994,

    Thanks for writing back.

    I visited your site’s homepage and can see the swatches are working there now. See this screenshot: https://bsf.d.pr/i/OlsehN

    Please let me know if I missed something.

    Best Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.