Mini-Plugin: WooCommerce Cart Set Subtotal to Total

Last Updated on: 15th April 2020, 04:20 pm

This is a mini plugin that sets the subtotal in your WooCommerce cart always to the value of the total amount. PHP can have trouble with rounding your price amounts, especially when your shop uses lower, odd price values like 1,99 or 2,73. Add tax calculations to this and you might encounter rounding issues in cart and checkout of your WooCommerce shop.

This mini plugin masks this behaviour.


Download WooCommerce Cart Set Subtotal to Total

Tested with:
WordPress 4.7
WooCommerce 2.6.13

WooCommerce Rounding

Somebody pointed out to me that this WooCommerce rounding snippet goes well with my plugin.

Leave a Reply

Your email address will not be published. Required fields are marked *

Con Schneider