• Resolved bamarlay

    (@bamarlay)


    Hi,

    Since the Woocommerce update 4.4.1, I have noticed that the stock quantity of products manually added to the order are not updated. I found this new fix/improvement in the WooCommerce changelog for 4.4.0.

    ‘If you are manually creating a new order, stocks will be updated only after you have saved the order (in any status where stocks are supposed to be reduced like on-hold, completed or processing). Earlier, stocks would have been reduced even if the order was not saved (as soon as products were added). (#26642)”.

    However, the failure to update the stock occurs only when you add new product to existing order. Removal of a product from the existing order increases the stock quantity accordingly. However, if you add a new item to the existing order, the stock quantity was not reduced (I noticed this first when the Order Note does not record change in stock quantity). Updating. saving or changing the order to processing does not update the stock quantity. Strangely, removing the said product also does not increase the stock, meaning these activities are not recorded in the inventory. Cancelling the order also only restock the original items in the order, and newly added items are not restocked (they are not deducted from the very beginning).

    I think it is a bug in the 4.4.1 (not sure about 4.4.0 because I just noticed it a few days ago).

    Below is the system info from Woocommerce.

    Thanks for your support.

    Myat

    ‘`
    ### WordPress Environment ###

    WordPress address (URL): https://www.cuddlemetoys.com
    Site address (URL): https://www.cuddlemetoys.com
    WC Version: 4.4.1
    REST API Version: ? 1.0.15
    WC Blocks Version: ? 3.3.0
    Action Scheduler Version: ? 3.1.6
    WC Admin Version: ? 1.4.0
    Log Directory Writable: ?
    WP Version: 5.5.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: –
    Language: en_US
    External object cache: –

    ### Server Environment ###

    Server Info: Apache
    PHP Version: 7.4.9
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.58.0
    OpenSSL/1.1.1

    SUHOSIN Installed: –
    MySQL Version: 5.5.5-10.1.44-MariaDB-0ubuntu0.18.04.1
    Max Upload Size: 2 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?

    ### Database ###

    WC Database Version: 4.4.1
    WC Database Prefix: tQ6LfI7_
    Total Database Size: 45.96MB
    Database Data Size: 32.63MB
    Database Index Size: 13.33MB
    tQ6LfI7_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    tQ6LfI7_woocommerce_order_items: Data: 0.23MB + Index: 0.11MB + Engine InnoDB
    tQ6LfI7_woocommerce_order_itemmeta: Data: 2.52MB + Index: 3.03MB + Engine InnoDB
    tQ6LfI7_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    tQ6LfI7_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_actionscheduler_actions: Data: 1.19MB + Index: 0.56MB + Engine InnoDB
    tQ6LfI7_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_actionscheduler_logs: Data: 1.33MB + Index: 0.36MB + Engine InnoDB
    tQ6LfI7_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_atum_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_atum_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_atum_product_data: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    tQ6LfI7_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_comments: Data: 1.52MB + Index: 0.61MB + Engine InnoDB
    tQ6LfI7_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_options: Data: 2.06MB + Index: 0.13MB + Engine InnoDB
    tQ6LfI7_postmeta: Data: 6.52MB + Index: 6.03MB + Engine InnoDB
    tQ6LfI7_posts: Data: 4.52MB + Index: 0.44MB + Engine InnoDB
    tQ6LfI7_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_term_relationships: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    tQ6LfI7_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    tQ6LfI7_wcpdf_invoice_number: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wc_customer_lookup: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_wc_order_product_lookup: Data: 0.28MB + Index: 0.36MB + Engine InnoDB
    tQ6LfI7_wc_order_stats: Data: 0.11MB + Index: 0.08MB + Engine InnoDB
    tQ6LfI7_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    tQ6LfI7_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine InnoDB
    tQ6LfI7_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    tQ6LfI7_wfconfig: Data: 1.45MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wffilemods: Data: 5.52MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wfhits: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    tQ6LfI7_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    tQ6LfI7_wfknownfilelist: Data: 2.52MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wflogins: Data: 0.27MB + Index: 0.13MB + Engine InnoDB
    tQ6LfI7_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    tQ6LfI7_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wfnotifications: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    tQ6LfI7_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    tQ6LfI7_wfstatus: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    tQ6LfI7_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    tQ6LfI7_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB

    ### Post Type Counts ###

    attachment: 1045
    elementor_library: 1
    jp_img_sitemap: 4
    jp_sitemap: 4
    jp_sitemap_master: 4
    nav_menu_item: 18
    page: 11
    post: 52
    product: 125
    product_variation: 47
    revision: 10
    shop_coupon: 5
    shop_order: 720
    shop_order_refund: 1

    ### Security ###

    Secure connection (HTTPS): ?
    Hide errors from visitors: ?

    ### Active Plugins (23) ###

    Akismet Anti-Spam: by Automattic – 4.1.6
    Block Bad Queries (BBQ): by Jeff Starr – 20200811
    Code Snippets: by Code Snippets Pro – 2.14.0
    Elementor Pro: by Elementor.com – 3.0.3
    Elementor: by Elementor.com – 3.0.6
    Facebook for WooCommerce: by Facebook – 2.0.1 – Installed version not tested with active version of WooCommerce 4.4.1
    Jetpack by WordPress.com: by Automattic – 8.9
    Ocean Extra: by OceanWP – 1.6.5
    Product CSV Import Export (BASIC): by WebToffee – 1.8.3
    Redis Object Cache: by Till Krüss – 2.0.13
    TinyMCE Advanced: by Andrew Ozz – 5.5.0
    Unsplash: by Unsplash – 1.0.1
    UpdraftPlus – Backup/Restore: by UpdraftPlus.Com
    DavidAnderson – 1.16.29

    WC Search Orders By Product: by WPHEKA – 1.5
    Checkout Field Editor for WooCommerce: by ThemeHigh – 1.4.3 – Installed version not tested with active version of WooCommerce 4.4.1
    WooCommerce Blocks: by Automattic – 3.3.0
    WooCommerce Extended Coupon Features FREE: by Soft79 – 3.2.1
    WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.6.0
    WooCommerce: by Automattic – 4.4.1
    Wordfence Security: by Wordfence – 7.4.11
    WP Crontrol: by John Blackbourn & crontributors – 1.8.5
    WP Mail SMTP: by WPForms – 2.3.1
    WP Super Cache: by Automattic – 1.7.1

    ### Inactive Plugins (4) ###

    Official Facebook Pixel: by Facebook – 2.2.0
    WordPress Importer: by wordpressdotorg – 0.7
    WP-Optimize – Clean, Compress, Cache: by David Anderson
    Ruhani Rabin
    Team Updraft – 3.1.2

    WPForms Lite: by WPForms – 1.6.2.2

    ### Dropin Plugins (2) ###

    advanced-cache.php: advanced-cache.php
    maintenance.php: maintenance.php

    ### Settings ###

    API Enabled: –
    Force SSL: –
    Currency: MMK (Ks)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 0
    Taxonomies: Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)

    Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
    exclude-from-search (exclude-from-search)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-5 (rated-5)

    Connected to WooCommerce.com: ?

    ### WC Pages ###

    Shop base: #10 – /shop/
    Cart: #11 – /cart/
    Checkout: #12 – /checkout/
    My account: #13 – /my-account/
    Terms and conditions: ? Page not set

    ### Theme ###

    Name: OceanWP
    Version: 1.8.7
    Author URL: https://oceanwp.org/about-me/
    Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
    WooCommerce Support: ?

    ### Templates ###

    Overrides: oceanwp/woocommerce/cart/mini-cart.php
    oceanwp/woocommerce/content-single-product.php
    oceanwp/woocommerce/loop/loop-start.php
    oceanwp/woocommerce/single-product/title.php

    ### Action Scheduler ###

    Complete: 1,836
    Oldest: 2020-08-10 06:00:03 +0000
    Newest: 2020-09-09 01:29:17 +0000

    Pending: 4
    Oldest: 2020-09-09 02:29:17 +0000
    Newest: 2020-09-09 09:29:02 +0000

    `’

    • This topic was modified 4 years, 2 months ago by bamarlay.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support tijosh

    (@tijosh)

    Hi there @bamarlay,

    As you noted, a change in WooCommerce 4.4 requires new manual orders to be set to On hold, Processing, or Completed for stock to be reduced.

    For existing orders which already have one of those statuses, changing to On hold and adding a new product will currently not reduce stock. The discussion is being tracked in GitHub here: https://github.com/woocommerce/woocommerce/issues/27445

    Keep an eye on that issue for developments. For now, setting the order status to Pending Payment allows the addition of more products, and then setting back to On hold, Processing, or Completed reduces stock.

    • This reply was modified 4 years, 2 months ago by tijosh.
    Plugin Support Thu P. a11n

    (@thup90)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Products quantity not update when products are manually added to order’ is closed to new replies.