Home › Forums › WoodMart support forum › Side cart
Side cart
- This topic has 12 replies, 2 voices, and was last updated 7 months ago by Aizaz Imtiaz Awan.
-
AuthorPosts
-
June 19, 2024 at 3:39 pm #573845
hardik119955ParticipantAll my taxes settings are perfect….. only issue I m having is my side cart shows product price without taxes in my case (ex.GST)
I want to show price including taxes in side cart !important
Please guide…
Refer screenshotAttachments:
You must be logged in to view attached files.June 20, 2024 at 9:47 am #574023
Aizaz Imtiaz AwanKeymasterHello,
Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.
Best Regards
June 20, 2024 at 10:00 am #574035
hardik119955ParticipantCan’t give access right now, please guide accordingly dear….
June 20, 2024 at 11:32 am #574089
Aizaz Imtiaz AwanKeymasterHello,
The price for the cart widget is taken from one place in WooCommerce code. You find it in the file woocommerce/includes/class-wc-cart.php
`public 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 );
}`Best Regards.
June 20, 2024 at 11:37 am #574093
hardik119955ParticipantWhat to do with this code dear please guide….
June 20, 2024 at 11:40 am #574095
hardik119955ParticipantAlso I’m taking about side cart.
I want cart page to show taxes working exactly as its showing right now for each product as I have set.
I only want side cart to show price including taxes instead of excluding.
June 20, 2024 at 1:14 pm #574143
Aizaz Imtiaz AwanKeymasterHello,
Please try to add the code in the functions.php file in your child theme and check how it works.
Best Regards.
June 20, 2024 at 3:09 pm #574190
hardik119955Participantincorrect code, not working
Please check dear
Attachments:
You must be logged in to view attached files.June 20, 2024 at 4:41 pm #574213
Aizaz Imtiaz AwanKeymasterHello,
Sorry to hear about the inconvenience. Kindly, please share your Site WP-ADMIN Login details in the Private Content field so that we can check this concern on your Site and help you out accordingly.
Best Regards
June 20, 2024 at 4:45 pm #574215
hardik119955ParticipantDear as I mentioned earlier can’t give access right now due to client specific reasons please guide accordingly…..
Hope you understand
June 21, 2024 at 9:33 am #574326
Aizaz Imtiaz AwanKeymasterHello,
There is no such an option to add Taxes to the mini cart, unfortunately. You find it in the file woocommerce/includes/class-wc-cart.php
You need to edit the theme files for this. All the customizations made in the theme files are at your own risk
Best Regards.
June 21, 2024 at 10:21 am #574362
hardik119955Participantthere is as I have opted option to show(enable tax rate calculation) that’s why it shows tax working on my cart page and checkout page…..
But the issue is when this option is enabled the side cart or mini cart show product price excluding of taxes….. and vice versa if disabled.
in my condition i want to show tax calculation so I have enabled option woocommerce>settings>general>enable taxes
but i want my mini or side cart display price including taxes.
please solve this issue, please guide….. I’m looking forward for a help from your side
Thank You
Attachments:
You must be logged in to view attached files.June 21, 2024 at 1:42 pm #574445
Aizaz Imtiaz AwanKeymasterHello,
Sorry to say but right now there is no option in Theme Settings available for that. It requires Customization and this is beyond our limitations and support policy scope.
Hope you can understand our limitations.Best Regards.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register