Title: Cart sub total wrong
Last modified: August 31, 2021

---

# Cart sub total wrong

 *  Resolved [Felix G.](https://wordpress.org/support/users/tiiunder/)
 * (@tiiunder)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cart-sub-total-wrong/)
 * Hi,
 * The cart subtotal/total is wrong at the end. It’s removing the decimals. For 
   example if you have 1 product with $12.50 in your cart, the total shows $12.00
 * I found the problem here: /plugins/caddy/public/partials/cc-cart-screen.php in
   line 179.
 * You are casting the sum to an Integer. This way the decimals get removed.
 * A fix would be nice 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Tribe Interactive](https://wordpress.org/support/users/tribeinteractive/)
 * (@tribeinteractive)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/cart-sub-total-wrong/#post-14829475)
 * [@tiiunder](https://wordpress.org/support/users/tiiunder/) thanks for the heads
   up! We’ll get this looked at ASAP.
 *  Plugin Author [Tribe Interactive](https://wordpress.org/support/users/tribeinteractive/)
 * (@tribeinteractive)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/cart-sub-total-wrong/#post-14856128)
 * Hi [@tiiunder](https://wordpress.org/support/users/tiiunder/) this has been fixed
   with the latest update. Please update and let us know.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cart sub total wrong’ is closed to new replies.

 * ![](https://ps.w.org/caddy/assets/icon-256x256.png?rev=3288233)
 * [Caddy - Smart Side Cart for WooCommerce](https://wordpress.org/plugins/caddy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/caddy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/caddy/)
 * [Active Topics](https://wordpress.org/support/plugin/caddy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/caddy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/caddy/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Tribe Interactive](https://wordpress.org/support/users/tribeinteractive/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/cart-sub-total-wrong/#post-14856128)
 * Status: resolved