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

#   Round prices.... but only those above €5,-

##

- **[Formidog](/forum/user/33871-formidog "View Formidog's Profile")**
- [![Formidog's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33871.jpg)](/forum/user/33871-formidog "View Formidog's Profile") Topic Author
- [ Offline](/forum/user/33871-formidog)

Less More

- Posts: 117
- Thank you received: 6
-
-
-
-

11 years 8 months ago [\#194039](#194039) by [Formidog](/forum/user/33871-formidog "View Formidog's Profile")  *[Round prices.... but only those above €5,-](/forum/27-checkout/875557-round-prices-but-only-those-above-eur5#194039 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : all  Good morning all  Is it possible to NOT round prices below €5,00 to the nearest 5c and DO it with amount over €5,00  I want round prices like 29,95 but not round prices like 1,79. I want these to stay as they are  something needs to happen around here, I feel: administrator/components/com&#95;hikashop/classes/currency.php  But what exactly?  Greetz  Dick")* was created by *[Formidog](/forum/user/33871-formidog "View Formidog's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4
-- PHP version -- : 5.3.27
-- Browser(s) name and version -- : all

Good morning all

Is it possible to NOT round prices below €5,00 to the nearest 5c and DO it with amount over €5,00

I want round prices like 29,95 but not round prices like 1,79. I want these to stay as they are

something needs to happen around here, I feel:
administrator/components/com_hikashop/classes/currency.php

But what exactly?

Greetz

Dick

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 8 months ago [\#194096](#194096) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Round prices.... but only those above €5,-](/forum/27-checkout/875557-round-prices-but-only-those-above-eur5#194096 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : all  Good morning all  Is it possible to NOT round prices below €5,00 to the nearest 5c and DO it with amount over €5,00  I want round prices like 29,95 but not round prices like 1,79. I want these to stay as they are  something needs to happen around here, I feel: administrator/components/com&#95;hikashop/classes/currency.php  But what exactly?  Greetz  Dick")*

Hi,

You could potentially edit the function _round() and add: Code:

if($price &gt;= 5) $config-&gt;set('round_calculations',1); else $config-&gt;set('round_calculations',0);

at the top of the function.

The following user(s) said Thank You: [Formidog](/forum/user/33871-formidog "View Formidog's Profile")

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

- **[Formidog](/forum/user/33871-formidog "View Formidog's Profile")**
- [![Formidog's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar33871.jpg)](/forum/user/33871-formidog "View Formidog's Profile") Topic Author
- [ Offline](/forum/user/33871-formidog)

Less More

- Posts: 117
- Thank you received: 6
-
-
-
-

11 years 8 months ago [\#194261](#194261) by [Formidog](/forum/user/33871-formidog "View Formidog's Profile")  Replied by *[Formidog](/forum/user/33871-formidog "View Formidog's Profile")* on topic *[Round prices.... but only those above €5,-](/forum/27-checkout/875557-round-prices-but-only-those-above-eur5#194261 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4 -- PHP version -- : 5.3.27 -- Browser(s) name and version -- : all  Good morning all  Is it possible to NOT round prices below €5,00 to the nearest 5c and DO it with amount over €5,00  I want round prices like 29,95 but not round prices like 1,79. I want these to stay as they are  something needs to happen around here, I feel: administrator/components/com&#95;hikashop/classes/currency.php  But what exactly?  Greetz  Dick")*

Great to get an answer from you, Xavier!
I hope it will work for others too!

Thanks a lot.

I choosed not to hack Hika and keep the core clean.
Because I fill the tables thru FileMaker thru ODBC i opted to script the prices with a Filemaker Function. This works fine too.

Thanks for your replay anyway.
I have to say, coming from VirtueMart, it took me 3 webshops to become friends with HikaShop.
Especially the way HikaShop works with "associated menu's and modules". At first this is rather confusing, when you see the list of menu's and modules growing.

Everyday we live, we learn!

Greetz,
Dick

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTU1Ny1yb3VuZC1wcmljZXMtYnV0LW9ubHktdGhvc2UtYWJvdmUtZXVyNT90bXBsPW1hcmtkb3du) 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.053 seconds

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