BOGO subtotal issue
-
Hello,
I hope you could help me with this problem.
I have a free product added to the cart automatically when the user purchases two other products. This free product has a price of €0. In the cart and checkout, before the last update, I saw the word “free” in subtotal instead of the price, now in the subtotal part I see € 0,00 (strikethrough text) €0.00. How can I show the text “free gift” again in cart and checkout subtotal instead of the price?
I have this code, but it works only for “price” column in cart:add_filter( 'woocommerce_cart_item_price', 'change_cart_item_price_html', 10, 3 ); function change_cart_item_price_html( $price_html, $cart_item, $cart_item_key ) { if( $cart_item['data']->get_price() == 0 ) return '<span class="woocommerce-Price-amount amount">'.__("Omaggio", "woocommerce").'</span>'; } return $price_html; }
Thank you very much
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘BOGO subtotal issue’ is closed to new replies.