• Resolved moonwhale

    (@moonwhale)


    Hi! This plugin is a blessing and it worked just fine until I updated a client’s site with the latest version of WooCommerce and now we’re having two problems:

    – Some Products appear as available, but just after the customer adds it to the cart, appears a message saying is not available anymore.

    – Some Products don’t seem to have the Virtual Stock updated after cart expiration, so these same products appear out of stock despite the Real Stock having enough.

    The site has Cache and Redis enabled, but all key WC pages were excluded from caching, including the Product Pages. Also, despite the cache, the plugin worked just fine for a couple of weeks, so maybe it is really the latest WC version.

    Anyway, any help is more than welcome.

    Thanks.

    ### wp-core ###
    
    version: 5.5
    site_language: pt_BR
    user_language: pt_BR
    timezone: America/Sao_Paulo
    permalink: /%category%/%postname%/
    https_status: true
    user_registration: 1
    blog_public: 1
    default_comment_status: open
    multisite: false
    user_count: 788
    dotorg_communication: true
    
    ### wp-paths-sizes ###
    
    wordpress_path: /home/runcloud/webapps/lidina25
    wordpress_size: 50,20 MB (52636036 bytes)
    uploads_path: /home/runcloud/webapps/lidina25/wp-content/uploads
    uploads_size: 481,50 MB (504888194 bytes)
    themes_path: /home/runcloud/webapps/lidina25/wp-content/themes
    themes_size: 36,84 MB (38632329 bytes)
    plugins_path: /home/runcloud/webapps/lidina25/wp-content/plugins
    plugins_size: 129,92 MB (136230488 bytes)
    database_size: 130,02 MB (136333112 bytes)
    total_size: 828,48 MB (868720159 bytes)
    
    ### wp-dropins (1) ###
    
    object-cache.php: true
    
    ### wp-active-theme ###
    
    name: Woodmart (woodmart)
    version: 5.1.0
    author: XTemos
    author_website: https://themeforest.net/user/xtemos
    parent_theme: none
    theme_features: core-block-patterns, woocommerce, wc-product-gallery-zoom, post-thumbnails, post-formats, automatic-feed-links, title-tag, menus, editor-style, widgets
    theme_path: /home/runcloud/webapps/lidina25/wp-content/themes/woodmart
    auto_update: Desativado
    
    ### wp-mu-plugins (2) ###
    
    aaa-wp-cerber.php: version: 1.0, author: Cerber Tech Inc.
    ManageWP - Worker Loader: author: GoDaddy, version: (undefined)
    
    ### wp-plugins-active (37) ###
    
    Advanced Database Cleaner PRO: version: 3.1.0, author: Younes JFR., Atualiza??es automáticas desativadas
    Autoptimize: version: 2.7.7, author: Frank Goossens (futtta), Atualiza??es automáticas desativadas
    Brazilian Market on WooCommerce: version: 3.7.2, author: Claudio Sanches, Atualiza??es automáticas desativadas
    BunnyCDN: version: 1.0.7, author: BunnyCDN, Atualiza??es automáticas desativadas
    Cart Reports for WooCommerce: version: 1.2.9, author: WooCommerce, Atualiza??es automáticas desativadas
    Claudio Sanches - Correios for WooCommerce: version: 3.8.0, author: Claudio Sanches, Atualiza??es automáticas desativadas
    Code Snippets: version: 2.14.0, author: Code Snippets Pro, Atualiza??es automáticas desativadas
    Custom Shipping Methods for WooCommerce: version: 1.6.3, author: Tyche Softwares, Atualiza??es automáticas desativadas
    Easy Auto SKU Generator for WooCommerce: version: 1.0.1, author: Dan Zakirov, Atualiza??es automáticas desativadas
    Elementor: version: 2.9.9, author: Elementor.com (latest version: 3.0.0), Atualiza??es automáticas desativadas
    Elementor Pro: version: 2.10.3, author: Elementor.com, Atualiza??es automáticas desativadas
    Flexible Checkout Fields: version: 2.5.1, author: WP Desk (latest version: 2.5.2), Atualiza??es automáticas desativadas
    JetEngine: version: 2.4.9, author: Crocoblock (latest version: 2.4.10), Atualiza??es automáticas desativadas
    Loco Translate: version: 2.4.2, author: Tim Whitlock, Atualiza??es automáticas desativadas
    ManageWP - Worker: version: 4.9.7, author: GoDaddy, Atualiza??es automáticas desativadas
    Mercado Pago payments for WooCommerce: version: 4.2.2, author: Mercado Pago, Atualiza??es automáticas desativadas
    Nota Fiscal Eletr?nica WooCommerce: version: 3.0.15, author: WebmaniaBR, Atualiza??es automáticas desativadas
    Perfmatters: version: 1.6.0, author: forgemedia, Atualiza??es automáticas desativadas
    Postmark (Official): version: 1.12.5, author: Andrew Yates & Matt Gibbs, Atualiza??es automáticas desativadas
    QR Code PicPay for WooCommerce: version: 1.2.0, author: Deividson Damasio, Atualiza??es automáticas desativadas
    Rank Math SEO: version: 1.0.47.1, author: Rank Math, Atualiza??es automáticas desativadas
    Relevanssi Premium: version: 2.8.1, author: Mikko Saari, Atualiza??es automáticas desativadas
    RunCloud Hub: version: 1.0.4, author: RunCloud, Atualiza??es automáticas desativadas
    Smart Manager: version: 4.3.9, author: StoreApps (latest version: 4.4.2), Atualiza??es automáticas desativadas
    User Switching: version: 1.5.5, author: John Blackbourn & contributors, Atualiza??es automáticas desativadas
    Variation Swatches for WooCommerce: version: 1.0.85, author: Emran Ahmed, Atualiza??es automáticas desativadas
    Variation Swatches for WooCommerce - Pro: version: 1.0.55, author: Emran Ahmed, Atualiza??es automáticas desativadas
    WooCommerce: version: 4.4.1, author: Automattic, Atualiza??es automáticas desativadas
    WooCommerce Conditional Shipping and Payments: version: 1.8.1, author: SomewhereWarm, Atualiza??es automáticas desativadas
    WooCommerce Cost of Goods: version: 2.9.8, author: SkyVerge, Atualiza??es automáticas desativadas
    WooCommerce Email Customizer with Drag and Drop Email Builder: version: 1.5.15, author: Flycart Technologies LLP, Atualiza??es automáticas desativadas
    WooCommerce Order Status & Actions Manager: version: 2.4.11, author: Actuality Extensions, Atualiza??es automáticas desativadas
    WooCommerce Print Invoices/Packing Lists: version: 3.8.6, author: SkyVerge, Atualiza??es automáticas desativadas
    WooCommerce Save & Share Cart: version: 2.20, author: cxThemes, Atualiza??es automáticas desativadas
    Woodmart Core: author: (undefined), version: 1.0.25, Atualiza??es automáticas desativadas
    WP Cerber Security, Anti-spam & Malware Scan: version: 8.6.7, author: Cerber Tech Inc., Atualiza??es automáticas desativadas
    WP Crontrol: version: 1.8.5, author: John Blackbourn & crontributors, Atualiza??es automáticas desativadas
    
    ### wp-plugins-inactive (2) ###
    
    Store Toolkit for WooCommerce: version: 2.2, author: Visser Labs, Atualiza??es automáticas desativadas
    WooCommerce Cart Stock Reducer: version: 3.30, author: James Golovich, Atualiza??es automáticas desativadas
    
    ### wp-media ###
    
    image_editor: WP_Image_Editor_GD
    imagick_module_version: Indisponível
    imagemagick_version: Indisponível
    file_uploads: File uploads is turned off
    post_max_size: 128M
    upload_max_filesize: 128M
    max_effective_size: 128 MB
    max_file_uploads: 20
    gd_version: bundled (2.1.0 compatible)
    ghostscript_version: not available
    
    ### wp-server ###
    
    server_architecture: Linux 5.4.0-42-generic x86_64
    httpd_software: Apache/2.4.43 (Unix) OpenSSL/1.1.1f
    php_version: 7.4.8 64bit
    php_sapi: fpm-fcgi
    max_input_variables: 10000
    time_limit: 180
    memory_limit: 512M
    max_input_time: 180
    upload_max_size: 128M
    php_post_max_size: 128M
    curl_version: 7.68.0 OpenSSL/1.1.1f
    suhosin: false
    imagick_availability: false
    pretty_permalinks: true
    htaccess_extra_rules: true
    
    ### wp-database ###
    
    extension: mysqli
    server_version: 10.4.13-MariaDB-1:10.4.13+maria~focal-log
    client_version: mysqlnd 7.4.8
    
    ### wp-constants ###
    
    WP_HOME: undefined
    WP_SITEURL: undefined
    WP_CONTENT_DIR: /home/runcloud/webapps/lidina25/wp-content
    WP_PLUGIN_DIR: /home/runcloud/webapps/lidina25/wp-content/plugins
    WP_MAX_MEMORY_LIMIT: 512M
    WP_DEBUG: false
    WP_DEBUG_DISPLAY: false
    WP_DEBUG_LOG: true
    SCRIPT_DEBUG: false
    WP_CACHE: false
    CONCATENATE_SCRIPTS: undefined
    COMPRESS_SCRIPTS: undefined
    COMPRESS_CSS: undefined
    WP_LOCAL_DEV: undefined
    DB_CHARSET: utf8mb4
    DB_COLLATE: undefined
    
    ### wp-filesystem ###
    
    wordpress: writable
    wp-content: writable
    uploads: writable
    plugins: writable
    themes: writable
    mu-plugins: writable
