Jump to content

.London Domains - £4
Photo

WooCommerce - get_cart_total & taxes


  • Please log in to reply
No replies to this topic

#1 rob

rob
  • Hefty Member
  • Advanced Member
  • 659 posts

Posted 13 October 2015 - 12:06

I'm using this code to show a mini cart total in the header of my site:

<?php echo WC()->cart->get_cart_total(); ?>

The issue is, it's always showing without tax - but every other product price shows WITH tax - even in the main cart and checkout - any ideas why this bit of code would be having issues?!

 

I just cannot get my head around it - when I look at the documentation, the function seems to have a bit of logic in to check if the products in the cart are tax-able etc... but nothing seems to work.

 

Ideas on a postcard!


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users