Support » Plugin: WooCommerce » Restock not working

  • Resolved Vadim

    (@vadikcoma)


    we are having the issue with restock – and it doesn’t seem to work even 24 hours when product is added to cart, but not purchased.

    We tried restocking plugin – we solved it only for simple products, but variable products are still not restocking

    System check:

    
    ### WordPress Environment ###
    
    Home URL: https://nonpareil.lv
    Site URL: https://nonpareil.lv
    WC Version: 3.4.2
    Log Directory Writable: ✔
    WP Version: 4.9.6
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.0.30 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version
    PHP Post Max Size: 50 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 1000
    cURL Version: 7.54.0
    OpenSSL/1.0.2k
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.39-cll-lve
    Max Upload Size: 40 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.4.2
    WC Database Prefix: ge_
    MaxMind GeoIP Database: ✔
    Total Database Size: 4.69MB
    Database Data Size: 3.51MB
    Database Index Size: 1.18MB
    ge_woocommerce_sessions: Data: 0.03MB + Index: 0.00MB
    ge_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB
    ge_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB
    ge_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB
    ge_woocommerce_order_items: Data: 0.00MB + Index: 0.00MB
    ge_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.02MB
    ge_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB
    ge_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB
    ge_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB
    ge_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB
    ge_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB
    ge_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB
    ge_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB
    ge_woocommerce_log: Data: 0.00MB + Index: 0.00MB
    ge_blc_filters: Data: 0.00MB + Index: 0.00MB
    ge_blc_instances: Data: 0.00MB + Index: 0.00MB
    ge_blc_links: Data: 0.00MB + Index: 0.01MB
    ge_blc_synch: Data: 0.00MB + Index: 0.00MB
    ge_commentmeta: Data: 0.00MB + Index: 0.01MB
    ge_comments: Data: 0.01MB + Index: 0.01MB
    ge_links: Data: 0.00MB + Index: 0.00MB
    ge_lockdowns: Data: 0.00MB + Index: 0.00MB
    ge_login_fails: Data: 0.00MB + Index: 0.00MB
    ge_options: Data: 1.87MB + Index: 0.07MB
    ge_postmeta: Data: 1.17MB + Index: 0.84MB
    ge_posts: Data: 0.20MB + Index: 0.10MB
    ge_revslider_css: Data: 0.09MB + Index: 0.00MB
    ge_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB
    ge_revslider_navigations: Data: 0.00MB + Index: 0.00MB
    ge_revslider_sliders: Data: 0.01MB + Index: 0.00MB
    ge_revslider_slides: Data: 0.08MB + Index: 0.00MB
    ge_revslider_static_slides: Data: 0.00MB + Index: 0.00MB
    ge_taxonomymeta: Data: 0.00MB + Index: 0.01MB
    ge_termmeta: Data: 0.00MB + Index: 0.01MB
    ge_terms: Data: 0.00MB + Index: 0.01MB
    ge_term_relationships: Data: 0.01MB + Index: 0.03MB
    ge_term_taxonomy: Data: 0.00MB + Index: 0.01MB
    ge_usermeta: Data: 0.02MB + Index: 0.02MB
    ge_users: Data: 0.00MB + Index: 0.01MB
    ge_wc_download_log: Data: 0.00MB + Index: 0.00MB
    ge_wc_webhooks: Data: 0.00MB + Index: 0.00MB
    ge_yith_wcwl: Data: 0.00MB + Index: 0.00MB
    ge_yith_wcwl_lists: Data: 0.00MB + Index: 0.01MB
    ge_yoast_seo_links: Data: 0.00MB + Index: 0.00MB
    ge_yoast_seo_meta: Data: 0.00MB + Index: 0.00MB
    
    ### Post Type Counts ###
    
    amn_exact-metrics: 1
    attachment: 110
    nav_menu_item: 16
    option-tree: 2
    page: 15
    post: 2
    product: 69
    product_variation: 429
    revision: 17
    shop_order: 7
    staticblocks: 2
    wpcf7_contact_form: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (19) ###
    
    Broken Link Checker: by Janis Elsts
    Vladimir Prelovac – 1.11.5
    
    Contact Form 7: by Takayuki Miyoshi – 5.0.2
    Google Analytics Dashboard for WP (GADWP): by ExactMetrics – 5.3.5
    Head, Footer and Post Injections: by Stefano Lissa – 3.1.1
    Imsanity: by Shane Bishop – 2.3.10
    Instagram Feed: by Smash Balloon – 1.8.3
    WPBakery Page Builder: by Michael M - WPBakery.com – 5.4.5
    Login LockDown: by Michael VanDeMar – v1.7.1
    My Custom Functions: by Space X-Chimp – 4.19
    PW WooCommerce Bulk Edit: by Pimwick
    LLC – 2.47
    
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.0.2
    Slider Revolution: by ThemePunch – 5.4.6.3.1
    Simple Custom CSS: by John Regan
    Danny Van Kooten – 4.0.1
    
    WooCommerce Variation Swatches: by ThemeAlien – 1.0.3 – Not tested with the active version of WooCommerce
    WooCommerce Payment Gateway - Paysera: by Paysera – 2.4.8 – Not tested with the active version of WooCommerce
    WooCommerce Auto Restore Stock: by Gerhard Potgieter – 1.0.1 – Not tested with the active version of WooCommerce
    WooCommerce: by Automattic – 3.4.2
    Yoast SEO: by Team Yoast – 7.6.1
    YITH WooCommerce Wishlist: by YITHEMES – 2.2.2
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: –
    Currency: EUR (€)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    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)
    
    ### WC Pages ###
    
    Shop base: #1161 - /shop/
    Cart: #810 - /cart/
    Checkout: #811 - /checkout/
    My account: #812 - /my-account/
    Terms and conditions: #1109 - /terms-conditions/
    
    ### Theme ###
    
    Name: LEGENDA - 8theme WordPress theme
    Version: 3.6
    Author URL: http://themeforest.net/user/8theme
    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: legenda/woocommerce/archive-product.php version 3.3.0 is out of date. The core version is 3.4.0
    legenda/woocommerce/cart/cart-empty.php
    legenda/woocommerce/cart/cart-shipping.php
    legenda/woocommerce/cart/cart.php version 3.3.0 is out of date. The core version is 3.4.0
    legenda/woocommerce/cart/cross-sells.php
    legenda/woocommerce/cart/mini-cart.php
    legenda/woocommerce/checkout/form-billing.php
    legenda/woocommerce/checkout/form-checkout.php
    legenda/woocommerce/checkout/form-coupon.php version 3.3.0 is out of date. The core version is 3.4.0
    legenda/woocommerce/checkout/form-login.php version 2.0.0 is out of date. The core version is 3.4.0
    legenda/woocommerce/checkout/form-shipping.php
    legenda/woocommerce/checkout/review-order.php
    legenda/woocommerce/content-product.php version 3.0.0 is out of date. The core version is 3.4.0
    legenda/woocommerce/content-product_cat.php
    legenda/woocommerce/content-single-product.php version 3.0.0 is out of date. The core version is 3.4.0
    legenda/woocommerce/content-widget-product.php
    legenda/woocommerce/global/form-login.php
    legenda/woocommerce/global/quantity-input.php version 3.3.0 is out of date. The core version is 3.4.0
    legenda/woocommerce/loop/add-to-cart.php
    legenda/woocommerce/loop/loop-end.php
    legenda/woocommerce/loop/loop-start.php
    legenda/woocommerce/loop/no-products-found.php
    legenda/woocommerce/loop/pagination.php
    legenda/woocommerce/loop/rating.php
    legenda/woocommerce/myaccount/form-login.php version 3.3.0 is out of date. The core version is 3.4.0
    legenda/woocommerce/myaccount/my-downloads.php
    legenda/woocommerce/myaccount/navigation.php
    legenda/woocommerce/single-product/add-to-cart/external.php version 2.1.0 is out of date. The core version is 3.4.0
    legenda/woocommerce/single-product/add-to-cart/simple.php version 3.0.0 is out of date. The core version is 3.4.0
    legenda/woocommerce/single-product/meta.php
    legenda/woocommerce/single-product/product-image.php version 3.1.0 is out of date. The core version is 3.3.2
    legenda/woocommerce/single-product/product-thumbnails.php version 3.1.0 is out of date. The core version is 3.3.2
    legenda/woocommerce/single-product/related.php
    legenda/woocommerce/single-product/short-description.php
    legenda/woocommerce/single-product/tabs/tabs.php
    legenda/woocommerce/single-product/title.php
    legenda/woocommerce/single-product/up-sells.php
    legenda/woocommerce/single-product-reviews.php
    legenda/woocommerce/single-product.php
    
    Outdated Templates: ❌
    					
    					
    						Learn how to update
    

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support AJ a11n

    (@amandasjackson)

    Hi there,

    we are having the issue with restock – and it doesn’t seem to work even 24 hours when product is added to cart, but not purchased.

    Is this a new issue on your site? Has this ever worked correctly for variable products?

    Are you referring to the “hold stock” option in WooCommerce core?

    Hold stock
    Link to image: https://cld.wthms.co/DY1oE6

    If this is the case, and the settings as entered here are not correctly releasing the stock, there may be an issue with your theme or another plugin.

    It looks like you have a number of outdated templates and template overrides. I would recommend first updating these, and then also try switching to the default Storefront theme to see if this resolves the issue.

    If you are not referring to the WooCommerce “hold stock” function, and are rather wanting a restock of your products as the WooCommerce Auto Restock plugin you mentioned would do, you will want to reach out to the plugin’s developer, as this is not a function of core that we can help you with. https://wordpress.org/support/plugin/woocommerce-auto-restore-stock

    Plugin Support Kenin

    (@kbassart)

    Automattic Happiness Engineer

    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.

    Thread Starter Vadim

    (@vadikcoma)

    Hello Amanda, sorry for late reply,

    We had this “hold stock” option enabled all the time, however we are not really sure it it was solving our issue, because it was set to 60 minutes and I’m not sure if we ever waited that long to check.

    We will keep checking, thank you!

    Thread Starter Vadim

    (@vadikcoma)

    Hello @amandasjackson, we tried all possible ways of getting restock to work.

    Currently even if I cancel order manually (mark as cancelled) stock does’t return. What am I doing wrong? Can you please assist me?

    Plugin Support Con Schneider

    (@conschneider)

    Automattic Happiness Engineer

    Hi there,

    You can try and make use of: https://wordpress.org/plugins/woocommerce-auto-restore-stock/

    Kind regards,

    Thread Starter Vadim

    (@vadikcoma)

    Hi @conschneider we tried restocking plugin, however it works only for simple products. It doesn’t restock variable products

    Plugin Support Con Schneider

    (@conschneider)

    Automattic Happiness Engineer

    Hello again,

    Looks like the plugin needs an update as it is using some deprecated functions. Maybe this will make it support variations as well. For example instead of $_product = $order->get_product_from_item( $item ); use $_product = wc_get_product($item['product_id']); – just a thought construct of mine and not tested or really anything beyond my figments.

    Thread Starter Vadim

    (@vadikcoma)

    The problem was with our payment provider Paysera – they had settings for different status of order during “add to cart” and “checkout”. And for some reason these settings were working incorrectly, when orders were cancelled. Now its fixed

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Restock not working’ is closed to new replies.