Forum Replies Created
-
Hello Junnie!
Thanks again! 🙂
I have read what you sent, and the following code is copied into the function.php, but unfortunately there does not work.
Then I wore another test site, where another template is set. There, half a solution of the products has been showing the price with Tax, but the total price without tax.
So this solution is not working on the Woow theme, and another theme is just a half.
Thank you very much for your efforts, but unfortunately I do not see the finish. What can more be done?
Thanks for your help, and your work! 🙂Lui
add_filter( 'woocommerce_cart_product_price', 'wc_ninja_cart_product_price', 15, 2 ); function wc_ninja_cart_product_price( $product_price, $_product ) { $incl_tax = $_product->get_price_including_tax(); return wc_price( $incl_tax ); } add_filter( 'woocommerce_cart_product_subtotal', 'wc_ninja_cart_product_subtotal', 15, 4 ); function wc_ninja_cart_product_subtotal( $product_subtotal, $_product, $quantity, $object ) { $row_price = $_product->get_price_including_tax( $quantity ); $incl_tax = wc_price( $row_price ); if ( ! $object->prices_include_tax && $object->tax_total > 0 ) { $incl_tax .= ' <small class="tax_label">' . WC()->countries->inc_tax_or_vat() . '</small>'; } return $incl_tax; }
in reply to: Mini cart not show the correct priceThis reply has been marked as private.in reply to: Mini cart not show the correct price
Viewing 2 posts - 1 through 2 (of 2 total)