jamesgol / woocommerce-cart-stock-reducer

Allow WooCommerce inventory stock to be reduced when adding items to cart
GNU General Public License v2.0
58 stars 19 forks source link

At Checkout, error indicates product out of stock #96

Open media317 opened 1 year ago

media317 commented 1 year ago

Describe the Bug When a user adds a product to their shopping cart, they are directed to the cart page, which works properly. When they get the check out page and click submit to pay for the item, they get an error message that says "The item is out of stock and cannot be purchases. Please remove the item from your cart."

To Reproduce To test this issue, we reset the inventory to 1 in the dashboard for the product. I then accessed the site via incognito window on another device. I added the item to my cart, no problem. At checkout, when click to submit order, I get the this same message.

WordPress Version: 6.3 WooCommerce Version: 8.0.1 Plugin Version: 3.90 System Report:

WordPress Environment WordPress address (URL): https://midlandmarket.org/ Site address (URL): https://midlandmarket.org/ WC Version: 8.0.1 REST API Version: ✔ 8.0.1 WC Blocks Version: ✔ 10.6.5 Action Scheduler Version: ✔ 3.6.1 Log Directory Writable: ✔ WP Version: 6.3 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: –

Server Environment Server Info: Apache PHP Version: 7.4.33 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.85.0 OpenSSL/3.0.9

SUHOSIN Installed: – MySQL Version: 5.7.39-42-log Max Upload Size: 256 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔

Database WC Database Version: 8.0.1 WC Database Prefix: hcp_ Total Database Size: 41.78MB Database Data Size: 28.61MB Database Index Size: 13.17MB hcp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB hcp_woocommerce_order_items: Data: 0.16MB + Index: 0.06MB + Engine InnoDB hcp_woocommerce_order_itemmeta: Data: 1.52MB + Index: 1.97MB + Engine InnoDB hcp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB hcp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB hcp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_booking: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_bookingdates: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_comments: Data: 1.52MB + Index: 0.95MB + Engine InnoDB hcp_gf_addon_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_gf_addon_payment_callback: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_gf_addon_payment_transaction: Data: 0.02MB + Index: 0.05MB + Engine InnoDB hcp_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB hcp_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_mphb_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_mphb_customers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_mphb_customers_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_mphb_sync_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_mphb_sync_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_mphb_sync_stats: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_mphb_sync_urls: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_options: Data: 3.16MB + Index: 0.08MB + Engine InnoDB hcp_postmeta: Data: 6.52MB + Index: 7.03MB + Engine InnoDB hcp_posts: Data: 13.52MB + Index: 0.58MB + Engine InnoDB hcp_sgs_log_events: Data: 0.05MB + Index: 0.02MB + Engine InnoDB hcp_sgs_log_visitors: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB hcp_wc_admin_notes: Data: 0.09MB + Index: 0.00MB + Engine InnoDB hcp_wc_admin_note_actions: Data: 0.08MB + Index: 0.02MB + Engine InnoDB hcp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_wc_customer_lookup: Data: 0.06MB + Index: 0.03MB + Engine InnoDB hcp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB hcp_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB hcp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_wc_order_product_lookup: Data: 0.22MB + Index: 0.28MB + Engine InnoDB hcp_wc_order_stats: Data: 0.20MB + Index: 0.20MB + Engine InnoDB hcp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_wc_product_meta_lookup: Data: 0.09MB + Index: 0.13MB + Engine InnoDB hcp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB hcp_wpbs_bookings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_wpbs_booking_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_wpbs_calendars: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_wpbs_calendar_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_wpbs_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_wpbs_event_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_wpbs_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_wpbs_form_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB hcp_wpbs_legend_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB hcp_wpbs_legend_item_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB

Post Type Counts attachment: 284 custom_css: 2 mphb_rate: 1 mphb_room: 104 mphb_room_type: 3 mphb_season: 1 page: 13 product: 4 product_variation: 353 revision: 371 shop_order: 1462 shop_order_refund: 2 tec_tc_ticket: 2 tribe_events: 1 tribe_organizer: 1 tribe_venue: 1 wp_global_styles: 2 wp_navigation: 4 wp_template: 6 wp_template_part: 3

Security Secure connection (HTTPS): ✔ Hide errors from visitors: ✔

Active Plugins (13) Gravity Forms: by Gravity Forms – 2.7.12 Gravity Forms PayPal Checkout Add-On: by Gravity Forms – 2.6.0 Jetpack: by Automattic – 12.4 Markup by Attribute for WooCommerce: by MarkTomlinson – 3.11.2 NOAA Weather: by Tim Berneman – 1.4 SiteGround Optimizer: by SiteGround – 7.3.4 SiteGround Security: by SiteGround – 1.4.5 Checkout Field Editor for WooCommerce: by ThemeHigh – 1.9.0 Advanced Order Export For WooCommerce: by AlgolPlus – 3.4.2 WooCommerce Cart Stock Reducer: by James Golovich – 3.90 WooCommerce PayPal Payments: by WooCommerce – 2.2.0 WooCommerce: by Automattic – 8.0.1 SiteGround Central: by SiteGround – 3.0.1

Inactive Plugins (3) WooCommerce Blocks: by Automattic – 10.8.3 WooCommerce Payments: by Automattic – 6.3.1 WooCommerce Stripe Gateway: by WooCommerce – 7.5.0

Settings API Enabled: ✔ Force SSL: ✔ Currency: USD ($) 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)

Connected to WooCommerce.com: – Enforce Approved Product Download Directories: – HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: –

WC Pages Shop base: https://github.com/woocommerce/woocommerce-paypal-payments/pull/5 - /shop/ Cart: https://github.com/woocommerce/woocommerce-paypal-payments/pull/6 - /cart/ Checkout: https://github.com/woocommerce/woocommerce-paypal-payments/issues/7 - /checkout/ My account: https://github.com/woocommerce/woocommerce-paypal-payments/pull/8 - /my-account/ Terms and conditions: https://github.com/woocommerce/woocommerce-paypal-payments/pull/9 - /refund_returns/

Theme Name: Frost Version: 0.8.4 (update to version 1.0.5 is available) Author URL: https://wpengine.com/ 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: ❌ Not declared

Templates Overrides: /home/customer/www/midlandmarket.org/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/templates/notices/error.php /home/customer/www/midlandmarket.org/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/templates/notices/notice.php /home/customer/www/midlandmarket.org/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/templates/notices/success.php

WooCommerce PayPal Payments Onboarded: ✔ Shop country code: US WooCommerce currency supported: ✔ Advanced Card Processing available in country: ✔ Pay Later messaging available in country: ✔ Webhook status: – PayPal Vault enabled: – ACDC Vault enabled: – Logging enabled: – Reference Transactions: – Used PayPal Checkout plugin: – Tracking enabled: –

Admin Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page

Disabled Features: minified-js new-product-management-experience product-variation-management settings async-product-editor-category-field

Daily Cron: ✔ Next scheduled: 2023-08-15 23:41:43 -04:00 Options: ✔ Notes: 160 Onboarding: completed

Action Scheduler Complete: 14 Oldest: 2023-08-15 00:07:22 -0400 Newest: 2023-08-15 00:37:18 -0400

Failed: 2 Oldest: 2023-04-01 13:43:14 -0400 Newest: 2023-05-17 12:10:07 -0400

Pending: 1 Oldest: 2023-08-16 00:07:22 -0400 Newest: 2023-08-16 00:07:22 -0400

Status report information Generated at: 2023-08-15 10:10:41 -04:00

jamesgol commented 1 year ago

Sorry for the delay, it looks like I need to do some testing with the latest WooCommerce.