• Resolved codehappy

    (@codehappy)


    Hey Kevin,

    at first thank you very much for your work!

    Unfortunately, I have a problem with ordering a product.
    when i click the checkout button i got an error message that there are not enough units of my product.
    i dont know if i have a misconfiguration or there is a bug but i hope you can help me!

    i hope its not too difficult to understand!

    i want to sell chains and pendants which the customer can configure.

    so, i create 9 chains in different lengths (45cm, 60cm, 70cm) and materials (rosé gold, gold, silver) (9 products)
    and two pendants (silver and gold)
    all these products are in stock and i can order them.

    then i create a variable product with all of these variations (18) and checked the “Add stock dependency” for every variation.
    For every variation i have two dependencies one specific chain and one pendant.
    for the main product i checked “Enable stock management at product level” (or is this wrong??? if i uncheck this i got an “out of stock” message on the product detail site).

    everything works fine, i can put it in the basket case, but in the checkout process i got an error message that the product i want to order dont have enough units…

    the product_is_in_stock function returns true while the checkout process runs but i still got these message and i dont know why…?

    I hope you understand what I mean and I was able to explain it well!

    the website is still in process but if you need the credentials i can give it to you everytime!

    all the best!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author KevinMcCall

    (@kevinmccall)

    Hi,

    It sounds like your Stock Dependency settings are correct. I’ve had this issue myself after the upgrade to the latest version of WooCommerce.

    In your WordPress admin, navigate to WooCommerce > Settings > Products > Inventory and check the “Hold stock (minutes)” setting. This needs to be zero (or empty).

    Currently there is no way for a plugin to modify the products that WooCommerce is trying to reserve when this setting is enabled.

    Let me know how it goes!

    Kevin

    Thread Starter codehappy

    (@codehappy)

    Hey Kevin,

    thank you so much!

    I changed the WooCommerce Settings to Zero and it works perfectly!

    Thank you for your work and super fast reply!

    Have a nice Weekend!

    Plugin Author KevinMcCall

    (@kevinmccall)

    No problem, I’m happy to help

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘checkout -> There are not enough units’ is closed to new replies.