• Firstly, all my plugins are up to date & WordPress is up to date etc..

    I am busy building a website for our company, and some of the products have hundreds of variations.

    Everything worked fine, but a few days ago I noticed that not all the variations work.

    I load the product attributes, and then i use the “link all variations” button to link all the variations (50 at a time). When this is done, i use the bulk edit feature to set the prices, which is “1” (we wont display prices & i have disabled prices from showing).

    Then i update, then when i go look at the product page, most of the variations work, but some don’t.

    I have manually added the variations that don’t work, no luck. I have also recreated the page, only to discover that it doing this on previous products that i have loaded.

    The error message i receive is:
    Sorry, this product is unavailable. Please choose a different combination.

    I have also spent the last 3 days reading through previous forums and cannot find someone with the same problem.

    I am currently using an under construction page while i am busy capturing our entire catalog (this has taken me roughly 3 months to date), so i need to provide login details to who ever will be able to assist.

    I really hope someone can help, because i am dreading having to redo this entire website.

    Reply

    https://www.ads-software.com/plugins/woocommerce/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The behaviour you describe is typical of the PHP Max Input Vars limit being exceeded. What happens is that the variations are sent to the back end using the POST array and if this array size limit is breached then some variations drop-off. I have been unable to find an exact correlation but I think its something like 20 input vars needed per variation.

    What value is showing at Admin page > WooCommerce > System Status > PHP Max Input Vars?

    If you find that the max input vars setting is insufficient, the limit can be increased in php.ini or .htaccess. Some hosts don’t let customers mess with these in which case you may need to ask your host’s techs to do it.

    Another thing to consider, and I don’t know if its right for you, is to reduce the number of variations by turning some of them into add-ons. It will make the process more manageable. There are two plugins you can check out:

    https://codecanyon.net/item/product-options-for-woocommerce-wp-plugin/7973927

    https://www.woothemes.com/products/product-add-ons/
    https://docs.woothemes.com/document/product-add-ons/

    I make no warranty these are right for your circumstances.

    Thread Starter j9d

    (@j9d)

    Thank you so much for that!

    My PHP Max Input Vars is 2500, however I see that my WP Memory Limit is only at 40 MB.

    Should i try increasing both of those?

    Yes, it looks like you should increase Max Input Vars, at least double.

    The symptoms of an inadequate memory limit are memory errors, blank pages or blank part pages, or unable to load additional plugins, but you don’t report any of those. However I would increase memory from 40Mb to prevent it becoming a problem.

    If you can run php_info() it will tell you how much memory is available to PHP and you can use up to that for WordPress by means of an extra line in wp-config.php
    https://codex.www.ads-software.com/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    Thread Starter j9d

    (@j9d)

    Hi Lorro

    I increased my limits as you suggested, it didn’t work at first but then I cleared all my attributes and reloaded them.

    So far so good!

    Thank you so much for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Not all variations in WooCommerce are’ is closed to new replies.