On my website I use USD as primary currency but at the checkout I convert it to EUR (for tax reasons).
This works great only on a few occasions a bug will happen with PayPal.
For example I sold a product for € 10.2411399 (according to the Opencart database)
This is displayed in Admin as € 10.24
But I receive € 10.25 on my PayPal account.
This will give a mismatch of 1 cent.
Because of this mismatch Opencart puts the product in Processing instead of Complete.
Has anyone encountered this behaviour before?
And does anyone know who I might be able to fix this?
This works great only on a few occasions a bug will happen with PayPal.
For example I sold a product for € 10.2411399 (according to the Opencart database)
This is displayed in Admin as € 10.24
But I receive € 10.25 on my PayPal account.
This will give a mismatch of 1 cent.
Because of this mismatch Opencart puts the product in Processing instead of Complete.
Has anyone encountered this behaviour before?
And does anyone know who I might be able to fix this?
All my extensions: Click here or Click here
Yeah your best bet is probably asking a developer from the Commercial Support forum to adjust it so it rounds up instead of down.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
I am a developer myself but are a bit stuck.
Using php round I can get the last 2 numbers after the decimal to round up but I can't get the 7 numbers after the decimal to round up.
Using php round I can get the last 2 numbers after the decimal to round up but I can't get the 7 numbers after the decimal to round up.
All my extensions: Click here or Click here
Code: Select all
round( $amount, 2, PHP_ROUND_HALF_UP )
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Thank you already tried it but doesn’t work.
Because the store amount value in the database has 7 digits behind the decimal point.
And your code sugestion only applies to 2 digits after the decimal point.
It needs to round up the 7 digits after the decimal point but on this I am stuck.
Because the store amount value in the database has 7 digits behind the decimal point.
And your code sugestion only applies to 2 digits after the decimal point.
It needs to round up the 7 digits after the decimal point but on this I am stuck.
All my extensions: Click here or Click here
I have the same problem on a client site(this payment is not very used in this store), but don't have time to work on it.
Please, if you find a solution put it here.
Please, if you find a solution put it here.
Suppliers Module - XML, CSV, XLS Product Feed Import and Update
Rich Snippets | Facebook Open Graph Meta Tags | WebP Images
This issue has been posted before. See if the followed solution solves the issue: viewtopic.php?f=202&t=194404&p=694537&h ... rd#p694537
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 217 guests