Home / Forums / WoodMart support forum / Cart widget include tax
Home › Forums › WoodMart support forum › Cart widget include tax
Cart widget include tax
- This topic has 7 replies, 2 voices, and was last updated 8 years, 6 months ago by
Artem Temos.
-
AuthorPosts
-
January 11, 2018 at 8:46 am #32759
RovingParticipantHello,
I need to display the cart price in the cart widget including the tax.
http://prntscr.com/hyvoxh
http://prntscr.com/hyvp3aBut in the cart and checkout page, I need the tax to be on a separate line, so I can’t do that from woocommerce inc,exc settings.
So I need the cart widget to display price with tax with the tax sitting in woocommerce in exclude tax.
http://prntscr.com/hyvr2zI can code if it needs so
Thanks for your time.January 11, 2018 at 9:05 am #32775Hello,
We are glad to know that you considered using Basel for your web-site. I hope you will be happy with it.
Could you please send us your website link and admin access so we can check your configuration firstly and see what is wrong there?
Kind Regards
XtemosJanuary 11, 2018 at 9:12 am #32778
RovingParticipantNo Basel I am using woodmart.
The password is in the private contentJanuary 11, 2018 at 9:22 am #32781It is possible only if you add some tax suffix text like
incl. taxand display price with taxes on cart and checkout like this https://gyazo.com/6200c401ad3bd9b8c21c4b13206a4cd6January 11, 2018 at 9:27 am #32783
RovingParticipantBut I don’t want in checkout page the tax as a single total I needed only on the cart widget.
Is it possible to code it?
Where I can find the price calc. for the cart widget?January 11, 2018 at 9:35 am #32785The problem that the price for the cart widget and checkout page is taken from one place in WooCommerce code. You find it in the file
woocommerce/includes/class-wc-cart.phppublic function get_product_price( $product ) { if ( 'excl' === $this->tax_display_cart ) { $product_price = wc_get_price_excluding_tax( $product ); } else { $product_price = wc_get_price_including_tax( $product ); } return apply_filters( 'woocommerce_cart_product_price', wc_price( $product_price ), $product ); }Regards
January 11, 2018 at 9:39 am #32787
RovingParticipantHmmm, so the best way to do what I need is to include tax everywhere.
ok, Thanks for your help! 😀January 11, 2018 at 9:40 am #32788I guess yes, would be better to do this all over the site.
You are welcome 🙂
-
AuthorPosts
- You must be logged in to create new topics. Login / Register