QTY function gone awry!
-
HI folks!
Need some help here.
A few days ago I noticed the QTY function wasn’t working. For example on this link – the actual item had 6 in the 5ml variant and 3 in the 10ml. However after selecting either of these the user can still continue adding more than 6 and 3 respectively. This used to halt at the max qty available number until recently?
The only fix I’ve got so far is to limit to 1 per order for each item (!), so that the website can stay online. The other products have been switched to ‘one per order’ so you can see that in action too,
Theme used is PUCA -ecommerce theme.
Hope you can help!
The page I need help with: [log in to see the link]
-
Hi @itsmefti, I wanted to let you know that this is a known issue and there is a GH issue attached and being worked on.
Hi @itsmefti
Thanks for your report, as William noted this is being worked on and a fix will hopefully be included in the next release.
I just wanted to clarify on one aspect related to how the issue is affecting your website.The only fix I’ve got so far is to limit to 1 per order for each item (!), so that the website can stay online. The other products have been switched to ‘one per order’ so you can see that in action too,
It is our understanding of the issue that if a user enters a larger quantity than is in stock they would be presented with a notice “You cannot add that amount of “{ variable product name }” to the cart because there is not enough stock ({ amount of stock } remaining).”
This should be enough to prevent anyone accidentally being able to add to cart or checkout too many of the item and they can then try again and enter a lower quantity instead.
If you are not seeing this notice or there are other impacts as a result of this issue it could be that you have another plugin or theme altering this behaviour.Please could you also share a copy of your sites System Status Report so we can see the plugins and full theme name used which can be found by navigating to WooCommerce → Status. Select
Get system reportand thenCopy for support.Once you have this, please share the results in your response here.
I’d also suggest performing a full conflict test to rule out any theme/plugin conflicts. To perform a full conflict test, you can do the following:
- Clear the browser cache
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Check to see if the issue persists.
If the issue is no longer present (i.e. you see the notice that the larger than max quantity cannot be added to cart), it means there was a conflict, and you can reactivate the theme or plugins one by one (gradually) until the cause of the issue is found, more info about running a conflict test is here.
You can clone your site to a staging environment and perform tests without modifying your live site or impacting customers. This is possible to do it using the free WP Staging plugin.
Thank you!Thanks both! I’ll look into these. 🙂
Q: Can the System Status Report be shared publicy here or via PM?
Thanks again!
You can share it here, we are most interested in the active plugins, theme, and templates so free feel to remove any other aspects.
Thanks! Here’s a full copy:
—-
WordPress Environment WordPress address (URL): https://lesparfums.co.uk
Site address (URL): https://lesparfums.co.uk
WC Version: 7.4.0
REST API Version: ✔ 7.4.0
WC Blocks Version: ✔ 9.4.3
Action Scheduler Version: ✔ 3.5.4
Log Directory Writable: ✔
WP Version: 6.1.1
WP Multisite: –
WP Memory Limit: 1 GB
WP Debug Mode: –
WP Cron: ✔
Language: en_US
External object cache: – Server Environment Server Info: Apache
PHP Version: 8.0.28
PHP Post Max Size: 1 GB
PHP Time Limit: 3000
PHP Max Input Vars: 3000
cURL Version: 7.64.0
OpenSSL/1.1.1n SUHOSIN Installed: –
MySQL Version: 10.5.15-MariaDB-1:10.5.15+maria~bullseye-log
Max Upload Size: 1 GB
Default Timezone is UTC: ✔
fsockopen/cURL: ✔
SoapClient: ✔
DOMDocument: ✔
GZip: ✔
Multibyte String: ✔
Remote Post: ✔
Remote Get: ✔ Database WC Database Version: 7.4.0
WC Database Prefix: NQMPqjcp
Total Database Size: 45.41MB
Database Data Size: 36.18MB
Database Index Size: 9.23MB
NQMPqjcpwoocommerce_sessions: Data: 1.50MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpwoocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpwoocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpwoocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
NQMPqjcpwoocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpwoocommerce_order_itemmeta: Data: 0.09MB + Index: 0.09MB + Engine InnoDB
NQMPqjcpwoocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
NQMPqjcpwoocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpwoocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpwoocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpwoocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpwoocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpwoocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpwoocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpactionscheduler_actions: Data: 1.02MB + Index: 0.23MB + Engine InnoDB
NQMPqjcpactionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpactionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpactionscheduler_logs: Data: 0.16MB + Index: 0.14MB + Engine InnoDB
NQMPqjcpblc_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpblc_instances: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpblc_links: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
NQMPqjcpblc_synch: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpcommentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpcomments: Data: 0.06MB + Index: 0.09MB + Engine InnoDB
NQMPqjcpgla_attribute_mapping_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpgla_budget_recommendations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpgla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpgla_shipping_rates: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpgla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpjetpack_waf_blocklog: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcplinks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpmclean_refs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpmclean_scan: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpmipconnector_attribute_group_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpmipconnector_attribute_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpmipconnector_brand_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpmipconnector_brand_plugin_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpmipconnector_category_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpmipconnector_file_log: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
NQMPqjcpmipconnector_image_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpmipconnector_import_process_attribute: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpmipconnector_import_process_attribute_group: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpmipconnector_import_process_brand: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpmipconnector_import_process_brand_plugin: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpmipconnector_import_process_category: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpmipconnector_import_process_product: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpmipconnector_import_process_tag: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpmipconnector_import_process_variation: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpmipconnector_order_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpmipconnector_product_image_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpmipconnector_product_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpmipconnector_product_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpmipconnector_shipping_service: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpmipconnector_tag_map: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
NQMPqjcpmipconnector_variation_map: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpmk_components: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpoptions: Data: 7.02MB + Index: 0.27MB + Engine InnoDB
NQMPqjcppostmeta: Data: 6.38MB + Index: 2.83MB + Engine InnoDB
NQMPqjcpposts: Data: 12.48MB + Index: 0.59MB + Engine InnoDB
NQMPqjcprevslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
NQMPqjcprevslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcprevslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcprevslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcprevslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcprevslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcprevslider_sliders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcprevslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcprevslider_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcprevslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcprevslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcprevslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcprtafar_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcptermmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
NQMPqjcpterms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpterm_relationships: Data: 0.22MB + Index: 0.09MB + Engine InnoDB
NQMPqjcpterm_taxonomy: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpusermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpusers: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpwcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpwcpdf_packing_slip_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpwc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpwc_admin_note_actions: Data: 0.03MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpwc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpwc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpwc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpwc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpwc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
NQMPqjcpwc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
NQMPqjcpwc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpwc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpwc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpwc_product_meta_lookup: Data: 0.09MB + Index: 0.14MB + Engine InnoDB
NQMPqjcpwc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpwc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpwc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpwc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpwdslayer: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpwdsslide: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpwdsslider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
NQMPqjcpyith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpyith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpyoast_indexable: Data: 2.50MB + Index: 0.66MB + Engine InnoDB
NQMPqjcpyoast_indexable_hierarchy: Data: 0.11MB + Index: 0.08MB + Engine InnoDB
NQMPqjcpyoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
NQMPqjcpyoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
NQMPqjcpyoast_seo_links: Data: 2.39MB + Index: 1.64MB + Engine InnoDB Post Type Counts attachment: 1082
custom_css: 2
customize_changeset: 12
filter-field: 5
filter-set: 1
happyform: 3
jp_img_sitemap: 1
jp_sitemap: 1
jp_sitemap_master: 1
nav_menu_item: 112
page: 376
post: 132
product: 235
product_variation: 438
revision: 2800
sa_slider: 1
seedprod: 1
shop_coupon: 8
shop_order: 211
shop_order_refund: 20
tbay_brand: 67
tbay_footer: 2
tbay_testimonial: 24
wds-slider: 1
wp_global_styles: 1
wpcf7_contact_form: 1 Security Secure connection (HTTPS): ✔
Hide errors from visitors: ✔ Active Plugins (45) Template Library and Redux Framework: by Extendify – 4.3.26
FiboSearch - AJAX Search for WooCommerce: by FiboSearch Team – 1.22.3
All-in-One WP Migration: by ServMask – 7.71
Broken Link Checker: by WPMU DEV – 1.11.21
Child Theme Configurator: by Lilaea Media – 2.6.0
Classic Editor: by WordPress Contributors – 1.6.2
Classic Widgets: by WordPress Contributors – 0.3
CMB2: by CMB2 team – 2.10.1
Contact Form 7: by Takayuki Miyoshi – 5.7.4
Enable Media Replace: by ShortPixel – 4.0.3
Facebook for WooCommerce: by Facebook – 3.0.11
Filter Everything — WooCoomerce Product & WordPress Filter: by Andrii Stepasiuk – 1.7.5
Font Awesome: by Font Awesome – 4.3.2
Google Listings and Ads: by WooCommerce – 2.3.10
Site Kit by Google: by Google – 1.94.0
Happyforms (free): by Happyforms – 1.25.0
Head & Footer Code: by Aleksandar Urošević – 1.3.0
Jetpack Protect: by Automattic - Jetpack Security team – 1.2.0
Jetpack: by Automattic – 11.8.4
WPBakery Page Builder: by Michael M - WPBakery.com – 6.10.0
Meta Box Group: by Rilwis – 1.1.5
Ocean Product Sharing: by OceanWP – 2.0.4
Fonts Plugin | Google Fonts Typography: by Fonts Plugin – 3.3.4
Qubely - Advanced Gutenberg Blocks: by Themeum – 1.8.5
Better Find and Replace: by CodeSolz – 1.4.5
Slider Revolution: by ThemePunch – 6.5.14
Simple Sitemap: by David Gwyer – 3.5.9
Tbay Framework Pro: by Team Thembay – 1.5
Themeum Eventum: by Themeum – 3.4
Trustpilot-reviews: by Trustpilot – 2.5.914
CTX Feed: by WebAppick – 5.0.1
Widget Importer & Exporter: by ChurchThemes.com – 1.6
Checkout Field Editor for WooCommerce: by ThemeHigh – 1.8.1
Variation Swatches for WooCommerce: by Emran Ahmed – 2.0.18
WooCommerce Google Analytics Integration: by WooCommerce – 1.6.1
WooCommerce Payments: by Automattic – 5.4.0
WooCommerce PayPal Payments: by WooCommerce – 2.0.2
PDF Invoices & Packing Slips for WooCommerce: by WP Overnight – 3.4.0
WooCommerce: by Automattic – 7.4.0
Yoast SEO: by Team Yoast – 20.1
WP Paint - WordPress Image Editor: by ZetaMatic – 0.5.3
YITH WooCommerce Brands Add-On: by YITH – 2.9.0
YITH WooCommerce Compare: by YITH – 2.23.0
YITH WooCommerce Quick View: by YITH – 1.24.0
YITH WooCommerce Wishlist: by YITH – 3.18.0 Inactive Plugins (2) Coming Soon Page, Maintenance Mode, Landing Pages & WordPress Website Builder by SeedProd: by SeedProd – 6.15.7
WPBakery Page Builder (Modified Version): by Michael M - WPBakery.com – 6.0.5 Must Use Plugins (1) 1&1 Product Subdomain: by 1&1 – 1.1.0 Settings API Enabled: –
Force SSL: –
Currency: GBP (£)
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: –
Order datastore: WC_Order_Data_Store_CPT WC Pages Shop base: #9 - /shop
Cart: #10 - /cart
Checkout: #11 - /checkout
My account: #12 - /my-account
Terms and conditions: #13 - /refund_returns Theme Name: Puca
Version: 2.5
Author URL: https://thembay.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: ✔ Templates Archive Template: Your theme has a woocommerce.php file
you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues. Overrides: puca/woocommerce/cart/cart.php
puca/woocommerce/cart/cross-sells.php
puca/woocommerce/cart/mini-cart.php
puca/woocommerce/checkout/form-billing.php
puca/woocommerce/checkout/form-checkout.php
puca/woocommerce/checkout/form-coupon.php
puca/woocommerce/checkout/form-login.php
puca/woocommerce/checkout/form-shipping.php
puca/woocommerce/checkout/payment.php
puca/woocommerce/checkout/review-order.php
puca/woocommerce/content-product-cat.php
puca/woocommerce/content-product.php
puca/woocommerce/global/breadcrumb.php
puca/woocommerce/global/form-login.php
puca/woocommerce/global/quantity-input.php
puca/woocommerce/loop/add-to-cart.php
puca/woocommerce/loop/loop-end.php
puca/woocommerce/loop/loop-start.php
puca/woocommerce/loop/orderby.php
puca/woocommerce/loop/pagination.php
puca/woocommerce/loop/rating.php
puca/woocommerce/myaccount/form-add-payment-method.php
puca/woocommerce/myaccount/form-edit-account.php
puca/woocommerce/myaccount/form-login.php
puca/woocommerce/myaccount/form-lost-password.php
puca/woocommerce/myaccount/my-address.php
puca/woocommerce/single-product/product-image.php
puca/woocommerce/single-product/product-thumbnails.php
puca/woocommerce/single-product/rating.php
puca/woocommerce/single-product/related.php
puca/woocommerce/single-product/stock.php
puca/woocommerce/single-product/tabs/additional-information.php
puca/woocommerce/single-product/tabs/description.php
puca/woocommerce/single-product/tabs/tabs.php
puca/woocommerce/single-product/up-sells.php
puca/woocommerce/single-product-reviews.php WooCommerce PayPal Payments Onboarded: ✔
Shop country code: GB
WooCommerce currency supported: ✔
Advanced Card Processing available in country: ✔
Pay Later messaging available in country: ✔
Webhook status: ✔
Vault enabled: ✔
Logging enabled: ✔
Reference Transactions: –
Used PayPal Checkout plugin: –
Tracking enabled: – Admin Enabled Features: activity-panels
analytics
coupons
customer-effort-score-tracks
import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
multichannel-marketing
mobile-app-banner
navigation
new-product-management-experience
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
product-variation-management
settings Daily Cron: ✔ Next scheduled: 2023-02-21 19:37:08 +00:00
Options: ✔
Notes: 57
Onboarding: completed WooCommerce Payments Version: 5.4.0
Connected to WPCOM: Yes
Blog ID: 201715039
Account ID: - Action Scheduler Complete: 125,300
Oldest: 2023-01-21 16:01:31 +0000
Newest: 2023-02-21 16:00:45 +0000 Failed: 17
Oldest: 2022-10-30 14:38:05 +0000
Newest: 2023-02-17 19:28:11 +0000 Pending: 4
Oldest: 2023-02-21 16:01:32 +0000
Newest: 2023-02-22 03:00:00 +0000 Status report information Generated at: 2023-02-21 16:01:44 +00:00
`Hi,
Thanks for sending the system status report.
The issue on GitHub is closed, I am positive it will be considered soon in the next release of the plugin.
To clarify, do you have the setting Enable stock management active under WooCommerce > settings > products > inventory?
On the edit product section, is the
allow backordersenabled or not?
On my testing site, I disabled the backorders, not permitting the cart to add more items than what there are in stock. You can check to see if this works for you:

-
This reply was modified 3 years, 3 months ago by
Igor H.
Thanks Igor!
regards the order settings, they had not been changed since I started the site about a year ago.
As above , to keep the site live, I changed all items to “1 only” per order.
!! more worrying, I noticed a error script thing that pops up on an item yesterday. This morning ALL items came up with errors so I’ve turned the site to maintenance mode. !!
Any idea what is causing this. IIRC could have been after the latest WC update last week?
is there any time scale for the new update? Kinda upset, the shop has been down or half functioning for too long 😑
Thanks again!
sorry to be a bother, I’ve followed the “closed” fix link, there seems to be a fix. I’m a little confused. Is it a piece of code that needs replacing? If so it’d be amazing if you can let me know which piece of code to enter/amend in which file!?
thanks you hopefully can be online again very soon!

Hi!
This is what is now coming up – unfortunately I’ve had to take the whole site into maintenance mode.
Any help is much appreciated
Hi folks!Little update.
It looks like the qty min/max is working (i.e only lets user select no more than qty in stock.i.e works normally) However still getting this ugly message :
Warning: Undefined variable $readonly in /homepages/5/d680403072/htdocs/clickandbuilds/LesParfumsDeIftiFormatVoyage/wp-content/themes/puca/woocommerce/global/quantity-input.php on line 21
Warning: Undefined variable $type in /homepages/5/d680403072/htdocs/clickandbuilds/LesParfumsDeIftiFormatVoyage/wp-content/themes/puca/woocommerce/global/quantity-input.php on line 21
Any guidance and suggestions would be welcome – kinds pants I’ve spent most of the week trying to figure and fix – which meant little or no income until we’re fully functioning?
I’d appreciate any feedback – lol even if its to say ” sorry pal wait for next update” 😉

Ok final though on this – the site is on IONOS’s one-click-build “thingy” – could that be causing something?
Hi @itsmefti
We’re glad that you’ve found a workaround to your issue here.
Regarding the warning messages that appear on your single product page, this is most likely due to version of PHP you are using.
You can hide or disable these warning messages on your site by following the guide on this article: How to Turn Off PHP Errors in WordPress.
Hope this helps!
Thanks Xue28 !
That’s really helpful!
Hi @itsmefti ,
We are happy to help and glad to hear that the article was helpful!
Since this has been resolved, feel free to create a new topic should you need any further help.
Cheers!
The topic ‘QTY function gone awry!’ is closed to new replies.