Support » Plugin: WooCommerce » Exclude Variations if Variation A is clicked

  • Hello

    i want to exclude some variations.

    if color camoflauge is selected,
    it should hide XL and XXL from the variation Sizes.

    how is this possible ?

    Greetings

    
    ### WordPress Environment ###
    
    WordPress address (URL): xxx
    Site address (URL): xxx
    WC Version: 3.6.5
    Log Directory Writable: ✔
    WP Version: 5.4.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: de_CH
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.3.17
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.29.0
    NSS/3.44
    
    SUHOSIN Installed: –
    MySQL Version: 5.5.64-MariaDB
    Max Upload Size: 2 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.6.5
    WC Database Prefix: ps_
    MaxMind GeoIP Database: ✔
    Datenbank-Gesamtgrösse: 49.97MB
    Datenbank-Datengrösse: 30.86MB
    Datenbank-Indexgrösse: 19.11MB
    ps_woocommerce_sessions: Daten: 0.05MB + Index: 0.02MB
    ps_woocommerce_api_keys: Daten: 0.02MB + Index: 0.03MB
    ps_woocommerce_attribute_taxonomies: Daten: 0.02MB + Index: 0.02MB
    ps_woocommerce_downloadable_product_permissions: Daten: 0.02MB + Index: 0.06MB
    ps_woocommerce_order_items: Daten: 0.02MB + Index: 0.02MB
    ps_woocommerce_order_itemmeta: Daten: 0.08MB + Index: 0.09MB
    ps_woocommerce_tax_rates: Daten: 0.02MB + Index: 0.06MB
    ps_woocommerce_tax_rate_locations: Daten: 0.02MB + Index: 0.03MB
    ps_woocommerce_shipping_zones: Daten: 0.02MB + Index: 0.00MB
    ps_woocommerce_shipping_zone_locations: Daten: 0.02MB + Index: 0.03MB
    ps_woocommerce_shipping_zone_methods: Daten: 0.02MB + Index: 0.00MB
    ps_woocommerce_payment_tokens: Daten: 0.02MB + Index: 0.02MB
    ps_woocommerce_payment_tokenmeta: Daten: 0.02MB + Index: 0.03MB
    ps_woocommerce_log: Daten: 0.02MB + Index: 0.02MB
    ps_actionscheduler_actions: Daten: 0.14MB + Index: 0.11MB
    ps_actionscheduler_claims: Daten: 0.02MB + Index: 0.02MB
    ps_actionscheduler_groups: Daten: 0.02MB + Index: 0.02MB
    ps_actionscheduler_logs: Daten: 0.08MB + Index: 0.03MB
    ps_ac_abandoned_cart_history_lite: Daten: 0.14MB + Index: 0.00MB
    ps_ac_email_templates_lite: Daten: 0.03MB + Index: 0.00MB
    ps_ac_guest_abandoned_cart_history_lite: Daten: 0.02MB + Index: 0.00MB
    ps_ac_sent_history_lite: Daten: 0.02MB + Index: 0.00MB
    ps_aws_cache: Daten: 0.02MB + Index: 0.00MB
    ps_aws_index: Daten: 2.31MB + Index: 0.83MB
    ps_commentmeta: Daten: 0.02MB + Index: 0.03MB
    ps_comments: Daten: 0.02MB + Index: 0.09MB
    ps_links: Daten: 0.02MB + Index: 0.02MB
    ps_nextend2_image_storage: Daten: 0.02MB + Index: 0.02MB
    ps_nextend2_section_storage: Daten: 0.02MB + Index: 0.06MB
    ps_nextend2_smartslider3_generators: Daten: 0.02MB + Index: 0.00MB
    ps_nextend2_smartslider3_sliders: Daten: 0.02MB + Index: 0.03MB
    ps_nextend2_smartslider3_sliders_xref: Daten: 0.02MB + Index: 0.02MB
    ps_nextend2_smartslider3_slides: Daten: 0.02MB + Index: 0.11MB
    ps_nm_personalized: Daten: 0.02MB + Index: 0.00MB
    ps_options: Daten: 2.05MB + Index: 0.31MB
    ps_postmeta: Daten: 18.55MB + Index: 12.98MB
    ps_posts: Daten: 5.50MB + Index: 2.39MB
    ps_termmeta: Daten: 0.06MB + Index: 0.06MB
    ps_terms: Daten: 0.05MB + Index: 0.03MB
    ps_term_relationships: Daten: 0.42MB + Index: 0.30MB
    ps_term_taxonomy: Daten: 0.05MB + Index: 0.03MB
    ps_usermeta: Daten: 0.13MB + Index: 0.09MB
    ps_users: Daten: 0.02MB + Index: 0.05MB
    ps_wc_admin_notes: Daten: 0.02MB + Index: 0.00MB
    ps_wc_admin_note_actions: Daten: 0.02MB + Index: 0.02MB
    ps_wc_customer_lookup: Daten: 0.02MB + Index: 0.03MB
    ps_wc_download_log: Daten: 0.02MB + Index: 0.03MB
    ps_wc_order_coupon_lookup: Daten: 0.02MB + Index: 0.03MB
    ps_wc_order_product_lookup: Daten: 0.02MB + Index: 0.06MB
    ps_wc_order_stats: Daten: 0.02MB + Index: 0.05MB
    ps_wc_order_tax_lookup: Daten: 0.02MB + Index: 0.03MB
    ps_wc_product_meta_lookup: Daten: 0.42MB + Index: 0.73MB
    ps_wc_webhooks: Daten: 0.02MB + Index: 0.02MB
    ps_wpforms_tasks_meta: Daten: 0.02MB + Index: 0.00MB
    ps_yith_wcwl: Daten: 0.02MB + Index: 0.02MB
    ps_yith_wcwl_lists: Daten: 0.02MB + Index: 0.03MB
    
    ### Post Type Counts ###
    
    attachment: 3485
    bnfw_notification: 1
    custom_css: 2
    customize_changeset: 18
    ml-slide: 1
    ml-slider: 1
    nav_menu_item: 12
    page: 13
    post: 1
    product: 222
    product_variation: 4278
    revision: 168
    shop_coupon: 1
    shop_order: 34
    wpforms: 1
    wpmm_theme: 4
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (23) ###
    
    404page - your smart custom 404 error page: von Peter Raschendorfer – 11.2.2
    Advanced Woo Search: von ILLID – 2.02
    Autoptimize: von Frank Goossens (futtta) – 2.7.2
    Better Notifications for WP: von Made with Fuel – 1.8.2
    Custom Order Numbers for WooCommerce: von Tyche Softwares – 1.2.10
    Customizer Export/Import: von The Beaver Builder Team – 0.9.1
    Flexible Checkout Fields: von WP Desk – 2.4.11
    Kadence WooCommerce Email Designer: von Kadence WP – 1.4.1
    Loco Translate: von Tim Whitlock – 2.4.0
    N-Media WooCommerce PPOM PRO: von Najeeb Ahmad – 16.0 – Nicht getestest mit der aktiven WooCommerce-Version
    Smart Slider 3: von Nextend – 3.4.1.7
    Social Icons Widget & Block by WPZOOM: von WPZOOM – 4.0.2
    WP woocommerce featured product by category: von WP OnlineSupport – 1.1 – Nicht getestest mit der aktiven WooCommerce-Version
    Widget Context: von Kaspars Dambis – 1.3.2
    WooCommerce Blöcke: von Automattic – 2.6.0
    Abandoned Cart Lite for WooCommerce: von Tyche Softwares – 5.7.2
    PPOM for WooCommerce by N-MEDIA: von Najeeb Ahmad – 20.1
    WooCommerce: von Automattic – 3.6.5 – 4.1.1 ist verfügbar
    WP Edit: von Josh Lobe – 4.0.4
    WPForms Lite: von WPForms – 1.6.0.2
    WPFront Scroll Top: von Syam Mohan – 2.0.2
    Custom Product Tabs for WooCommerce: von YIKES
    Inc. – 1.7.1
    
    YITH WooCommerce Wishlist: von YITH – 3.0.10
    
    ### Inactive Plugins (4) ###
    
    Mobile Menu: von Rui Guerreiro – 2.8
    Sitewide Notice WP: von Yoohoo Plugins – 2.2.1
    Variation Swatches for WooCommerce: von Emran Ahmed – 1.0.82
    WooCommerce Admin: von WooCommerce – 1.1.3
    
    ### Dropin Plugins (1) ###
    
    maintenance.php: maintenance.php
    
    ### Settings ###
    
    API Enabled: –
    Force SSL: –
    Currency: CHF (CHF)
    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: –
    
    ### WC Pages ###
    
    Shop-Basis: #5 - /shop/
    Warenkorb: #6 - /warenkorb/
    Kasse: #7 - /kasse/
    Mein Konto: #8 - /mein-konto/
    Allgemeine Geschäftsbedingungen: ❌ Seite nicht festgelegt
    
    ### Theme ###
    
    Name: Storefront Child Theme
    Version: 1.0
    Author URL: 
    Child Theme: ✔
    Parent Theme Name: Storefront
    Parent Theme Version: 2.5.6
    Parent Theme Author URL: https://woocommerce.com/
    WooCommerce Support: ✔
    
    ### Templates ###
    
    Overrides: –
    
    ### Action Scheduler ###
    
    Complete: 187
    Oldest: 2020-05-15 09:52:43 +0000
    Newest: 2020-05-29 14:50:19 +0000
    
    Pending: 4
    Oldest: 2020-05-29 15:05:18 +0000
    Newest: 2020-05-30 10:34:23 +0000
    
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • What happens depends on the variations threshold. This is usually 30.

    If you have less variations than the threshold, only available attributes will be shown. Unavailable won’t be greyed out, they won’t appear.

    If you have more variations than the threshold, all options will be available for selection, but if the user selects an unavailable option, they will be a short delay then the message: “That option is not available”. This could be frustrating for the user.

    You can increase the variations threshold using this snippet in functions.php for your child theme:
    https://gist.github.com/mohsinoffline/f06c66259e667d6b16bb

    As you make the threshold bigger, the page size gets bigger so page load time will increase. You’ll need to make a judgement.

    Thread Starter cr0co

    (@cr0co)

    hey,
    thats not what i needed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Exclude Variations if Variation A is clicked’ is closed to new replies.