Viewing 15 replies - 1 through 15 (of 26 total)
  • Plugin Author James Golovich

    (@jamesgol)

    What type of products are you using (simple, variable, something else)?

    Are you getting any errors in the logs?

    I haven’t been able to reproduce these issues on a test setup. Your theme and a bunch of those plugins aren’t freely available so I won’t be able to duplicate your exact setup in a test environment.

    Thread Starter moonwhale

    (@moonwhale)

    What type of products are you using (simple, variable, something else)?

    Both Simple and Variable, but most are Variable Products with A LOT of Variations (some have almost 100 variations). The issue occurs in both cases, I’m not sure if the issue occurs more with one type than the other.

    Are you getting any errors in the logs?

    Can’t find anything specific about the plugin.

    I haven’t been able to reproduce these issues on a test setup. Your theme and a bunch of those plugins aren’t freely available so I won’t be able to duplicate your exact setup in a test environment.

    Based on the plugin list I shared, do you have any idea which ones I should check or maybe disable? Plugins that can affect your plugin?

    And what about the latest WC version? Anything in this latest updated (or any updated before) that can affect your plugin? Because, as I said, everything was fine until I updated WC. :S

    Plugin Author James Golovich

    (@jamesgol)

    Honestly, the easiest way would be to start from the bare minimum and just start enabling other plugins to see if you can reproduce a failure. If you only have a production site and not a development/staging site that might be tough to do.

    Have you tried clearing all the existing carts/sessions via WooCommerce? Maybe items were added to carts without this plugin enabled and it’s causing the count to be off?

    Thread Starter moonwhale

    (@moonwhale)

    Honestly, the easiest way would be to start from the bare minimum and just start enabling other plugins to see if you can reproduce a failure. If you only have a production site and not a development/staging site that might be tough to do.

    I can create a stagging site, but the problem is to have the same volume of access and interactions from the original site, in order to properly compare.

    Have you tried clearing all the existing carts/sessions via WooCommerce? Maybe items were added to carts without this plugin enabled and it’s causing the count to be off?

    I’m gonna give it a try later when there are no customers online, maybe it can solve.

    Thanks for all the help so far. ??

    Plugin Author James Golovich

    (@jamesgol)

    The volume of traffic is generally not a factor in these issues (other than potential speed/slowdown).

    If you bundle up all the theme/plugins and send me a link via email ([email protected]) I could spinup a local instance to see if I can reproduce that way.

    Plugin Author James Golovich

    (@jamesgol)

    You could try adding the following to your functions.php (or elsewhere):
    add_filter( 'woocommerce_hold_stock_for_checkout', '__return_false' );

    In my testing the WooCommerce recent “hold stock” functionality has never been an issue but I’m going to explore it some more. I see some potential conflicts there and it might be something I’ll forcibly disable until WooCommerce properly handles holding stock (at least in a way the users expect)

    Thread Starter moonwhale

    (@moonwhale)

    You could try adding the following to your functions.php (or elsewhere):
    add_filter( 'woocommerce_hold_stock_for_checkout', '__return_false' );

    Okay, I added this snippet to the site. I’ll keep monitoring and I’ll let you know if there is any change.

    Again, thanks for the plugin and the help.

    Plugin Author James Golovich

    (@jamesgol)

    I can’t be sure it will help at all, I’ve not been able to reproduce a failure instance related to that functionality but there could be some interaction with another plugin causing a problem.

    Thread Starter moonwhale

    (@moonwhale)

    I can’t be sure it will help at all, I’ve not been able to reproduce a failure instance related to that functionality but there could be some interaction with another plugin causing a problem.

    I understand, but I’ll give it a try. Just one thing: this is similar to the “Hold Stock” in the settings? Because I already have that one disabled (blank).

    Plugin Author James Golovich

    (@jamesgol)

    I understand, but I’ll give it a try. Just one thing: this is similar to the “Hold Stock” in the settings? Because I already have that one disabled (blank).

    Yes, it’s somewhat related. That setting has been around for a long time but around 4.1.0 they added an additional table to keep track of quantity of items that are in limbo between order placed and order payment/completion.

    If you have it set to 0 it should be ignore but if it’s blank it might default to 60 minutes.

    Thread Starter moonwhale

    (@moonwhale)

    If you have it set to 0 it should be ignore but if it’s blank it might default to 60 minutes.

    So I should set to 0 instead of letting it blank? Because it says to just keep it blank to disabled it, so I thought that was the right way.

    And I keep the snippet you shared and the 0 in the settings at the same time?

    Plugin Author James Golovich

    (@jamesgol)

    So I should set to 0 instead of letting it blank? Because it says to just keep it blank to disabled it, so I thought that was the right way.
    
    And I keep the snippet you shared and the 0 in the settings at the same time?
    

    Looking at the code it appears that if you leave it blank (like it tells you to) it will default to 60 minutes. It looks like they changed the default from 0 to 60 and never updated the description/tool tip. (Edit: This is why I never trust the docs and always look to the code)

    If you add that snippet it should be disabled regardless of the setting.

    Thread Starter moonwhale

    (@moonwhale)

    If you add that snippet it should be disabled regardless of the setting.

    Okay, in that case, I’ll keep only the snippet for now and see what will happen.

    Thanks so far.

    Thread Starter moonwhale

    (@moonwhale)

    I’m still investigating the issue. Just two questions:

    1) Your plugin restores the stock after an order is canceled?
    2) Or do you know, by any chance, if they added this feature on any of the latest WooCommerce updates?

    Plugin Author James Golovich

    (@jamesgol)

    This plugin does not modify the actual stock in any way, it creates its own “virtual stock” by counting items in the cart (and expiring them if enabled).

    WooCommerce did add something to “hold stock” between when an order is placed and payment is received but in my opinion that doesn’t cover the usages that actual store owners expect.

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘Don’t seem to work properly with the latest version of WC’ is closed to new replies.