Latest Extensions
View
All
Stripe Tax
ClearThinking
$69.99 $59.99
PayPal Payment Gateway
ClearThinking
$44.99 $39.99

Rounding Bug Fix

Rounding Bug Fix
Price: $22.99 $19.99
Rating:
5
Category:Other Improvements
Date Added:2022-05-31
Developer:(contact this developer)ClearThinking
Free Updates and Support For:1 Year
Requires Core File Modifications:ocMod
Demo Links:
Licenses:  
Rounding Bug Fix Rounding Bug Fix Rounding Bug Fix

Description



Current Version: v303.1 (release notes)

OpenCart Versions: 1.5.0.x - 3.0.3.x

This modification fixes a rounding bug present in all OpenCart versions. The bug occurs because OpenCart stores prices internally with more than 2 decimal places. When using a non-default currency or applying tax to an order, these percentage-based price adjustments can result in rounding errors because OpenCart only rounds the final values for display (instead of the values stored internally).

  • Upload and go — utilizes ocMod (or vQmod for OpenCart 1.5) so no core file modifications are necessary.

  • Fixes rounding issues for product quantity discounts (i.e. those set up in the Discount tab of the product data) or Special prices with more than 2 decimals.

  • Fixes rounding issues for the "Total" line item due to currency conversions or tax calculations.

  • Automatically affects the cart page, cart module, and checkout pages.

  • Rounded values will be stored in the database once the order is placed, so they will be accurate in the admin panel and order invoice, as well.

  • The extension needs no admin panel since there are no configurable settings. The modification will start working as soon as the ocMod/vQmod file is installed and activated.

Comments