• Resolved mariusgmh

    (@mariusgmh)


    I took over a website and while working I hit this issue.
    When a variation does not have a price it wont display it’s description.

    To see what i mean chose the 1st variation from the drop-down, see description.
    Chose last variation (250cm) and only see a generic “not available” message without the description.

    How do i correct this behavior so it shows the description even if no price is available.?

    link: https://grossmetalhoreca.ro/product/fast-food/vitrina-calda-de-banc-sudforni-tb/

    report:

    
    ### WordPress Environment ###
    
    Home URL: https://grossmetalhoreca.ro
    Site URL: https://grossmetalhoreca.ro
    WC Version: 3.0.3
    Log Directory Writable: ?
    WP Version: 4.7.5
    WP Multisite: –
    WP Memory Limit: 512 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: ro_RO
    
    ### Server Environment ###
    
    Server Info: LiteSpeed
    PHP Version: ? 5.4.45 - We recommend a minimum PHP version of 5.6. See: How to update your PHP version
    PHP Post Max Size: 64 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 20000
    cURL Version: 7.54.0
    OpenSSL/1.0.2k
    
    SUHOSIN Installed: ?
    Max Upload Size: 64 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.0.3
    WC Database Prefix: wp_
    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: ?
    
    ### Security ###
    
    Secure connection (HTTPS): ?Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ?
    
    ### Active Plugins (24) ###
    
    Akismet: by Automattic – 3.2
    Bloom: by Elegant Themes – 1.0.4
    Code Snippets: by Shea Bunge – 2.8.2
    Contact Form 7: by Takayuki Miyoshi – 4.7
    Cookie Notice: by dFactory – 1.2.34
    Cron Tasks Viewer: by Dr. Max V – 0.0.3
    Disable Comments: by Samir Shah – 1.6
    Facebook for WooCommerce: by Facebook – 1.4.1
    Footer Putter: by Russell Jamieson – 1.14.1
    Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 6.1.7
    Image Widget: by Modern Tribe
    Inc. – 4.2.1
    
    Loco Translate: by Tim Whitlock – 2.0.14
    Meta Slider: by Matcha Labs – 3.5
    Monarch Plugin: by Elegant Themes – 1.2.3
    Woocommerce Onsale Page: by wpgenie – 1.0.7
    Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 2.2.6
    Optimize Database after Deleting Revisions: by CAGE Web Design | Rolf van Gelder
    Eindhoven
    The Netherlands – 4.2.1
    
    Say What?: by Lee Willis – 1.9.0
    Scripts n Styles: by unFocus Projects – 3.4.0
    Search Exclude: by Roman Pronskiy – 1.2.2
    Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri
    Inc – 1.8.3
    
    Woocommerce Recently Viewed Products Widget: by Nguyen Ngoc Linh – 1.1
    WooCommerce: by Automattic – 3.0.3 – 3.1.0 is available
    Yoast SEO: by Team Yoast – 4.8
    
    ### Settings ###
    
    API Enabled: ?
    Force SSL: –
    Currency: EUR (€)
    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)
    
    ### WC Pages ###
    
    Shop base: ? Page visibility should be public
    Cart: #2388 - /cart/
    Checkout: #2389 - /checkout/
    My account: #2390 - /my-account/
    
    ### Theme ###
    
    Name: GrossMetalHoreca
    Version: 1.0
    Author URL: https://www.grossmetalhoreca.ro/
    Child Theme: ?
    Parent Theme Name: Divi
    Parent Theme Version: 2.3
    Parent Theme Author URL: https://grossmetalhoreca.ro
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: child/woocommerce/loop/sale-flash.php
    child/woocommerce/single-product/add-to-cart/simple.php version 2.1.0 is out of date. The core version is 3.0.0
    child/woocommerce/single-product/product-image.php
    child/woocommerce/single-product/product-thumbnails.php
    child/woocommerce/single-product/sale-flash.php
    
    Outdated Templates: ?Learn how to update
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mariusgmh

    (@mariusgmh)

    Had a bit of free time and fixed it.

    Override variation.php and in it copy from id=”tmpl-variation-template” everything to id=”tmpl-unavailable-variation-template”

    Now it behaves the way I want it.

    Thread Starter mariusgmh

    (@mariusgmh)

    Seems to be fine.
    Resolved

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show variation description even if the price is blank’ is closed to new replies.