• Resolved marieclairedancestudio

    (@marieclairedancestudio)


    Hi everyone,

    I am searching all over the place and no solution to my problem anywhere.
    The thing is simple.. I am building an eshop and I have exactly 60 variations for each product i try manually to add. Automatically adds only 50 and i am not ok with that so i add each variation manually.
    When i reach 30 everything is ok. When i add variation 31 everything changes. It stops filtering and its like i have never set variations for anything.

    Example.. The eshop is about perfumes (its under construction)

    I have 3 attributes: bottle, ml and essence.Which are divided in subcategories.

    I have a pen bottle that comes out in only 10 ml. I have set the variation.

    When i hit the 31 variation the pen bottle suddenly comes out in 10ml, 30ml, 50ml and 100ml.. But if i choose one of (30-50-100) then i get the message.. Sorry this combination does not exist.

    This happens to every possible variation. They all mix up.

    I contacted my host and they updated my php and i have changed my max php settings

    I tried twenty-sixteen, i deactivated all of my plugins and nothing worked. My host is trying to help me but i cant see anything happening.

    Is there anyone who can really-really help me??

    
    ### WordPress Environment ###
    
    Home URL: https://www.tng-aromata.com
    Site URL: https://www.tng-aromata.com
    WC Version: 2.6.14
    Log Directory Writable: ?
    WP Version: 4.7.2
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: el
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 5.6.30
    PHP Post Max Size: 128 MB
    PHP Time Limit: 180
    PHP Max Input Vars: 1000
    cURL Version: 7.19.7
    NSS/3.21 Basic ECC
    
    SUHOSIN Installed: –
    Max Upload Size: 128 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.6.14
    : 
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    MaxMind GeoIP Database: ? Η Β?ση Δεδομ?νων MaxMind GeoIP δεν υπ?ρχει - Ο γεωεντοπισμ?? δεν θα λειτουργ?σει. Μπορε?τε να την μεταφορτ?σετε και να την εγκαταστ?σετε χειροκ?νητα απ? τη διε?θυνση https://dev.maxmind.com/geoip/legacy/geolite/ στο μονοπ?τι: . Μετακινηθε?τε προ? τα κ?τω στι? \"Μεταφορτ?σει?\" και μεταφορτ?στε το αρχε?ο \"Binary / gzip\" δ?πλα στο \"Χ?ρα GeoLite\"
    
    ### Active Plugins (26) ###
    
    All In One SEO Pack: Απο Michael Torbert – 2.3.11.4
    Child Pages Shortcode: Απο Takayuki Miyauchi – 1.9.3
    Spam Protection by CleanTalk: Απο СleanTalk  – 5.58.2
    Coming Soon Plugin: Απο Web-Settler – 1.5
    WooCommerce - Gift Cards: Απο WP Ronin – 2.5.6
    Google Analytics Dashboard for WP: Απο Alin Marcu – 4.9.6.2
    Google XML Sitemaps: Απο Arne Brachhold – 4.0.8
    Jetpack απ? το WordPress.com: Απο Automattic. – 4.6
    MailChimp Forms by MailMunch: Απο MailMunch – 2.1.7
    Simple Share Buttons Adder: Απο Simple Share Buttons – 6.3.4
    Stripe for WooCommerce: Απο Stephen Zuniga – 1.38
    Verify Ownership: Απο Tiguan – 1.1
    WooCommerce Weight Based Shipping: Απο dangoodman – 4.2.2
    WooCommerce Save For Later: Απο Multidots – 1.0.2
    WooCommerce COD Advanced: Απο Aheadzen Team – 1.2.7
    WooCommerce Colors: Απο WooThemes – 1.0.6
    WooCommerce Customizer: Απο SkyVerge – 2.3.1
    Woocommerce featured product categories: Απο Lamvt - Vu Thanh Lam – 3.9.1
    WooCommerce PayPal Express Checkout Gateway: Απο Automattic – 1.1.2
    WooCommerce My Account Widget: Απο Bart Pluijms – 0.5.0
    WooCommerce Product Fees: Απο Caleb Burks – 1.2
    WooCommerce Product Gift Wrap: Απο Mike Jolley – 1.1.0
    WooCommerce Product Slider: Απο subhansanjaya – 1.2.1
    Woocommerce Products Per Page: Απο Jeroen Sormani – 1.2.2
    WooCommerce: Απο WooThemes – 2.6.14
    WPtouch Mobile Plugin: Απο BraveNewCode Inc. – 4.3.11
    
    ### Settings ###
    
    Force SSL: –
    Currency: EUR (€)
    Currency Position: right
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    
    ### WC Pages ###
    
    Β?ση Καταστ?ματο?: #8 - /?page_id=8
    Καλ?θι: #9 - /?page_id=9
    Ταμε?ο: #10 - /?page_id=10
    Ο Λογαριασμ?? Μου: #11 - /?page_id=11
    
    ### Taxonomies ###
    
    Product Types: external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Divogue
    Version: 1.0.10
    Author URL: https://wphoot.com/
    Child Theme: ? – Αν κ?νετε μετατροπ? του WooCommerce επ?νω σε ?να γονικ? θ?μα που δεν δημιουργ?σατε εσε?? προσωπικ?
    τ?τε σα? προτε?νουμε να χρησιμοποι?σετε ?να child theme. Δε?τε: Πω? να δημιουργ?σετε ?να θ?μα απ?γονο
    
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: divogue/woocommerce/archive-product.php
    divogue/woocommerce/single-product.php
    
    
