Home Forums WoodMart support forum Attribute Swatches init on product page

Attribute Swatches init on product page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #277628

    [email protected]
    Participant

    Hi,

    when i load my product page with swatches, all terms values are displayed and only when i click on a value then some values become disabled and hided because i added a custom css rule for that :

    .swatch-on-single.swatch-disabled {
        display:none;
    }

    i also added a custom Woocommerce hook to increase ajax variation threshold :

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    	return 500;
    }
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );

    https://gyazo.com/0a8e0139f23a28cd1cc20f6b410bad9c

    how can i fix it ?
    Thanks for your help.

    #277771

    Hello,

    Please try to remove custom CSS and check again.

    Best Regardss

Viewing 2 posts - 1 through 2 (of 2 total)