jadess Posted November 15, 2011 Share Posted November 15, 2011 Just discovered a problem. Say my taxes are $2.625. Prestashop rounds it to $2.63. However, when one pays with Google Checkout, Google Checkout rounds it to $2.62. So when the order is submitted, a payment error is thrown. Did some research and came across this - http://code.google.c...ing_Policy.html I'm guessing the problem is I need "HALF UP" rounding mode but Google Checkout isn't using it. Does anyone know how to modify the GC module so I can use Half Up rounding mode? Link to comment Share on other sites More sharing options...
jadess Posted November 15, 2011 Author Share Posted November 15, 2011 I think I got it.. In googlecart.php within /modules/gcheckout/lbrary/.. replaced theses lines: if (($this->rounding_mode != "") && ($this->rounding_rule != "")) { $xml_data->Push('rounding-policy'); $xml_data->Element('mode', $this->rounding_mode); $xml_data->Element('rule', $this->rounding_rule); $xml_data->Pop('rounding-policy'); } with this: $xml_data->Push('rounding-policy'); $xml_data->Element('mode', 'HALF_UP'); $xml_data->Element('rule', 'TOTAL'); $xml_data->Pop('rounding-policy'); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now