Viewing 10 replies - 1 through 10 (of 10 total)
  • Mflexwala

    (@skinwala)

    It is due to a ajax limit of 30
    Read here if you want -> https://woocommerce.wordpress.com/2015/07/13/improving-the-variations-interface-in-2-4/

    Solution:

    Go to Plugin folder-> woocommerce/includes/wc-template-functions.php

    and edit this file wc-template-functions.php

    and change woocommerce_ajax_variation_threshold 30 -> to something you want

    I changed it to 1000.

    Use this plugin if you don’t have ftp access.
    File manager

    • This reply was modified 8 years ago by Mflexwala. Reason: improvement
    Thread Starter marieclairedancestudio

    (@marieclairedancestudio)

    Thank you so much for your help! Everything works perfectly!!!

    Mflexwala

    (@skinwala)

    Your welcome.
    If your problem is resolved you can mark this thread as resolved.

    Thread Starter marieclairedancestudio

    (@marieclairedancestudio)

    Ok, again thank you!!

    I have been struggling with this issue for months. I just stumbled upon this post today and this fixed my problem. Thank you marieclairedancestudio for posting and thank you Mflexwala for helping with my problem ??

    thank you!

    Best not to edit plugin files because edits will be overwritten by updates.

    Instead you can use this snippet:
    https://gist.github.com/mohsinoffline/f06c66259e667d6b16bb

    The code goes in functions.php for your child theme or you can use the “My Custom Functions” plugin.

    Either way you edit it, updating WooCommerce will overwrite ajax_variation_threshold back to 30. I have done this 5 times, editing from the plugin and through Cpanel, it always gets reverted back to 30.

    You can write a filter function in theme or plugin like this

    
    add_filter( 'woocommerce_ajax_variation_threshold', array(__CLASS__, 'c4d_woocommerce_ajax_variation_threshold')); 
    function c4d_woocommerce_ajax_variation_threshold() {
    	    return 100;    
    }

    So when you update woocommerce plugin, your code will not be revert.

    But we should try other way to check with ajax to get better performance

    • This reply was modified 7 years, 5 months ago by coffee4dev.

    Muchisimas gracias!! me salvaste la vida

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Product Variations over 30 do not filter’ is closed to new replies.