Rounding Problem For Point Payment

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
6 years 9 months ago #286566

-- HikaShop version -- : 3.2.2
-- Joomla version -- : 3.8.2
-- PHP version -- : 5.4.45

Hi
Case like this , when our order is $79.80, we used point payment method for payment

It is not deducted as 79.80 point, 80 points is deducted

How can we make it deduct exactly as 79.80?

We saw that there is a rounding field in point payment method, what is the value we should enter?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 9 months ago #286568

Hi,

User points are handled as integers (no decimals).
The only solution would be to configure your points plugins so that 1 points equal 1 cent instead of 1 point equal 1 dollar.

Please Log in or Create an account to join the conversation.

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
6 years 9 months ago #286633

if that is the case......what is the meaning of the rounding field?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
6 years 9 months ago #286642

Hi,

I suppose that you're talking about the option:

Points round down will force a round down on the number of points that the customer could earn

www.hikashop.com/support/documentation/257-using-points.html
So when you have it off, it rounds normally:
from 10.0 to 10.499999 it's rounded to 10 and from 10.5 to 10.99999 it's rounded to 11.
But when you have it on, it rounds down the points:
from 10.0 to 10.99999 it's rounded to 10.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum