• Resolved PareStrano.it

    (@funesto)


    Hi everyone,

    I’m setting up an e-commerce site for my physical shoe store, and I’m having a bit of a headache with variable products and out-of-stock combinations.

    Here’s my situation:
    I have a pair of sport shoes that come in 3 colors – Lilla, Pink, and Beige – and they’re available in sizes from 36 to 41. Over time, in the physical shop, I’ve sold a lot of them, so now I only have certain sizes available in certain colors.

    So I created a variable product in WooCommerce, added two attributes (Color and Size), and generated all the variations. Then I enabled “Manage Stock” and set the actual quantity for each variation (including 0 when it’s sold out). I also enabled the setting in WooCommerce to “Hide out-of-stock items”.

    Now the problem is: even if a specific combination (like 38 in Lilla) is out of stock, or even deleted from the variations list, it still shows up in the front-end as selectable. Sometimes it’s greyed out, sometimes not, but it still confuses the customer — they think it’s available or try to add it to the cart.

    For example:
    If I have size 38 only in Beige, and not in Lilla or Pink anymore, the 38 still appears when I select Lilla. That makes no sense, right?

    I tried everything I could think of:

    • Set quantity to 0
    • Deleted the variation
    • Cleared cache
    • Tried changing theme and disabling plugins
    • Double-checked the WooCommerce settings

    Still no luck.

    At this point I’m seriously wondering: maybe it’s better if I don’t use variations at all?
    Would it make more sense to just create three separate products, one for each color, and then use only sizes as variations inside each?

    Would love to hear your thoughts. How do you manage products like this when not all combinations exist anymore?

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @funesto,

    Thanks so much for sharing all those details — it really helps paint a clear picture of what you’re seeing.

    With the “Hide out of stock items from the catalog” setting enabled, WooCommerce is designed to completely remove out-of-stock variations from the dropdown, not just grey them out. So if a combination like Lilla – 38 is out of stock (or deleted), it shouldn’t appear at all on the product page.

    Since that’s not happening on your site, it suggests something unexpected is interfering — possibly caching, a theme conflict, or a custom product template.

    To help us troubleshoot this further, could you please:

    • Share a link to the affected product page
    • Let us know if you’re using any caching plugins or custom product templates
    • Try switching temporarily to a default theme like Storefront and see if the issue still happens
    • And share a copy of your System Status Report from WooCommerce → Status → Get system report (you can paste it into https://gist.github.com and link it here)

    Once we have that info, we’ll be glad to take a closer look!

    Thread Starter PareStrano.it

    (@funesto)

    Hey!
    Thanks for replying me! I put my website LIVE so you can have access:

    https://papilloncalzature.it/product/sneakers-donna-agata-lumberjack/

    – No cache plug-in at the moment (planning to enable LITESPEED)

    • System Status Report
    ### WordPress Environment ###
    
    WordPress address (URL): [Redacted]
    Site address (URL): [Redacted]
    WC Version: 9.9.5
    Legacy REST API Package Version: Il plugin API REST legacy non è installato in questo sito.
    Action Scheduler Version: ✔ 3.9.2
    Log Directory Writable: ✔
    WP Version: 6.8.1
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: it_IT
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    Server Architecture: Linux 4.18.0-553.40.1.lve.el8.x86_64 x86_64
    PHP Version: 8.3.22
    PHP Post Max Size: 512 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 10000
    cURL Version: 7.61.1
    OpenSSL/1.1.1k
    
    SUHOSIN Installed: –
    MySQL Version: 10.11.13-MariaDB-cll-lve
    Max Upload Size: 512 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    [REDACTED]
    
    ### Post Type Counts ###
    
    attachment: 326
    base_element: 16
    custom_css: 1
    customize_changeset: 37
    elementor_library: 2
    mc4wp-form: 1
    nav_menu_item: 39
    page: 24
    post: 20
    product: 8
    product_variation: 58
    revision: 148
    shop_coupon: 1
    wp_global_styles: 3
    wp_navigation: 1
    wpcf7_contact_form: 3
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (22) ###
    
    Bulk Edit Products, Prices & Attributes for Woocommerce: di ELEXtensions – 2.2.0
    Complianz | GDPR/CCPA Cookie Consent: di Really Simple Plugins – 7.4.1
    Contact Form 7: di Takayuki Miyoshi – 6.1
    Elementor: di Elementor.com – 3.30.0
    WooCommerce Force Default Variant: di HappyKite – 1.8.1
    Loginizer Pro: di Softaculous – 2.0.1
    Loginizer: di Softaculous – 2.0.1
    MC4WP: Mailchimp for WordPress: di ibericode – 4.10.5
    We’re Open!: di Noah Hearle
    Design Extreme – 2.3
    
    Image optimization service by Optimole: di Optimole – 4.0.3
    Otter – Page Builder Blocks & Extensions for Gutenberg: di ThemeIsle – 3.1.0
    Regenerate Thumbnails: di Alex Mills (Viper007Bond) – 3.1.6
    Slider Revolution: di ThemePunch – 6.7.34
    TemplateMela Core - Plugin per la TemplateMela Tema: di TemplateMela – 3.4.7
    TemplateMela Plugin - Fashiup: di TemplateMela – 1.0.0
    Under Construction: di WebFactory Ltd – 4.02
    WPC Smart Compare for WooCommerce: di WPClever – 6.4.7
    WPC Smart Quick View for WooCommerce: di WPClever – 4.2.0
    WPC Smart Wishlist for WooCommerce: di WPClever – 5.0.1
    WooCommerce: di Automattic – 9.9.5
    WP Media folder: di Joomunited – 6.0.7
    WPS Hide Login: di WPServeur
    NicolasKulka
    wpformation – 1.9.17.2
    
    
    ### Inactive Plugins (2) ###
    
    LiteSpeed Cache: di LiteSpeed Technologies – 7.2
    WPC Variations Radio Buttons for WooCommerce: di WPClever – 3.6.2
    
    ### Settings ###
    
    Legacy 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)
    
    Connected to WooCommerce.com: –
    Enforce Approved Product Download Directories: ✔
    HPOS feature enabled: ✔
    Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
    HPOS data sync enabled: –
    Enabled Features: analytics
    marketplace
    order_attribution
    site_visibility_badge
    remote_logging
    email_improvements
    blueprint
    custom_order_tables
    
    
    ### Logging ###
    
    Enabled: ✔
    Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
    Retention period: 30 giorni
    Level threshold: –
    Log directory size: 30 KB
    
    ### WC Pages ###
    
    Shop base: #49 - /shop/
    Carrello: #50 - /cart/ -  Contiene lo shortcode woocommerce_cart
    Pagamento: #51 - /checkout/ -  Contiene lo shortcode woocommerce_checkout
    Il mio account: #52 - /my-account/ -  Contiene lo shortcode [woocommerce_my_account]
    Termini e condizioni: ❌ La pagina non è impostata
    
    ### Theme ###
    
    Name: avanam-fashiup
    Version: 1.0.0
    Author URL: #
    Child Theme: ✔
    Parent Theme Name: Avanam
    Parent Theme Version: 1.5.7
    Parent Theme Author URL: https://avanam.org/
    Theme type: Tema classico
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: /home/papillo1/public_html/wp-content/plugins/templatemela-core/includes/woocommerce/lib/gallery/product-image.php
    /home/papillo1/public_html/wp-content/plugins/templatemela-core/includes/woocommerce/lib/reviews/bt-rating.php
    /home/papillo1/public_html/wp-content/plugins/templatemela-core/includes/templates/stock.php
    
    
    ### Admin ###
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customize-store
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    onboarding
    onboarding-tasks
    pattern-toolkit-full-composability
    product-custom-fields
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    printful
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    launch-your-store
    add-to-cart-with-options-stepper-layout
    disable-core-profiler-fallback
    
    Disabled Features: product-data-views
    experimental-blocks
    coming-soon-newsletter-template
    minified-js
    point-of-sale
    product-pre-publish-modal
    settings
    async-product-editor-category-field
    product-editor-template-system
    use-wp-horizon
    blockified-add-to-cart
    
    Daily Cron: ✔ Next scheduled: 2025-07-07 08:48:46 +00:00
    Options: ✔
    Notes: 66
    Onboarding: -
    
    ### Action Scheduler ###
    
    Operazione annullata: 1
    Oldest: 2025-07-04 19:54:52 +0000
    Newest: 2025-07-04 19:54:52 +0000
    
    Completato: 676
    Oldest: 2025-07-01 08:54:05 +0000
    Newest: 2025-07-06 14:22:18 +0000
    
    Operazione non riuscita: 4
    Oldest: 2025-07-01 09:02:54 +0000
    Newest: 2025-07-05 16:59:40 +0000
    
    In attesa: 2
    Oldest: 2025-07-07 02:22:18 +0000
    Newest: 2025-07-07 09:15:19 +0000
    
    
    ### Status report information ###
    
    Generated at: 2025-07-06 14:23:08 +00:00

    Variants not available are grayed-out but still selectable. I thought it won’t show at all!
    Thanks for your help!

    Hi @funesto,

    Thank you for the update! I inspected your site and noticed that the variation selector uses custom class names like .bt-variation-label and .bt-no-select2. These aren’t coming from WooCommerce itself, but rather from your theme — likely one by TemplateMela (such as Fashiup). That theme seems to override the default WooCommerce variation display, which is likely why the expected behavior isn’t working.

    To confirm, you can try switching to a default theme like Storefront temporarily and recheck the product page. If out-of-stock variations disappear as expected there, then the issue is definitely tied to the theme’s custom variation UI.

    Let us know what happens.

    Thread Starter PareStrano.it

    (@funesto)

    Thank you so much for your help! I will open a ticket to the guys of the template … AGAIN! I am sure they wish I never bought from them! 🙂

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there!

    You’re very welcome — and I totally understand the frustration! 😅 It’s always tough when a theme overrides core functionality and causes unexpected behavior. Hopefully, their support team will be able to address this quickly.

    Let us know what they suggest.

    Plugin Support thelmachido a11n

    (@thelmachido)

    Hi @funesto 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, please feel free to start a new thread.

    We’d appreciate it if you could take a few moments to review the WooCommerce plugin using the link below:

    https://wordpress.org/support/plugin/woocommerce/reviews/

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Variation still clickable even if out of stock’ is closed to new replies.