Support – DawnThemes
  • Home
  • Portfolio
  • Support
  • Video Tutorials

Support Forums

Home/Forums/Plugins/WooCommerce Page Builder For Elementor/Replace zero price with free

Replace zero price with free

This topic is: resolved
  • February 8, 2021 at 5:05 pm #33171

    vLegion_
    Participant

    Hi Team,
    I did have my price set to replace 0.00 with free but now that I have your plugin it appears to have changed that.

    How can I get it to change this again.

    Previous code is this:

    add_filter( ‘woocommerce_get_price_html’, ‘bbloomer_price_free_zero_empty’, 9999, 2 );

    function bbloomer_price_free_zero_empty( $price, $product ){
    if ( ” === $product->get_price() || 0 == $product->get_price() ) {
    $price = ‘FREE‘;
    }
    return $price;
    }


    Sorry, this forum is for verified users only. Please Login or Register to continue

Log In
Register Lost Password

Recent Topics

  • Single Product Image – Gallery not showing correctly (second try)
  • Single Product Image – Gallery not showing correctly
  • allow two prices in ticket sales
  • Issue with Product Page Display after PHP 8.3 Update
  • Some modules for WCFM are not available

Knowledge Base

  • Do you provide customization service?
  • Register Envato Code
  • I can’t wait any longer! How can I quickly solve my problem?
  • How to get my Envato purchase code?
  • How to set as Private Reply over Support Forum

Recent Posts

  • Happy Lunar New Year 2021 – Holiday Break!

Featured Item

ThemeForest Items

CodeCanyon Items

Tags

#conflict avada cart cart page categories category checkout CSS custom fields error Event page header images installation layout login membership menu mobile my account Page page builder page settings plugin product product gallery product page product template refund Responsive shop page shortcode sidebar single product image Single Product Template template ticketbox Update Urgent video Viem Woocommerce WooCommerce Page Builder WPBakery wpml
© Copyright DawnThemes.com