[Skip to main content](#vessel-content)

#   Round Price

##

- **[florcar](/forum/user/35585-florcar "View florcar's Profile")**
- [![florcar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35585-florcar "View florcar's Profile") Topic Author
- [ Offline](/forum/user/35585-florcar)

Less More

- Posts: 62
- Thank you received: 1
-
-

11 years 6 months ago [\#200374](#200374) by [florcar](/forum/user/35585-florcar "View florcar's Profile")  *[Round Price](/forum/27-checkout/876704-round-price#200374 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")* was created by *[florcar](/forum/user/35585-florcar "View florcar's Profile")*

-- url of the page with the problem -- : [ www.fabulosa.ch](http://www.fabulosa.ch)
-- HikaShop version -- : HikaShop Business: 2.4.0
-- Joomla version -- : 3.4.1
-- PHP version -- : 5.4.32

Hi

Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?

Thanks in advance
florcar

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

11 years 6 months ago [\#200389](#200389) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#200389 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi,

Yes. Edit your currency via the menu System&gt;Currencies and change the "Rounding increment" option to 0.05 and the system will round the elements by steps of 5 cents.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[florcar](/forum/user/35585-florcar "View florcar's Profile")**
- [![florcar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35585-florcar "View florcar's Profile") Topic Author
- [ Offline](/forum/user/35585-florcar)

Less More

- Posts: 62
- Thank you received: 1
-
-

11 years 6 months ago [\#200487](#200487) by [florcar](/forum/user/35585-florcar "View florcar's Profile")  Replied by *[florcar](/forum/user/35585-florcar "View florcar's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#200487 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi nicolas

Thanks for the answer. I changed it to 0.05 in the options of swiss franc. But unfortunately nothing happened. It still shows the price for example:
Product Price: 39.8 CHF
voucher: 10% = 3.98 CHF
Price=35.92 CHF

regards
florcar

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

11 years 6 months ago [\#200495](#200495) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#200495 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi,

Please make sure that you have the "round prices during calculations" option turned on in the HikaShop configuration.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[florcar](/forum/user/35585-florcar "View florcar's Profile")**
- [![florcar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35585-florcar "View florcar's Profile") Topic Author
- [ Offline](/forum/user/35585-florcar)

Less More

- Posts: 62
- Thank you received: 1
-
-

11 years 6 months ago [\#200569](#200569) by [florcar](/forum/user/35585-florcar "View florcar's Profile")  Replied by *[florcar](/forum/user/35585-florcar "View florcar's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#200569 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi nicolas

If you mean in the main configuration under taxes, it is turned on.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[florcar](/forum/user/35585-florcar "View florcar's Profile")**
- [![florcar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35585-florcar "View florcar's Profile") Topic Author
- [ Offline](/forum/user/35585-florcar)

Less More

- Posts: 62
- Thank you received: 1
-
-

11 years 6 months ago [\#200661](#200661) by [florcar](/forum/user/35585-florcar "View florcar's Profile")  Replied by *[florcar](/forum/user/35585-florcar "View florcar's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#200661 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi nicolas

I would really appreciate you could help me with this.
Let me know if you need a login.

Regards

Florian

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[florcar](/forum/user/35585-florcar "View florcar's Profile")**
- [![florcar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35585-florcar "View florcar's Profile") Topic Author
- [ Offline](/forum/user/35585-florcar)

Less More

- Posts: 62
- Thank you received: 1
-
-

11 years 6 months ago [\#200856](#200856) by [florcar](/forum/user/35585-florcar "View florcar's Profile")  Replied by *[florcar](/forum/user/35585-florcar "View florcar's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#200856 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hello

I dont want to stress anybody. I know you have a lot of requests and the support is free and by the way awesome.
But this rounding Problem is a big issue on my site. So I would really appreciate any help ![:)](/media/kunena/emoticons/3.png ":)")

Regards
florcar

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[florcar](/forum/user/35585-florcar "View florcar's Profile")**
- [![florcar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35585-florcar "View florcar's Profile") Topic Author
- [ Offline](/forum/user/35585-florcar)

Less More

- Posts: 62
- Thank you received: 1
-
-

11 years 6 months ago -  11 years 6 months ago [\#201220](#201220) by [florcar](/forum/user/35585-florcar "View florcar's Profile")  Replied by *[florcar](/forum/user/35585-florcar "View florcar's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#201220 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hello

Maybe the pictures in the attachement will show my problem more clear.

Regards
florcar

- [ ![Einstellung1.png](/forum/attachment/24303) ](/forum/attachment/24303 "Einstellung1.png") [ ](/forum/attachment/24303?download=1 "Einstellung1.png")
- [ ![Einstellung2.png](/forum/attachment/24304) ](/forum/attachment/24304 "Einstellung2.png") [ ](/forum/attachment/24304?download=1 "Einstellung2.png")
- [ ![Resultat1.png](/forum/attachment/24305) ](/forum/attachment/24305 "Resultat1.png") [ ](/forum/attachment/24305?download=1 "Resultat1.png")
- [ ![Resultat2.png](/forum/attachment/24306) ](/forum/attachment/24306 "Resultat2.png") [ ](/forum/attachment/24306?download=1 "Resultat2.png")

Last edit: 11 years 6 months ago by [florcar](/forum/user/35585-florcar "View florcar's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[florcar](/forum/user/35585-florcar "View florcar's Profile")**
- [![florcar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35585-florcar "View florcar's Profile") Topic Author
- [ Offline](/forum/user/35585-florcar)

Less More

- Posts: 62
- Thank you received: 1
-
-

11 years 5 months ago [\#202055](#202055) by [florcar](/forum/user/35585-florcar "View florcar's Profile")  Replied by *[florcar](/forum/user/35585-florcar "View florcar's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#202055 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

No help? ![:(](/media/kunena/emoticons/22.png ":(")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

11 years 5 months ago [\#202240](#202240) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#202240 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi,

Sorry for the delay. Such calculations issue is quite complex to debug so it took quite some time to debug, analyze and fix, and the French JoomlaDay was also in the middle...
Here is a zip with two files with the several fixes that were needed to fix that.
You'll need to replace them in the folder administrator/components/com_hikashop/classes/
Please make a backup of the original files in case there is a problem as these are complex changes and even though I did test them, it doesn't mean that I was able to cover all the edge cases.

*This attachment is hidden for guests.
Please log in or register to see it.*

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[florcar](/forum/user/35585-florcar "View florcar's Profile")**
- [![florcar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35585-florcar "View florcar's Profile") Topic Author
- [ Offline](/forum/user/35585-florcar)

Less More

- Posts: 62
- Thank you received: 1
-
-

11 years 5 months ago [\#202250](#202250) by [florcar](/forum/user/35585-florcar "View florcar's Profile")  Replied by *[florcar](/forum/user/35585-florcar "View florcar's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#202250 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi Nicolas

Thanks a lot for the solution and the efforts. And dont worry for the delay.
I replaced the attached files and it seems to work for the discounts. But unfortunately it has no effect on the payment fees. See attached Image.

Regards

- [ ![problem3.png](/forum/attachment/24485) ](/forum/attachment/24485 "problem3.png") [ ](/forum/attachment/24485?download=1 "problem3.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

11 years 5 months ago -  11 years 5 months ago [\#202331](#202331) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#202331 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi,

Ah yes, here are the files to put in the same folder to fix it for the payment fees.

*This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 11 years 5 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[florcar](/forum/user/35585-florcar "View florcar's Profile")**
- [![florcar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35585-florcar "View florcar's Profile") Topic Author
- [ Offline](/forum/user/35585-florcar)

Less More

- Posts: 62
- Thank you received: 1
-
-

11 years 5 months ago [\#202352](#202352) by [florcar](/forum/user/35585-florcar "View florcar's Profile")  Replied by *[florcar](/forum/user/35585-florcar "View florcar's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#202352 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi nicolas

The problem still exists on the listing of the final price. The payment fee is correctly rounded in the "Choose the payment method" but unfortunately not at the final price :blush:
See attached image.

Regards
florcar

- [ ![problem&#95;2015-05-20.png](/forum/attachment/24499) ](/forum/attachment/24499 "...2015-05-20.png") [ ](/forum/attachment/24499?download=1 "...2015-05-20.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

11 years 5 months ago [\#202353](#202353) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#202353 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi,

Mmmm. I don't have the issue on my end.
Try to change the line:
$paymentData-&gt;payment_price = ($price_all * (float)@$paymentData-&gt;payment_params-&gt;payment_percentage / 100) + $paymentData-&gt;payment_price;

to:
$paymentData-&gt;payment_price = $currencyClass-&gt;_round(($price_all * (float)@$paymentData-&gt;payment_params-&gt;payment_percentage / 100) + $paymentData-&gt;payment_price,$currencyClass-&gt;getRounding($currency,true));;

in the file components/com_hikashop/controllers/checkout.php and see if that helps.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[florcar](/forum/user/35585-florcar "View florcar's Profile")**
- [![florcar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35585-florcar "View florcar's Profile") Topic Author
- [ Offline](/forum/user/35585-florcar)

Less More

- Posts: 62
- Thank you received: 1
-
-

11 years 5 months ago [\#202435](#202435) by [florcar](/forum/user/35585-florcar "View florcar's Profile")  Replied by *[florcar](/forum/user/35585-florcar "View florcar's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#202435 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi

No, it didnt change anything :blush:
I think you have one semicolon too much in your code. I tried both but it didnt work anyways.

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86556
- Thank you received: 14304
-
-

11 years 5 months ago -  11 years 5 months ago [\#202453](#202453) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#202453 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi,

Try like this instead:
$paymentData-&gt;payment_price = $currencyClass-&gt;_round(($price_all * (float)@$paymentData-&gt;payment_params-&gt;payment_percentage / 100) + $paymentData-&gt;payment_price,$currencyClass-&gt;getRounding(hikashop_getCurrency(),true));

If that still doesn't help, please provide a FTP access to your website via our contact form with a link to this thread so that we can directly look at the problem because we're shooting in the dark like that.

Last edit: 11 years 5 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

The following user(s) said Thank You: [florcar](/forum/user/35585-florcar "View florcar's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[florcar](/forum/user/35585-florcar "View florcar's Profile")**
- [![florcar's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35585-florcar "View florcar's Profile") Topic Author
- [ Offline](/forum/user/35585-florcar)

Less More

- Posts: 62
- Thank you received: 1
-
-

11 years 5 months ago [\#202523](#202523) by [florcar](/forum/user/35585-florcar "View florcar's Profile")  Replied by *[florcar](/forum/user/35585-florcar "View florcar's Profile")* on topic *[Round Price](/forum/27-checkout/876704-round-price#202523 "-- url of the page with the problem -- :   www.fabulosa.ch  -- HikaShop version -- : HikaShop Business: 2.4.0 -- Joomla version -- : 3.4.1 -- PHP version -- : 5.4.32  Hi  Is it possible to round the Price after a coupon, payment fee, etc. for example from 20.03 CHF to 20.05 CHF?  Thanks in advance florcar")*

Hi Nicolas

Now it seems to work ![:)](/media/kunena/emoticons/3.png ":)") -&gt; Problem solved
Thank you for your great support.

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2NoZWNrb3V0Lzg3NjcwNC1yb3VuZC1wcmljZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.086 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
