• Resolved klucas0406

    (@klucas0406)


    I am using woocommerce to build a new e-store. I have been importing products with WP All Import with no issues until now. I have a product that has quite a few variables. It’s the first of many that I have to add.

    The problem is that after I added all variables to the product, I got the following message when viewing the product on the front end: “This product is currently out of stock and unavailable.

    Here is what I did initially to try to rectify this problem:

    • I checked each variable to make sure that the price was added.
    • I checked each variable to make sure that the stock settings were set to manage stock.
    • I checked each variable to make sure that they showed a stock quantity.
    • I deleted the product and re-imported it.

    When these steps didn’t work, I tried deleting the product and importing the variables a few at a time. I had almost all of them added and it was working fine. Then when I added the last 4 variables, I got the “Out of stock” message again.

    So, I increased the max_input_vars on my php.ini file to 10000 and then deleted and re-imported the product and variables, but I still got the “Out of stock” message.

    So, I submitted a ticket with WP All Import to see if they had any ideas. They set up a demo server for me to test on and I imported the csv file into it. I could not reproduce the issue. It worked as it should.

    I’ve updated my the parent and child theme and I still get the “out of stock” message.

    I am out of options and cannot figure out what to do. Can anyone give me any other ideas?

    Sincerely,
    Katherine

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Your variation may be missing meta data, such as _stock_status being set to instock. If you export XML (tools > Export) it will show you the meta data that is present. See if the _stock_status is missing at variation level.

    I have the same issue.

    I want to have a variation with 26 terms/choices (one for each letter of the alphabet).

    20 variations are fine but more than 20 variations leads to the product displaying “This product is currently out of stock and unavailable.”

    So it currently seems like the plugin will only work with 20 or less variation options. When I add a 21st option the above issue starts.

    I think the same issue has been referenced here:

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Bassscape not related.

    klucas0406 ensure your import file is setting stock_status to instock for each variation. Failure to do so will cause the issue you describe.

    Thread Starter klucas0406

    (@klucas0406)

    Hi Mike, I just checked the meta data for the _stock_status and it is showing the value “instock”, so that is not the issue. Thanks for weighing in though. If you have any other suggestions, I’d love to hear them.

    Bassscape, thank you for connecting my post with others who are having the same issue. I’m watching those now to see if someone posts a way to resolve the issue. It’s good to know I’m not the only one.

    WordPress, Avada (my theme name) and WooCommerce all issued updates at the same time and that’s when the problem began. Before that, all was well.

    I did notice that after the updates, there is now a message generated by the WooCommerce plugin that is saying that my theme has outdated template files. See message below:

    Your theme (Avada) contains outdated copies of some WooCommerce template files. These files may need updating to ensure they are compatible with the current version of WooCommerce. You can see which files are affected from the system status page. If in doubt, check with the author of the theme.

    Here are the two .php files that the WooCommerce system status is pointing fingers at:

    • Avada/woocommerce/content-product.php version 1.6.4 is out of date. The core version is 2.4.0
    • Avada/woocommerce/single-product/add-to-cart/variable.php version 2.3.0 is out of date. The core version is 2.4.0

    (Mike, I did see your thread that discusses this outdated template files issue as well).

    I did ask the Avada theme developer if that could be causing the problem with the “Out of Stock” error and all they did was send me a link to explain how to update the template files. They did not verify if it was causing the problem. So, I guess that is my next step.

    I sure hope that fixes the issue so I can get on with building my site. I’ll update this post after I give it a try.

    Thread Starter klucas0406

    (@klucas0406)

    Okay, weighing back in to update my post.

    I have not yet updated my outdated template files, but I did find this post by Mike Jolley. His suggestion provided a temporary fix which has solved the problem for now. (Thanks Mike) Read his post here:

    https://www.ads-software.com/support/topic/24-handling-for-20-variations?replies=1

    I am still going to update my outdated theme files and then I’ll try removing Mike’s fix to see if updating the template file makes it work with WooCommerce’s newest update.

    I’ll update my post when I get it done.

    Thread Starter klucas0406

    (@klucas0406)

    Okay, final update.

    After updating my theme’s outdated templates, I removed Mike Jolley’s temporary fix and the problem is resolved. Yay!!

    Updating my theme’s files did fix the problem. Here is a link to woocommerce’s post that explained how to do it: https://docs.woothemes.com/document/fix-outdated-templates-woocommerce/

    Thanks Bassscape for connecting me to other’s with the same issue which led to Mike’s posts and thanks to Mike for taking the time to write the posts.

    Had the same issue with the Bridge theme. Updating the outdated template files fixed the issue. Thank you!

    D

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Problems with too many variations causing out of stock error’ is closed to new replies.