• Resolved Bigint

    (@bigint)


    Hi,

    I’ve been asked to take a look a problem site, but I’m struggling to figure the cause of the problem.

    The price field and add to cart button do not display after selecting the previous variable product options on the following page: https://www.funkyheat.co.uk/shop/glass-mirror-infrared-heater/deva-infrared-heater/

    However, the same options work fine on this page: https://www.funkyheat.co.uk/shop/glass-mirror-infrared-heater/hampstead-infrared-heater.

    Using the browser console, it appears some inline CSS and CSS driven by JS is hiding the relevant fields:


    <div class=”woocommerce-variation single_variation” style=”display: none;”></div>

    <div class=”woocommerce-variation-add-to-cart variations_button woocommerce-variation-add-to-cart-disabled”>
    </div>

    body .woocommerce-variation-add-to-cart-disabled {
    display: none!important;
    }

    This makes me think it’s a setting in wp-admin/products, but I’ve looked and the variations seem to be configured exactly the same in wp-admin/products.

    Also, there is a JS error on the problem page:


    /**handles:wc-add-to-cart-variation**/
    Uncaught TypeError: a.$form.block is not a function

    The log is below. Can anyone let me know what I’m missing please? Thanks.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://www.funkyheat.co.uk
    Site address (URL): https://www.funkyheat.co.uk
    WC Version: 3.7.0
    REST API Version: ✔ 1.0.2
    Log Directory Writable: ✔
    WP Version: 5.2.3
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ✔
    Language: en_GB
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.1.32 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version
    PHP Post Max Size: 8 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.66.0
    OpenSSL/1.0.2t
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.27
    Max Upload Size: 2 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    
    ### Database ###
    
    WC Database Version: 3.7.0
    WC Database Prefix: fhwp_
    MaxMind GeoIP Database: ✔
    Total Database Size: 67.37MB
    Database Data Size: 48.08MB
    Database Index Size: 19.29MB
    fhwp_woocommerce_sessions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
    fhwp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    fhwp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    fhwp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    fhwp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    fhwp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cerber_acl: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    cerber_blocks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    cerber_countries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cerber_lab: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    cerber_lab_ip: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    cerber_lab_net: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cerber_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    cerber_qmem: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    cerber_traffic: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_bwg_album: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_bwg_album_gallery: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_bwg_file_paths: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    fhwp_bwg_gallery: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_bwg_image: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_bwg_image_comment: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_bwg_image_rate: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_bwg_image_tag: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_bwg_shortcode: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_bwg_theme: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
    fhwp_captured_wc_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_cerber_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_cerber_sets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_comments: Data: 0.34MB + Index: 0.56MB + Engine InnoDB
    fhwp_ewwwio_images: Data: 1.52MB + Index: 1.80MB + Engine InnoDB
    fhwp_ewwwio_queue: Data: 0.08MB + Index: 0.05MB + Engine InnoDB
    fhwp_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_gaplus_login: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_gf_addon_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_gf_entry_meta: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    fhwp_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_gf_form_meta: Data: 0.03MB + Index: 0.00MB + Engine InnoDB
    fhwp_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_gf_form_view: Data: 0.11MB + Index: 0.13MB + Engine InnoDB
    fhwp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_maxbuttonsv3: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_maxbuttons_collections: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_maxbuttons_collections_trans: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_newsletter: Data: 0.38MB + Index: 0.27MB + Engine MyISAM
    fhwp_newsletter_emails: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
    fhwp_newsletter_sent: Data: 0.18MB + Index: 0.29MB + Engine MyISAM
    fhwp_newsletter_stats: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
    fhwp_newsletter_user_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_ngg_album: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_ngg_gallery: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_ngg_pictures: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
    fhwp_options: Data: 4.16MB + Index: 1.06MB + Engine InnoDB
    fhwp_popularpostsdata: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_popularpostssummary: Data: 1.52MB + Index: 2.14MB + Engine InnoDB
    fhwp_postmeta: Data: 16.55MB + Index: 7.98MB + Engine InnoDB
    fhwp_posts: Data: 13.50MB + Index: 1.03MB + Engine InnoDB
    fhwp_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_rad_uptin_stats: Data: 0.30MB + Index: 0.00MB + Engine InnoDB
    fhwp_rg_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_rg_form_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
    fhwp_rg_form_view: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
    fhwp_rg_incomplete_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_rg_lead: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    fhwp_rg_lead_detail: Data: 0.11MB + Index: 0.11MB + Engine InnoDB
    fhwp_rg_lead_detail_long: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_rg_lead_meta: Data: 0.05MB + Index: 0.05MB + Engine InnoDB
    fhwp_rg_lead_notes: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    fhwp_sb2_404: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    fhwp_sb2_bl: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
    fhwp_sb2_crawl: Data: 0.30MB + Index: 0.36MB + Engine InnoDB
    fhwp_sb2_kw: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
    fhwp_sb2_kwdt: Data: 0.14MB + Index: 0.13MB + Engine InnoDB
    fhwp_sb2_log: Data: 1.52MB + Index: 0.08MB + Engine InnoDB
    fhwp_sb2_urls: Data: 1.52MB + Index: 0.27MB + Engine InnoDB
    fhwp_sb2_urls_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_sfm_redirects: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    fhwp_smush_dir_images: Data: 0.28MB + Index: 0.09MB + Engine InnoDB
    fhwp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_terms: Data: 0.31MB + Index: 0.31MB + Engine InnoDB
    fhwp_term_relationships: Data: 0.39MB + Index: 0.31MB + Engine InnoDB
    fhwp_term_taxonomy: Data: 0.31MB + Index: 0.33MB + Engine InnoDB
    fhwp_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    fhwp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    fhwp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    fhwp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    fhwp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    fhwp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    fhwp_wc_product_meta_lookup: Data: 0.13MB + Index: 0.38MB + Engine InnoDB
    fhwp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    fhwp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    fhwp_yoast_seo_links: Data: 0.22MB + Index: 0.09MB + Engine InnoDB
    fhwp_yoast_seo_meta: Data: 0.39MB + Index: 0.00MB + Engine InnoDB
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (53) ###
    
    Gravity Forms: by rocketgenius – 2.4.14
    AddToAny Share Buttons: by AddToAny – 1.7.38
    Auto Ping Booster: by Samee Ullah Feroz – 1.2
    Call Now Button: by Jerry Rietveld – 0.3.6
    Webcraftic Clearfy – WordPress optimization plugin: by Webcraftic  – 1.5.9
    Smash Balloon Custom Facebook Feed: by Smash Balloon – 2.11
    Custom Menu Wizard: by Roger Barrett – 3.3.1
    Disable Comments: by Samir Shah – 1.10.2
    Disable Gutenberg: by Jeff Starr – 1.9
    Duplicate Post: by Enrico Battocchi – 3.2.3
    Envira Gallery Lite: by Envira Gallery Team – 1.7.0
    EWWW Image Optimizer: by Exactly WWW – 5.0.0
    Facebook for WooCommerce: by Facebook – 1.9.15 – Not tested with the active version of WooCommerce
    Feedburner Alternative and RSS Redirect Plugin: by SpecificFeeds – 2.3
    Google Analytics +: by WPMU DEV – 3.1.7.2
    Gravity Forms MailChimp Add-On: by rocketgenius – 4.6
    Head, Footer and Post Injections: by Stefano Lissa – 3.1.3
    WooThumbs - Awesome Product Imagery: by Iconic – 4.6.4 – Not tested with the active version of WooCommerce
    Improved Variable Product Attributes for WooCommerce: by Mihajlovic Nenad – 3.2.4 – Not tested with the active version of WooCommerce
    Insert Headers and Footers: by WPBeginner – 1.4.4
    Inline Related Posts: by IntellyWP – 2.2.4
    WPBakery Page Builder: by Michael M - WPBakery.com – 6.0.5
    Mailchimp for WooCommerce: by Mailchimp – 2.2.4
    MC4WP: Mailchimp for WordPress: by ibericode – 4.6.1
    MaxButtons: by Max Foundry – 7.11
    Newsletter: by Stefano Lissa & The Newsletter Team – 6.3.1
    Official Facebook pixel: by Facebook – 1.7.25
    Product/Review CSV Import Export: by WebToffee – 3.7.8
    Really Simple SSL: by Rogier Lankhorst
    Mark Wolters – 3.2.5
    
    Rotating Tweets (Twitter widget & shortcode): by Martin Tod – 1.9.9
    Simple Custom Post Order: by Colorlib – 2.4.6
    Smart Passworded Pages: by Brian Layman – 2.0.0
    TablePress: by Tobias Bäthge – 1.9.2
    Triberr: by Triberr – 4.0.9
    Uptin (by UpViral): by UpViral – 1.1.2
    WooCommerce SSL Seal: by WP Fix It – 1.2 – Not tested with the active version of WooCommerce
    WooCommerce Admin: by WooCommerce – 0.19.0
    WooCommerce Stripe Gateway: by WooCommerce – 4.2.5
    WooCommerce WorldPay Gateway: by Add On Enterprises (Andrew Benbow) – 3.6.0 – Not tested with the active version of WooCommerce
    WooCommerce Google Analytics Integration: by WooCommerce – 1.4.14
    WooCommerce Product Search: by itthinx – 1.10.0 – Not tested with the active version of WooCommerce
    WooCommerce Tab Manager: by SkyVerge – 1.8.2 – Not tested with the active version of WooCommerce
    WooCommerce: by Automattic – 3.7.0 – 3.7.1 is available
    WordPress Popular Posts: by Hector Cabrera – 4.2.2
    Yoast SEO Premium: by Team Yoast – 9.2.1
    Hummingbird Pro: by WPMU DEV – 2.1.1
    Smush Pro: by WPMU DEV – 3.2.4
    Smush Pro: by WPMU DEV – 3.2.4
    WP Store Locator: by Tijmen Smit – 2.2.231
    WPMU DEV Dashboard: by WPMU DEV – 4.7.3.2
    Yoast SEO: WooCommerce: by Team Yoast – 9.2 – Not tested with the active version of WooCommerce
    Yoast SEO: Search index purge: by Team Yoast – 1.1.0
    Embed Plus for YouTube - Gallery, Channel, Playlist, Live Stream: by Embed Plus for YouTube Team – 13.1.2.1
    
    ### Inactive Plugins (4) ###
    
    CartBounty - Save and recover abandoned carts for WooCommerce: by Streamline.lv – 4.2 – Not tested with the active version of WooCommerce
    Fast Velocity Minify: by Raul Peixoto – 2.7.4
    SmartCrawl: by WPMU DEV – 2.3.1
    Yoast SEO: by Team Yoast – 12.2
    
    ### Dropin Plugins (1) ###
    
    advanced-cache.php: advanced-cache.php
    
    ### 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)
    visible (visible)
    
    Connected to WooCommerce.com: –
    
    ### WC Pages ###
    
    Shop base: #7 - /shop/
    Basket: #8 - /cart/
    Checkout: #9 - /checkout/
    My account: ❌ Page does not contain the shortcode.
    Terms and conditions: ❌ Page not set
    
    ### Theme ###
    
    Name: Function Bespoke
    Version: 1.0.0
    Author URL: http://function.agency
    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 ###
    
    Overrides: funkyheat/woocommerce/archive-product.php
    funkyheat/woocommerce/emails/customer-completed-order.php version 2.5.0 is out of date. The core version is 3.7.0
    funkyheat/woocommerce/emails/customer-processing-order.php version 2.5.0 is out of date. The core version is 3.7.0
    funkyheat/woocommerce/emails/email-footer.php version 2.3.0 is out of date. The core version is 3.7.0
    funkyheat/woocommerce/emails/email-header.php
    
    Outdated Templates: ❌
    					
    					
    						Learn how to update
    
    ### Action Scheduler ###
    
    Complete: 740
    Oldest: 2019-09-08 16:16:29 +0100
    Newest: 2019-10-09 14:55:35 +0100
    
    Pending: 2
    Oldest: 2019-10-09 15:55:35 +0100
    Newest: 2019-10-12 11:29:47 +0100
    
    Canceled: 0
    Oldest: –
    Newest: –
    
    In-progress: 0
    Oldest: –
    Newest: –
    
    Failed: 0
    Oldest: –
    Newest: –
    
    

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

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

    (@bigint)

    Update:

    I think the CSS hiding the cart is default behaviour by the ‘Improved Product Options for WooCommerceunder’ plugin under this setting: ‘Check this option to hide the Add to cart button in single product pages before the selection is made’.

    That leaves the JS error as a cause. I still cannot find any reason why for the error after a long time trying.

    Thread Starter Bigint

    (@bigint)

    The cause of this issue was difficult for me to source because the only pointer was a JavaScript error in the browser console with little indication as to the cause.

    After trying all ideas, I was left with the process of elimination. Using the Health Check & Troubleshooting plugin, I disabled the plugins one by one in a safe environment. By doing this, I discovered a conflict between Improved Product Options for WooCommerce and Hummingbird.

    Hummingbird has been deactivated. Still not sure the two conflict. That’s foe another time. The site is back working.

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

The topic ‘Some Variable Product Options Not Working’ is closed to new replies.