Support » Plugin: WooCommerce » (Smiley) WC 3.0.1 compatible with Avada 5.1.4

  • Resolved LoveWordpress

    (@getzero)


    First of all, Thank you WC team for providing free plugin.

    Good to see that, latest WC 3.0.1 update is compatible with latest Avada theme 5.1.4. Thanks to Avada theme as well for keeping the theme development up-to-date.

    I need help with the following code that worked with WC 2.6.14, but not working with WC 3.0.1 update.

    // Remove prices everywhere
    function remove_all_prices( $price ) {
    $price = '';
    return $price;
    }
    add_filter( 'woocommerce_variable_sale_price_html', 'remove_all_prices', 10, 2 );
    add_filter( 'woocommerce_variable_price_html', 'remove_all_prices', 10, 2 );
    add_filter( 'woocommerce_get_price_html', 'remove_all_prices', 10, 2 );

    Any help to change/modify the above to a working code would be appreciated.
    Thank you.

Viewing 1 replies (of 1 total)
  • Never mind. Problem solved by commenting the last line.

    //add_filter( 'woocommerce_get_price_html', 'remove_all_prices', 10, 2 );

Viewing 1 replies (of 1 total)
  • The topic ‘(Smiley) WC 3.0.1 compatible with Avada 5.1.4’ is closed to new replies.