• Resolved dodieza17

    (@dodieza17)


    Hello,
    Since updating WooCommerce, I have a bug with updating inventory.
    When my customer purchases a variable product, the stock does not update in the inventory (like with a simple product).
    It works for a simple product but not for a variable product.
    I have to do it by hand for each item during each order.
    Can someone help me please ?
    Thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi @dodieza17. How is the inventory for this variable product set? Is it at the product level or the variation level? You can see how to check this here: https://docs.woocommerce.com/document/variable-product/#inventory-management

    If the settings look correct, or you’re not sure, could you post screenshots of your inventory settings for this product and the variations? If you don’t already have a screenshot service installed, here are a few options:

    * https://snipboard.io
    * http://skitch.com/
    * http://getcloudapp.com/
    * http://awesomescreenshot.com/
    There is also a walkthrough guide here: https://en.support.wordpress.com/make-a-screenshot/

    Thread Starter dodieza17

    (@dodieza17)

    Bonjour,
    Merci pour votre retour.
    Il s’agit de produit variable. Je ne peux pas vous joindre d’imprim écran malheureusement.
    Je n’ai rien changé sur la fiche produit depuis la mise à jour de WooCommerce.
    Sur l’onglet “inventaire”, la case “gerer le stock” est décocher car le stock est écrit directement dans l’onglet “variation”.
    Avant quand j’étais sur la version 3 de WooCommerce, lors d’une commande, le stock se mettait à jour pour les produit simple et les produits variable.
    Depuis que je suis en version 4, cela ne marche que pour les produits simples.
    Merci de votre retour

    Hi @dodieza17. I translate your message as:

    Hello,
    Thanks for your feedback.
    This is a variable product. Unfortunately, I cannot reach you with a screenshot.
    I haven’t changed anything on the listing since updating WooCommerce.
    On the “inventory” tab, the “manage stock” box is unchecked because the stock is written directly in the “variation” tab.
    Before when I was on version 3 of WooCommerce, when ordering, the stock updated for single product and variable product.
    Since I am in version 4, it only works for simple products.
    thank you for your comeback

    Do you see any fatal errors in your fatal error logs that match up to when this problem started? To check, go to WooCommerce > Status > Logs in your dashboard, open the dropdown by the “View” button, and look for any logs with “fatal-errors” in the name and an appropriate date. If so, could you copy the contents of the log into pastebin.com, click “Create new paste,” and then share the link so that we could take a look?

    Thread Starter dodieza17

    (@dodieza17)

    Hello,
    There is nothing in “view” and no “fatal errors”.
    I’m going to download the last version of WooCommerce because I saw a new fix :
    Fix – When adding a grouped product to the cart, quantity is passed through the woocommerce_stock_amount filter like it’s done for simple and variable products. #27219
    I hope it works for me.
    What do you think ?

    Thread Starter dodieza17

    (@dodieza17)

    It doesn’t work..

    Hi @dodieza17. This sounds like a code conflict. This can be verified by doing conflict testing using the [Health Check and Troubleshooting](https://ww.wp.xz.cn/plugins/health-check/) plugin. The “troubleshooting mode” of this plugin will allow you to simulate how your site would look and behave with plugins disabled and a default theme without actually changing the site.

    These are the steps you should take:

    1. Back up your site. Many hosting providers offer a way to do this, and there are plugins such as [WP Database Backup](https://ww.wp.xz.cn/plugins/wp-database-backup/) that provide database backup functionality if doing it through your host is not an option.
    2. Update all your plugins and your theme to their latest versions and see if the problem fixes itself.
    3. Turn on Troubleshooting Mode in the Health Check plugin by going to **Tools > Site Health > Troubleshooting** and clicking “Enable Troubleshooting Mode.” Then, while in Troubleshooting Mode:
    4. Make sure your theme is set to Twenty Twenty or another default theme.
    5. Make sure all plugins are deactivated, and then activate WooCommerce.
    6. Repeat the action that is causing the problem.

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which one is causing the problem, reactivate them one by one, testing after each, until you find the one causing conflict.

    Thread Starter dodieza17

    (@dodieza17)

    You’re right !
    It’ the plugin “Pixel caffeine” who bug with WooCommerce.
    I have desactived this plugin, and it’s work perfectly.
    Thank you

    Thread Starter dodieza17

    (@dodieza17)

    I’m sorry but it doesn’t work..
    I have mde my test with a simple product not a variable.. sorry.
    So I desactived all plugins who don’t have test with the last version of WooCommerce and the problem is already here.
    And I find an other problem with the variable product. If a section of the variable is at zero, the stock is still buyable by the customer. We don’t see “it’s out of stock”. So the customer can buy a product who doesn’t exist…
    It’s a real problem..
    I can the plugin WP Rollback and try to return in a version who all work but it’s the same even the version 3.8 or 3.9
    Can you help me please please

    So I desactived all plugins who don’t have test with the last version of WooCommerce and the problem is already here.

    I would deactivate all other plugins except for WooCommerce, including the ones that claim compatibility.

    And I find an other problem with the variable product. If a section of the variable is at zero, the stock is still buyable by the customer. We don’t see “it’s out of stock”. So the customer can buy a product who doesn’t exist…

    Is backordering allowed for these products/variations? This would be in the Inventory settings for the product or in the variation settings for the variations, if stock is managed there. If so, I would disable this setting.

    If not, this would be another thing to test with all other plugins disabled.

    con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

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

The topic ‘Product variable does not update when ordering’ is closed to new replies.