'; // If product is in sale. if ( ( $price_amt == $sale_price ) && ( $sale_price != 0 ) ) { $html_price .= '' . wc_price( $sale_price ) . ''; $html_price .= '' . wc_price( $regular_price ) . ''; } // in sale but free. else if ( ( $price_amt == $sale_price ) && ( $sale_price == 0 ) ) { $html_price .= '' . esc_html__( 'Free!', 'maxcoach' ) . ''; $html_price .= '' . wc_price( $regular_price ) . ''; } // not is sale. else if ( ( $price_amt == $regular_price ) && ( $regular_price != 0 ) ) { $html_price .= '' . wc_price( $regular_price ) . ''; } // for free product. else if ( ( $price_amt == $regular_price ) && ( $regular_price == 0 ) ) { $html_price .= '' . esc_html__( 'Free!', 'maxcoach' ) . ''; } $html_price .= '
'; $html_price .= '' . wc_price( $variation_min_price ) . '-' . wc_price( $variation_max_price ) . ''; $html_price .= '' . wc_price( $variation_min_regular_price ) . '-' . wc_price( $variation_max_regular_price ) . ''; $html_min_max_price = $html_price; } return $html_min_max_price; } function woocommerce_clear_cart_url() { global $woocommerce; if ( isset( $_GET['empty-cart'] ) ) { $woocommerce->cart->empty_cart(); } } function change_empty_cart_messages() { ?>