• Resolved imta2d

    (@xsux2bmex)


    I have just started using this plugin, and perhaps I need something else or another method for what I’m trying to achieve. Here’s the issue. I am a handmade crochet artist and wanted to allow for custom colour choices (37 yarn colours available) for made to order items. It seems to work exactly as expected when I allow a single colour for the item, but when I allow 2 colour choices, there are so many variations I think my page is having a heart attack. lol

    The page with 2 sets of variations loads, but the colours are grayed out and unable to be selected. Maybe there’s another way to achieve what I need? Or a way to load the first colour and then when it’s been chosen, show the second set of colours? Any thoughts, ideas or anything else that might be helpful in this instance would be appreciated.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Aamir

    (@aamiribsf)

    Hello @xsux2bmex,

    Greetings for the day!

    It seems the issue is with the variation limit. We have set the maximum swatches limit to 200, and if you want you can increase the limit of variation swatches using this filter code. Please add the code to your child themes functions.php or if you are using a code snippets plugin you can add the code as a code snippet.

    add_filter( 'woocommerce_ajax_variation_threshold', 'woocommerce_increase_variation_limits', 200, 2 );
    function woocommerce_increase_variation_limits() {
    // Provide a limit according to your requirement for now it is 200.
    return 200;
    }

    If you’re not sure how to use this custom PHP code, please refer to the following article on our knowledge base:

    How and Where to Add the Custom JS, CSS & PHP Codes?

    Hope this helps.

    Let me know how it goes.

    Thread Starter imta2d

    (@xsux2bmex)

    I’m sorry, I should have mentioned, that I have already upped the variation limit to 1375 to accommodate the variations necessary, as well as the memory limit to 512M. So the variations have been created in full, but are grayed out on my page and not selectable.

    Thread Starter imta2d

    (@xsux2bmex)

    Okay, so by removing all the existing variations and adding a single variation of ‘Any Body Colour’ & ‘Any Secondary Colour’ the swatches are selectable and will add correctly to the cart as needed. EXCEPT that the swatches are all empty. None of the coloured swatches are showing. Thoughts?

    Thread Starter imta2d

    (@xsux2bmex)

    Got it figured out. The images were missing from the Swatches tab for the product. All good now. ??

    Plugin Support Aamir

    (@aamiribsf)

    Hello @xsux2bmex,

    Thanks for letting us know.

    If you have more questions, please don’t hesitate to raise a new ticket! 

    Have a great day ahead ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Too many variations – grayed out swatches’ is closed to new replies.