• Resolved skaejaz06

    (@skaejaz06)


    Hi,

    After Recently Updating Woocommerce, the variation validation is not working

    product URL – https://gree0700stage.wpengine.com/shop/topsoil-compost/greelys-topdressing-soil/

    There is no default variation set in the product but still when I click on add to cart the product gets added to the cart.

    Pls find the Woocommerce status report

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://gree0700stage.wpengine.com
    Site address (URL): https://gree0700stage.wpengine.com
    WC Version: 4.6.0
    REST API Version: ✔ 4.6.0
    WC Blocks Version: ✔ 3.4.0
    Action Scheduler Version: ✔ 3.1.6
    WC Admin Version: ✔ 1.6.1
    Log Directory Writable: ✔
    WP Version: ❌ 5.4.2 - There is a newer version of WordPress available (5.5.1)
    WP Multisite: –
    WP Memory Limit: 768 MB
    WP Debug Mode: –
    WP Cron: –
    Language: en_CA
    External object cache: ✔
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: 7.3.22-1+ubuntu18.04.1+deb.sury.org+1
    PHP Post Max Size: 100 MB
    PHP Time Limit: 3600
    PHP Max Input Vars: 10000
    cURL Version: 7.58.0
    OpenSSL/1.1.1g
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.29-32-log
    Max Upload Size: 50 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔
    Zapier Integration - Active Feeds: ✔ 1 active Zapier Feed.
    Zapier Integration - Cron Tasks: ✔ 0 pending Zapier cron tasks.
    Zapier Feed #1 Name: ✔ New Orders (Greely Sand & Gravel)
    Zapier Feed #1 Webhook URL: ✔ https://hooks.zapier.com/hooks/catch/2959348/k8w0dr/
    Zapier Feed #1 Trigger: ✔ New Order
    Zapier Feed #1 Test Result: ✔ Successfully sent sample data to https://hooks.zapier.com/hooks/catch/2959348/k8w0dr/.
    
    ### Database ###
    
    WC Database Version: 4.6.0
    WC Database Prefix: wp_
    Total Database Size: 345.87MB
    Database Data Size: 207.44MB
    Database Index Size: 138.43MB
    wp_woocommerce_sessions: Data: 0.28MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_order_items: Data: 2.57MB + Index: 1.77MB + Engine MyISAM
    wp_woocommerce_order_itemmeta: Data: 53.34MB + Index: 14.10MB + Engine MyISAM
    wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_locations: Data: 0.03MB + Index: 0.04MB + Engine MyISAM
    wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_actionscheduler_actions: Data: 2.38MB + Index: 0.94MB + Engine InnoDB
    wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_actionscheduler_logs: Data: 1.47MB + Index: 0.75MB + Engine InnoDB
    wp_ac_abandoned_cart_history_lite: Data: 0.30MB + Index: 0.00MB + Engine InnoDB
    wp_ac_email_templates_lite: Data: 0.03MB + Index: 0.00MB + Engine InnoDB
    wp_ac_guest_abandoned_cart_history_lite: Data: 0.14MB + Index: 0.00MB + Engine InnoDB
    wp_ac_sent_history_lite: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 19.55MB + Index: 16.09MB + Engine InnoDB
    wp_cp_calculated_fields_form_discount_codes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_cp_calculated_fields_form_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_cp_calculated_fields_form_revision: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
    wp_cp_calculated_fields_form_settings: Data: 0.01MB + Index: 0.00MB + Engine MyISAM
    wp_creator_calculator: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_dynamic_widgets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_followup_coupons: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_coupon_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_customers: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_followup_customer_carts: Data: 0.13MB + Index: 0.03MB + Engine InnoDB
    wp_followup_customer_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_customer_orders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_followup_email_coupons: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_followup_email_excludes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_email_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_email_orders: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    wp_followup_email_order_coupons: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_followup_email_tracking: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_followup_followup_history: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_order_categories: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_followup_order_items: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_followup_subscribers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_subscribers_to_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_followup_subscriber_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_gf_addon_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_gf_entry: Data: 0.30MB + Index: 0.06MB + Engine InnoDB
    wp_gf_entry_meta: Data: 2.52MB + Index: 2.25MB + Engine InnoDB
    wp_gf_entry_notes: Data: 0.17MB + Index: 0.06MB + Engine InnoDB
    wp_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_gf_form_meta: Data: 0.14MB + Index: 0.00MB + Engine InnoDB
    wp_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_gf_form_view: Data: 0.13MB + Index: 0.11MB + Engine InnoDB
    wp_hurrytimer_evergreen: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_itsec_lockouts: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_itsec_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_itsec_temp: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_options: Data: 1.45MB + Index: 0.17MB + Engine InnoDB
    wp_pmxe_exports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB
    wp_pmxe_posts: Data: 0.39MB + Index: 0.00MB + Engine InnoDB
    wp_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_postmeta: Data: 83.63MB + Index: 83.28MB + Engine InnoDB
    wp_posts: Data: 7.52MB + Index: 3.81MB + Engine InnoDB
    wp_redirection_404: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_redirection_items: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_redirection_logs: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
    wp_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_layer_animations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_revslider_sliders: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_slides: Data: 0.17MB + Index: 0.02MB + Engine InnoDB
    wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_rg_form: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rg_form_meta: Data: 0.07MB + Index: 0.00MB + Engine MyISAM
    wp_rg_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_rg_incomplete_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rg_lead: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
    wp_rg_lead_detail: Data: 0.13MB + Index: 0.16MB + Engine InnoDB
    wp_rg_lead_detail_long: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rg_lead_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rg_lead_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_rg_zapier: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_termmeta: Data: 0.02MB + Index: 0.01MB + Engine MyISAM
    wp_terms: Data: 0.00MB + Index: 0.01MB + Engine MyISAM
    wp_term_relationships: Data: 0.02MB + Index: 0.04MB + Engine MyISAM
    wp_term_taxonomy: Data: 0.01MB + Index: 0.01MB + Engine MyISAM
    wp_usermeta: Data: 25.56MB + Index: 11.03MB + Engine InnoDB
    wp_users: Data: 1.52MB + Index: 0.73MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.06MB + Index: 0.09MB + Engine InnoDB
    wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_table_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
    wp_woocommerce_shipping_zone_shipping_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_woocommerce_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_wpam_actions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpam_affiliates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpam_affiliates_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpam_creatives: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpam_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpam_impressions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpam_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpam_paypal_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpam_tracking_tokens: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpam_tracking_tokens_purchase_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpam_transactions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_ycd_subscribers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 0.06MB + Index: 0.08MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.03MB + Index: 0.01MB + Engine MyISAM
    wp_yoast_seo_meta: Data: 1.01MB + Index: 0.96MB + Engine MyISAM
    
    ### Post Type Counts ###
    
    acf-field: 2
    acf-field-group: 1
    attachment: 1095
    custom_css: 1
    customize_changeset: 3
    nav_menu_item: 326
    o-discount: 1
    oembed_cache: 12
    page: 103
    post: 3
    product: 53
    product_variation: 199
    reusable: 6
    revision: 90
    shop_coupon: 38
    shop_order: 15293
    wc_zapier_feed: 1
    wpephpcompat_jobs: 33
    
    ### Security ###
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔
    
    ### Active Plugins (40) ###
    
    Gravity Forms: by Gravity Forms – 2.4.21
    Advanced Custom Fields: Theme Code: by Ben Pearson and Phil Kurth – 2.5.0
    Advanced Custom Fields: by Elliot Condon – 5.9.1
    Calculated Fields Form: by CodePeople – 1.0.418
    CMB2: by CMB2 team – 2.6.0
    Disable Cart Fragments: by LittleBizzy – 1.1.1 – Installed version not tested with active version of WooCommerce 4.6.0
    Disable Gutenberg: by Jeff Starr – 2.2
    Google Tag Manager for WordPress: by Thomas Geiger – 1.11.5
    Easy FancyBox: by RavanH – 1.8.18
    GTranslate: by Translate AI Multilingual Solutions – 2.8.60
    WPBakery Page Builder: by Michael M - WPBakery.com – 6.4.1
    Nav Menu Roles: by Kathy Darling – 2.0.0
    PHP Compatibility Checker: by WP Engine – 1.4.7
    Really Simple SSL: by Rogier Lankhorst
    Mark Wolters – 3.1.5
    
    Send email to customer on cancelled order in WooCommerce: by Laura Díaz – 1.1 – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce SSL Seal: by WP Fix It – 1.2 – Installed version not tested with active version of WooCommerce 4.6.0
    What The File: by Never5 – 1.5.4
    Abandoned Cart Lite for WooCommerce: by Tyche Softwares – 5.8.1 – Installed version not tested with active version of WooCommerce 4.6.0
    Checkout Field Editor for WooCommerce: by ThemeHigh – 3.1.1 – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Customer/Order CSV Export: by SkyVerge – 4.4.4 (update to version 5.1.2 is available) – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Direct Variation Link: by WP BackOffice – 1.0.3 – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Dynamic Pricing: by Lucas Stark – 3.1.4 (update to version 3.1.22 is available) – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Email Test: by RaiserWeb – 1.10 – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Elavon Converge Gateway: by SkyVerge – 2.3.2 (update to version 2.7.1 is available) – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Google Analytics Integration: by WooCommerce – 1.4.8 – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce MailChimp: by Saint Systems – 2.1.19 – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Min/Max Quantities: by WooCommerce – 2.4.1 (update to version 2.4.20 is available) – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Product CSV Import Suite: by Mike Jolley / WooThemes – 1.9.19 (update to version 1.10.37 is available) – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Product Dependencies: by SomewhereWarm – 1.2.1 – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Sequential Order Numbers: by SkyVerge – 1.8.3 – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Smart Coupons: by StoreApps – 4.0.1 (update to version 4.9.5 is available) – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Table Rate Shipping: by WooCommerce – 3.0.10 (update to version 3.0.30 is available) – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce Zapier Integration: by OM4 – 1.7.1 (update to version 2.0.5 is available) – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce: by Automattic – 4.6.0
    WooThemes Shortcodes: by Riaan Knoetze – 1.0.0
    Yoast SEO: by Team Yoast – 13.4.1
    WP File Manager: by mndpsingh287 – 5.8
    WP Search Suggest: by Konstantin Obenland – 4
    WPide: by Simon @ WPsites – 2.4.0
    YITH WooCommerce Multi-step Checkout Premium: by YITH – 2.0.0 – Installed version not tested with active version of WooCommerce 4.6.0
    
    ### Inactive Plugins (11) ###
    
    Follow-Up Emails: by WooCommerce – 4.7.0 (update to version 4.9.8 is available) – Installed version not tested with active version of WooCommerce 4.6.0
    FooBox Image Lightbox: by FooPlugins – 2.7.11
    Google Language Translator: by Translate AI Multilingual Solutions – 6.0.6
    HurryTimer: by Nabil Lemsieh – 2.2.24 – Installed version not tested with active version of WooCommerce 4.6.0
    Order / Coupon / Subscription Export Import Plugin for WooCommerce (BASIC): by WebToffee – 1.5.6 – Installed version not tested with active version of WooCommerce 4.6.0
    Order Delivery Date for WooCommerce (Lite version): by Tyche Softwares – 3.4.2 – Installed version not tested with active version of WooCommerce 4.6.0
    PluginlySpeaking FloatingDiv: by PluginlySpeaking – 3.0
    Redirection: by John Godley – 4.7.1
    Woo Attributes Coupon: by Gaurav Nagpal – 2.2.0 – Installed version not tested with active version of WooCommerce 4.6.0
    WooCommerce All Discounts Lite: by ORION – 1.9 – Installed version not tested with active version of WooCommerce 4.6.0
    YITH WooCommerce Catalog Mode Premium: by YITH – 1.6.9 – Installed version not tested with active version of WooCommerce 4.6.0
    
    ### Dropin Plugins (2) ###
    
    advanced-cache.php: advanced-cache.php
    object-cache.php: Memcached Redux
    
    ### Must Use Plugins (4) ###
    
    Force Strong Passwords - WPE Edition: by Jason Cosper – 1.6.4
    WP Engine Seamless Login Plugin: by WP Engine – 1.5.5
    WP Engine Security Auditor: by wpengine – 1.0.9
    WP Engine System: by WP Engine – 4.0.0
    
    ### Settings ###
    
    API Enabled: ✔
    Force SSL: –
    Currency: CAD ($)
    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: ✔
    
    ### WC Pages ###
    
    Shop base: #5 - /shop/
    Cart: #6 - /cart/
    Checkout: #7 - /checkout/
    My account: #8 - /my-account/
    Terms and conditions: #137 - /terms/
    
    ### Theme ###
    
    Name: Greely Sand & Gravel Inc.
    Version: 2.0.0
    Author URL: https://marketingbreakthroughs.com/
    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: gree2018/woocommerce/archive-product.php version 3.3.0 is out of date. The core version is 3.4.0
    gree2018/woocommerce/checkout/form-checkout.php version 2.3.0 is out of date. The core version is 3.5.0
    gree2018/woocommerce/content-product.php version 3.0.0 is out of date. The core version is 3.6.0
    gree2018/woocommerce/content-single-product.php version 3.0.0 is out of date. The core version is 3.6.0
    gree2018/woocommerce/single-product/add-to-cart/external.php version 2.1.0 is out of date. The core version is 3.4.0
    gree2018/woocommerce/single-product/add-to-cart/grouped.php version 3.3.0 is out of date. The core version is 4.0.0
    gree2018/woocommerce/single-product/add-to-cart/simple.php version 3.0.0 is out of date. The core version is 3.4.0
    gree2018/woocommerce/single-product/add-to-cart/variable.php version 3.0.0 is out of date. The core version is 3.5.5
    gree2018/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php version 3.0.0 is out of date. The core version is 3.4.0
    gree2018/woocommerce/single-product/add-to-cart/variation.php
    gree2018/woocommerce/single-product/meta.php
    gree2018/woocommerce/single-product/photoswipe.php
    gree2018/woocommerce/single-product/price.php
    gree2018/woocommerce/single-product/product-attributes.php version 3.1.0 is out of date. The core version is 3.6.0
    gree2018/woocommerce/single-product/product-image.php version 3.1.0 is out of date. The core version is 3.5.1
    gree2018/woocommerce/single-product/product-thumbnails.php version 3.1.0 is out of date. The core version is 3.5.1
    gree2018/woocommerce/single-product/rating.php version 3.1.0 is out of date. The core version is 3.6.0
    gree2018/woocommerce/single-product/related.php version 3.0.0 is out of date. The core version is 3.9.0
    gree2018/woocommerce/single-product/review-meta.php version 3.0.0 is out of date. The core version is 3.4.0
    gree2018/woocommerce/single-product/review-rating.php version 3.1.0 is out of date. The core version is 3.6.0
    gree2018/woocommerce/single-product/review.php
    gree2018/woocommerce/single-product/sale-flash.php
    gree2018/woocommerce/single-product/share.php version 1.6.4 is out of date. The core version is 3.5.0
    gree2018/woocommerce/single-product/short-description.php
    gree2018/woocommerce/single-product/stock.php
    gree2018/woocommerce/single-product/tabs/additional-information.php
    gree2018/woocommerce/single-product/tabs/description.php
    gree2018/woocommerce/single-product/tabs/tabs.php version 2.4.0 is out of date. The core version is 3.8.0
    gree2018/woocommerce/single-product/title.php
    gree2018/woocommerce/single-product/up-sells.php
    gree2018/woocommerce/single-product.php
    
    Outdated Templates: ❌
    					
    					
    						Learn how to update
    
    ### Elavon Converge Credit Card ###
    
    Environment: Production
    Tokenization Enabled: –
    Debug Mode: Off
    
    ### Customer/Order CSV Export ###
    
    Order Export Format: legacy_import
    Customer Export Format: 
    Automatically Export Orders: ftp
    Export Trigger: schedule
    Export Start Time: 9:00am
    Export Interval: 60
    Next Export: Scheduled on October 17
    2020 3:00 am
    
    Order Statuses: wc-pending
    wc-processing
    wc-on-hold
    wc-completed
    
    Product Categories: 
    Products: 
    Automatically Export Customers: disabled
    
    ### Action Scheduler ###
    
    Complete: 3,785
    Oldest: 2020-09-16 02:28:04 -0400
    Newest: 2020-10-17 02:05:04 -0400
    
    Pending: 2
    Oldest: 2020-10-17 02:20:04 -0400
    Newest: 2020-10-17 10:34:03 -0400
    
    

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter skaejaz06

    (@skaejaz06)

    I even tried by deactivating all the plugins but still, the issues remain. is it because of the custom template which I’ve created in the theme? if yes can you pls let me know which file is responsible for that?

    mother.of.code

    (@imazed)

    The Mother of Code

    I’d certainly suspect the template edits are part of the problem, yes. Without seeing the code in these templates it’s an educated guess, but I’d look into the following ones:

    – gree2018/woocommerce/single-product/add-to-cart/variable.php version 3.0.0 is out of date. The core version is 3.5.5
    – gree2018/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php version 3.0.0 is out of date. The core version is 3.4.0
    – gree2018/woocommerce/single-product/add-to-cart/variation.php

    Thread Starter skaejaz06

    (@skaejaz06)

    Hi,

    This is the code in all 3 files. can you pls help me in modifying the same according to the latest version

    variable.php

    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    
    global $product;
    
    $attribute_keys = array_keys( $attributes );
    
    do_action( 'woocommerce_before_add_to_cart_form' ); ?>
    
    <form class="variations_form cart" action="<?php echo esc_url( get_permalink() ); ?>" method="post" enctype='multipart/form-data' data-product_id="<?php echo absint( $product->get_id() ); ?>" data-product_variations="<?php echo htmlspecialchars( wp_json_encode( $available_variations ) ) ?>">
    	<?php do_action( 'woocommerce_before_variations_form' ); ?>
    
    	<?php if ( empty( $available_variations ) && false !== $available_variations ) : ?>
    		<p class="stock out-of-stock"><?php _e( 'This product is currently out of stock and unavailable.', 'woocommerce' ); ?></p>
    	<?php else : ?>
    
    		<h3>Purchase Options</h3>
    
    		<table class="variations" cellspacing="0">
    			<tbody>
    				<?php foreach ( $attributes as $attribute_name => $options ) : ?>
    					<tr>
    						<td class="label"><label for="<?php echo sanitize_title( $attribute_name ); ?>"><?php echo wc_attribute_label( $attribute_name ); ?></label></td>
    						<td class="value">
    							<?php
    								$selected = isset( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ? wc_clean( stripslashes( urldecode( $_REQUEST[ 'attribute_' . sanitize_title( $attribute_name ) ] ) ) ) : $product->get_variation_default_attribute( $attribute_name );
    								wc_dropdown_variation_attribute_options( array( 'options' => $options, 'attribute' => $attribute_name, 'product' => $product, 'selected' => $selected ) );
    							?>
    						</td>
    					</tr>
    				<?php endforeach;?>
    			</tbody>
    		</table>
    
    		<?php echo end( $attribute_keys ) === $attribute_name ? apply_filters( 'woocommerce_reset_variations_link', '<a class="reset_variations" href="#">' . esc_html__( 'Clear', 'woocommerce' ) . '</a>' ) : ''; ?>
    
    		<?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>
    
    		<div class="single_variation_wrap">
    			<?php
    				/**
    				 * woocommerce_before_single_variation Hook.
    				 */
    				do_action( 'woocommerce_before_single_variation' );
    
    				/**
    				 * woocommerce_single_variation hook. Used to output the cart button and placeholder for variation data.
    				 * @since 2.4.0
    				 * @hooked woocommerce_single_variation - 10 Empty div for variation data.
    				 * @hooked woocommerce_single_variation_add_to_cart_button - 20 Qty and cart button.
    				 */
    				do_action( 'woocommerce_single_variation' );
    
    				/**
    				 * woocommerce_after_single_variation Hook.
    				 */
    				do_action( 'woocommerce_after_single_variation' );
    			?>
    		</div>
    
    		<?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>
    	<?php endif; ?>
    
    	<?php do_action( 'woocommerce_after_variations_form' ); ?>
    </form>
    
    <?php
    do_action( 'woocommerce_after_add_to_cart_form' );

    variation-add-to-cart-button.php

    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    
    global $product;
    ?>
    <div class="woocommerce-variation-add-to-cart variations_button">
    	<?php
    		/**
    		 * @since 3.0.0.
    		 */
    		do_action( 'woocommerce_before_add_to_cart_quantity' );
    
    		woocommerce_quantity_input( array(
    			'min_value'   => apply_filters( 'woocommerce_quantity_input_min', $product->get_min_purchase_quantity(), $product ),
    			'max_value'   => apply_filters( 'woocommerce_quantity_input_max', $product->get_max_purchase_quantity(), $product ),
    			'input_value' => isset( $_POST['quantity'] ) ? wc_stock_amount( $_POST['quantity'] ) : $product->get_min_purchase_quantity(),
    		) );
    
    		/**
    		 * @since 3.0.0.
    		 */
    		do_action( 'woocommerce_after_add_to_cart_quantity' );
    	?>
    	<button type="submit" class="single_add_to_cart_button button alt"><?php echo esc_html( $product->single_add_to_cart_text() ); ?></button>
    	<input type="hidden" name="add-to-cart" value="<?php echo absint( $product->get_id() ); ?>" />
    	<input type="hidden" name="product_id" value="<?php echo absint( $product->get_id() ); ?>" />
    	<input type="hidden" name="variation_id" class="variation_id" value="0" />
    </div>

    variation.php

    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    ?>
    <script type="text/template" id="tmpl-variation-template">
    	<div class="woocommerce-variation-description"><code>data.variation.variation_description</code></div>
    
    	<div class="woocommerce-variation-price"><code>data.variation.price_html</code></div>
    
    	<div class="woocommerce-variation-availability"><code>data.variation.availability_html</code></div>
    </script>
    <script type="text/template" id="tmpl-unavailable-variation-template">
    	<p><?php _e( 'Sorry, this product is unavailable. Please choose a different combination.', 'woocommerce' ); ?></p>
    </script>

    Thank You

    • This reply was modified 5 years, 6 months ago by skaejaz06.
    mother.of.code

    (@imazed)

    The Mother of Code

    I’m not a developer, so I can’t offer much insight into what specifically needs to be adjusted for this to resolve – sorry!

    If there are no other community members who can help with this, you can always get in touch with a developer here: https://woocommerce.com/customizations

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

The topic ‘Woocommerce Variation Validation Not working’ is closed to new replies.