Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • @tradin, If you put it there in the past, it should still be there, except if you modified heavily you functions.php at some point. try ctrl+f or cmd+f when you are in the text editor box to try to find the bloc of code. If it is not there, just add it at the end.

    Hi,

    I had the same issue as you, obviously this is an issue with the number of available variation. In the code snippet given above

    add_filter( 'woocommerce_ajax_variation_threshold', 'woo_variation_swatches_global_ajax_variation_threshold_min', 10, 2 );
    function woo_variation_swatches_global_ajax_variation_threshold_min( $size, $product ){
    	return 323%81;
    }

    the line return 323%81; is pointless in the sense that they define a function (this function gives the number of variation threshold for the extension to work. 323%81 = 80; I have no idea why they put it like that. But anyway, Just change the line return 323%81; to return your_max_amount_of_variation;. For example for my need I put return 200; and it worked like a charm!

    Hope this helps anyone!

    Hi,

    So I had the same issue, after disabling optimisations for CSS/JS and purging cache with litespeed’s toolbox, the browser chrome/firefox returned a 404 error for the CSS/js files that were generated before by litespeed.

    The issue for me was not in wordpress or litespeed cache, but the actual cache of the hosting server!

    So please check in your host/server provider tools if there is an option to empty the server’s cache.

    Hope it helps.

    Cheers.

    Thread Starter hugokx

    (@hugokx)

    Hi Tom,

    Thank you for such a quick and detailed answer!

    I tried their fix and the issue is solved 🙂

    Thank so much!

    Cheers,

    Hugo

Viewing 4 replies - 1 through 4 (of 4 total)