“edd_cart_total” showing total price twice
-
I updated my testing site from 2.11.6 to the latest version of EDD and the following code I’ve used forever in my top menu bar shows the total price of the items twice now:
<span class="header-cart-total"><?php echo edd_cart_total(); ?></span> <span class="header-cart edd-cart-quantity"><?php echo edd_get_cart_quantity(); ?></span>
I changed it to:
<span class="header-cart-total"><?php echo edd_get_cart_total(); ?></span> <span class="header-cart edd-cart-quantity"><?php echo edd_get_cart_quantity(); ?></span>
And now it’s back to showing the total price once as it should but the issue is it shows “0” when nothing is in the cart, the original code showed “$0.00” when the cart was empty which is what I want. Was something changed with
edd_cart_total()
in 3.0?
- The topic ‘“edd_cart_total” showing total price twice’ is closed to new replies.