• Resolved ventilmaskedk

    (@ventilmaskedk)


    Hello.

    I have an issue, that the outofstock threshold is not working.

    F.ex. Threshold set to 5. Products with only 5 left can still be purchased and is not set to out of stock.

    Example 2: Threshold is set to 5, prodct has 10 products in stock. Customer should only be able to order 5 pieces, but they are able to order all 10.

    I have activate “backorder not allowed”.

    Can you help me here?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ventilmaskedk

    (@ventilmaskedk)

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://elektronikcenter.dk
    Site address (URL): https://elektronikcenter.dk
    WC Version: 7.1.0
    REST API Version: ? 7.1.0
    WC Blocks Version: ? 8.7.5
    Action Scheduler Version: ? 3.4.0
    Log Directory Writable: ?
    WP Version: 6.1
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: da_DK
    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.66.0
    OpenSSL/1.1.1q-fips
    
    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: 7.1.0
    WC Database Prefix: cpm_
    Total databasest?rrelse: 320.05MB
    Database datast?rrelse: 194.65MB
    Database indexst?rrelse: 125.40MB
    cpm_woocommerce_sessions: Data: 0.34MB + Index: 0.02MB + Engine InnoDB
    cpm_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    cpm_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    cpm_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_actionscheduler_actions: Data: 21.56MB + Index: 18.58MB + Engine InnoDB
    cpm_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_actionscheduler_logs: Data: 14.55MB + Index: 12.03MB + Engine InnoDB
    cpm_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    cpm_hfcm_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_options: Data: 6.14MB + Index: 0.14MB + Engine InnoDB
    cpm_postmeta: Data: 45.58MB + Index: 52.19MB + Engine InnoDB
    cpm_posts: Data: 26.56MB + Index: 8.06MB + Engine InnoDB
    cpm_sgs_log_events: Data: 54.58MB + Index: 0.00MB + Engine InnoDB
    cpm_sgs_log_visitors: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    cpm_sib_model_contact: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_sib_model_country: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_sib_model_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_sib_model_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_snippets: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_social_users: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_termmeta: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
    cpm_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    cpm_term_relationships: Data: 2.52MB + Index: 1.50MB + Engine InnoDB
    cpm_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    cpm_trackship_shipment: Data: 0.02MB + Index: 0.13MB + Engine InnoDB
    cpm_trackship_shipment_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_trackship_shipping_provider: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    cpm_usermeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
    cpm_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    cpm_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    cpm_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_wc_category_lookup: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    cpm_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    cpm_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    cpm_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_wc_product_meta_lookup: Data: 7.52MB + Index: 19.09MB + Engine InnoDB
    cpm_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_wml_entries: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    cpm_woo_shippment_provider: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    cpm_wpgmza: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_wpgmza_circles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_wpgmza_maps: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_wpgmza_polygon: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_wpgmza_polylines: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_wpgmza_rectangles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cpm_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_yoast_indexable: Data: 10.52MB + Index: 11.09MB + Engine InnoDB
    cpm_yoast_indexable_hierarchy: Data: 1.52MB + Index: 1.11MB + Engine InnoDB
    cpm_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cpm_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    cpm_yoast_seo_links: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    cpm_zorem_email_sms_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
    
    ### Post Type Counts ###
    
    apifw_inv_templates: 1
    attachment: 83
    blocks: 27
    featured_item: 8
    nav_menu_item: 11
    page: 14
    post: 10
    product: 26581
    shop_order: 8
    shop_order_refund: 1
    ux_template: 3
    wp_global_styles: 1
    wpcf7_contact_form: 6
    yay-currency-manage: 2
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    Hide errors from visitors: ?
    
    ### Active Plugins (24) ###
    
    Checkout Field Editor and Manager for WooCommerce: af Acowebs – 2.2.4
    Code Snippets: af Code Snippets Pro – 3.2.1
    Contact Form 7: af Takayuki Miyoshi – 5.6.4
    Custom Shipping Methods for WooCommerce: af Imaginate Solutions – 1.8.0
    Header Footer Code Manager: af 99robots – 1.1.29
    Live Sales Notifications for WooCommerce: af PI Websolution – 2.2.1
    Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue: af Sendinblue – 3.1.53
    PDF Invoices and Packing Slips For WooCommerce: af Acowebs – 1.3.0
    SiteGround Optimizer: af SiteGround – 7.2.5
    SiteGround Security: af SiteGround – 1.3.6
    TrackShip for WooCommerce: af TrackShip – 1.4.5
    Trustpilot-reviews: af Trustpilot – 2.5.914
    CTX Feed Pro: af WebAppick Author – 5.4.4
    Avanceret forsendelsessporing til WooCommerce: af zorem – 3.4.7
    WooCommerce PensoPay: af PensoPay – 6.3.0
    WooCommerce Price Based on Country Pro Add-on: af Oscar Gare – 2.22.0
    WooCommerce Price Based on Country (Basic): af Oscar Gare – 2.2.7
    Sendinblue - WooCommerce Email Marketing: af Sendinblue – 3.0.1
    WooCommerce: af Automattic – 7.1.0
    Woosa - BigBuy for WooCommerce: af Woosa – 1.2.1
    Yoast SEO: af Team Yoast – 19.10
    WP Mail Log: af WPVibes – 1.0.2
    YITH WooCommerce Wishlist: af YITH – 3.14.0
    Zweet Category Image 2: af  –
    
    ### Inactive Plugins (3) ###
    
    Action Scheduler High Volume: af Prospress Inc. – 1.1.0
    Nextend Social Login: af Nextendweb – 3.1.7
    WOOCS - WooCommerce Currency Switcher: af realmag777 – 1.3.9.2
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: ?
    Currency: EUR (€)
    Currency Position: right_space
    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: –
    
    ### WC Pages ###
    
    Shop basisside: #8 - /shop/
    Kurv: #9 - /cart/
    Checkout: #10 - /checkout/
    Min konto: #27 - /my-account/
    Vilk?r og betingelser: #48686 - /handelsbetingelser/
    
    ### Theme ###
    
    Name: Flatsome Child
    Version: 3.0
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Flatsome
    Parent Theme Version: 3.16.2
    Parent Theme Author URL: https://uxthemes.com
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/terms.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product-cat.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/rating.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php
    flatsome/woocommerce/content-product_cat.php
    
    ### Geolocation debug info ###
    
    Default customer location: base
    MaxMind GeoIP database: ? The MaxMind GeoIP Database does not exist - Geolocation will not function.
    MaxMind GeoIP license: ? Geolocation has not been configured. You must enter a valid license key on the MaxMind integration settings page.
    MM_COUNTRY_CODE: ?
    GEOIP_COUNTRY_CODE: ?
    HTTP_CF_IPCOUNTRY: ?
    HTTP_X_COUNTRY_CODE: ?
    HTTP_X_REAL_IP: 87.59.230.184
    HTTP_X_FORWARDED_FOR: ?
    REMOTE_ADDR: 87.59.230.184
    Real external IP: 87.59.230.184
    WCPBC_USE_REMOTE_ADDR: –
    Geolocation Test: ?The MaxMind GeoIP database is required.
    
    ### PBC Settings ###
    
    Version: 2.2.7
    Base location: DK
    Base currency: EUR
    Price Based On: billing
    Shipping: ?
    Test mode: –
    Test country: –
    Load products price in background: –
    Currency format: [price]?[symbol]
    Exchange rate API: floatrates
    Prices entered with tax: –
    Calculate tax based on: base
    Display prices in the shop: incl
    
    ### Zone Pricing DK ###
    
    zone_id: dk
    name: DK
    countries: DK | FO | NO | SE | AF | AL | DZ | AS | AD | AO | AI | AQ | AG | AR | AM | AW | AU | AZ | BS | BH | BD | BB | PW | BE | BZ | BJ | BM | BT | BO | BQ | BA | BW | BV | BR | IO | BN | BG | BF | BI | KH | CM | CA | CV | KY | CF | TD | CL | CC | CO | KM | CG | CD | CK | CR | CU | CW | CY | DO | PS | DJ | DM | EC | EG | SV | CI | ER | EE | SZ | ET | FK | FJ | PH | FI | AE | FR | GF | PF | TF | GA | GM | GE | GH | GI | GD | GR | GL | GP | GU | GT | GG | GN | GW | GY | HT | HM | NL | HN | HK | BY | IN | ID | IQ | IR | IE | IS | IM | IL | IT | JM | JP | JE | VG | VI | JO | CX | KZ | KE | CN | KG | KI | HR | KW | LA | LS | LV | LB | LR | LY | LI | LT | LU | MO | MG | MW | MY | MV | ML | MT | MA | MH | MQ | MR | MU | YT | MX | FM | MD | MC | MN | ME | MS | MZ | MM | NA | NR | NP | NZ | NI | NE | NG | NU | KP | NF | MP | NC | OM | PK | PA | PG | PY | PE | PN | PL | PT | PR | QA | MK | RE | RO | RU | RW | ST | SB | WS | SM | BL | SH | KN | LC | MF | SX | PM | VC | SA | CH | SN | RS | SC | SL | SG | SK | SI | SO | GS | ES | LK | GB | SD | SR | SJ | ZA | KR | SS | SY | TJ | TW | TZ | TH | TL | CZ | TG | TK | TO | TT | TN | TM | TC | TV | TR | DE | UG | UA | HU | UY | US | UM | UZ | VU | VA | VE | EH | VN | WF | YE | ZM | ZW | GQ | AT | AX
    currency: DKK
    exchange_rate: 8.2
    auto_exchange_rate: no
    exchange_rate_fee: 0
    round_nearest: 0.5
    currency_format: [price] [code]
    price_thousand_sep: .
    price_decimal_sep: ,
    price_num_decimals: 0
    disable_tax_adjustment: no
    real_exchange_rate: 7.459743
    round_after_taxes: yes
    trim_zeros: yes
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    coupons
    customer-effort-score-tracks
    experimental-products-task
    experimental-import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    multichannel-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
    settings
    
    Daily Cron: ? Next scheduled: 2022-11-11 19:56:35 +00:00
    Options: ?
    Notes: 50
    Onboarding: completed
    
    ### Action Scheduler ###
    
    Gennemf?rt: 68.413
    Oldest: 2022-10-11 19:46:56 +0000
    Newest: 2022-11-11 13:45:26 +0000
    
    Mislykket: 3
    Oldest: 2022-02-09 10:41:24 +0000
    Newest: 2022-02-09 10:41:24 +0000
    
    Igangv?rende: 2
    Oldest: 2022-11-11 13:46:26 +0000
    Newest: 2022-11-11 20:03:39 +0000
    
    ### Status report information ###
    
    Generated at: 2022-11-11 13:46:45 +00:00
    

    Hi @ventilmaskedk

    Thanks for reaching out!

    I understand that the out-of-stock threshold is not working on your site.

    I tested this on my personal site, however, I was not able to reproduce the issue. My out-of-stock threshold is set to 2 and I changed product Tshirt 2 - 810 quantity to 2 and backorders are not allowed as well.

    Image Link: https://snipboard.io/dObP6H.jpg

    Image Link: https://snipboard.io/uLWgb1.jpg

    Then, this is what I’m seeing on my shop’s page: the product can no longer be added to cart.

    Image Link: https://snipboard.io/TFblB5.jpg

    Image Link: https://snipboard.io/DwUNhv.jpg

    Can you please try to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if this works?

    If so, please run a full conflict test to see if your theme or any third-party plugins present on your site are causing the conflict here:

    https://woocommerce.com/document/how-to-test-for-conflicts/

    If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.

    Let us know how it goes!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Out-of-stock threshold not working’ is closed to new replies.