News:

Looking for documentation? Take a look on our wiki

Main Menu

Round only display only work in basket and not payment page (Virtuemart 3.X)

Started by marcQC, August 25, 2016, 19:52:48 PM

Previous topic - Next topic

marcQC

Hi,
I have actived "Round only display" in virtuemart 3 to make the total right. The problem is in the paypal payment page, the total is the same as the one in the basket without Round only display checked.

Exemple:
In the basket:
total: 10.19$ (The right total, with Round only display checked)
total: 10.20$ (if Round only display is not checked)

buy on paypal :
total: 10.20$

How can I round the paypal amount to 10.19$ like it's supposed?

Thank you

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

marcQC

I can't find a solution. A lot people finish by editing the code or it was before "Round only display", I wonder why this is apply in the basket, but not on the paypal page.

jjk

Don't know your rounding configuration for currencies, taxes and prices. What happens in your case if you disable 'Round only display'? You may also try to increase the number of decimals in your tax configuration.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

marcQC

Hi

My tax is val tax 14.9750%

if my subtotal is 28$ and that I apply this tax.
28 * 1.149750 = 32.193$

so it should round to 32.19$

When Round only display is disable, the total is 32.20$ (wrong).

When I able "Round only display", it become 32.19$ (right).

but in paypal, the total is 32.20$ in both case (Round only display disable and enable).

So why when "Round only display" is able, the total is not the same in the basket (32.19) and paypal (32.20) when both should be 32.19$.

Thank you!



jjk

Just made a short test with my shop. It displays $32.19 in both, the cart and in the PayPal window when I use the following:

VAT tax 14.9750 %
Final Price set to rounding '2' decimal places
Round only display disabled

Does your subtotal include shipping cost (inclusive VAT tax)?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

marcQC

Quote from: jjk on August 28, 2016, 22:34:43 PM
Just made a short test with my shop. It displays $32.19 in both, the cart and in the PayPal window when I use the following:

VAT tax 14.9750 %
Final Price set to rounding '2' decimal places
Round only display disabled

Does your subtotal include shipping cost (inclusive VAT tax)?

"Final Price set to rounding '2' decimal places" :  Do you mean in Currency Details or else where?


Sorry, I said the subtotal is 28$, but the real subtotal is 20$. I should apply a tax on subtotal (20$) + shipping (8$), so on 28$.

I put some images of my configuration.

Thank you!

jjk

Quote from: marcQC on August 28, 2016, 23:00:31 PM
"Final Price set to rounding '2' decimal places" :  Do you mean in Currency Details or else where?
No, I meant the 'Final salesprice' setting in 'Configuration' > 'Pricing' tab. The '-1' setting uses the rounding from the currency setting. Try '2' instead.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

marcQC

Hi,
I disabled onepage checkout and try to put 2 in Rounding Digits and I still get 32.20$.
I also try with tax per bill and get the same result.

thanks