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

#   prices in checkout are duplicated

##

- **[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")**
- [![comyoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1145.png)](/forum/user/1145-comyoo "View comyoo's Profile") Topic Author
- [ Offline](/forum/user/1145-comyoo)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 7 months ago -  11 years 7 months ago [\#193812](#193812) by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile")  *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#193812 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")* was created by *[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")*

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.5.14
-- Browser(s) name and version -- : Chrome 40.0.2214.115
-- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.

After update to this version this problem came:

We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.

Please see screenshot for the problems;
[ ![download.png](/forum/attachment/22918) ](/forum/attachment/22918 "download.png")

There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00

There is no coupon active on that categorie.

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

Last edit: 11 years 7 months ago by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

11 years 7 months ago [\#193817](#193817) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#193817 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hello,
Did you add some code customization on the "Listing_price" / "cart" file of the "product" / "checkout" view of your front-end template via "Hikashop-&gt;Display-&gt;Views" ?
If yes, can you try it withtout your customization ?

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

- **[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")**
- [![comyoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1145.png)](/forum/user/1145-comyoo "View comyoo's Profile") Topic Author
- [ Offline](/forum/user/1145-comyoo)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 7 months ago [\#194032](#194032) by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile")  Replied by *[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#194032 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

No, we don't have any custom views at all.
I already thought that could be a problem, but there isn't any.

Database check gives 'oke'.

Where can I look for the problem?
If you can help me and need login; please send me an email so I can reply on.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTUyNC1wcmljZXMtaW4tY2hlY2tvdXQtYXJlLWR1cGxpY2F0ZWQ/dG1wbD1tYXJrZG93bg==) 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 7 months ago [\#194036](#194036) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#194036 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi,

Don't you have any plugin enabled which could edit the price of the product in the cart ?
If not, please give us a backend and FTP access in order to have a look at the issue.

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

- **[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")**
- [![comyoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1145.png)](/forum/user/1145-comyoo "View comyoo's Profile") Topic Author
- [ Offline](/forum/user/1145-comyoo)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 7 months ago -  11 years 7 months ago [\#194258](#194258) by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile")  Replied by *[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#194258 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi Xavier;

Just submitted the contact form with my credentials; Please have a look at the backend. I don't know if and then which plugin can do that on one categorie.

When can you have a look?

I have set the menu where it is all about on 'special'. Please login also in front-end to view 'Kleding'.

Last edit: 11 years 7 months ago by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile"). Reason: explained where menu 'kleding' is.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTUyNC1wcmljZXMtaW4tY2hlY2tvdXQtYXJlLWR1cGxpY2F0ZWQ/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 7 months ago [\#194289](#194289) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#194289 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi,

We found the issue which happens only with products with characteristics.
Download again the install package of HikaShop via the menu My account&gt;My subscriptions on our website and install it on yours via the Joomla installer and that will add the fix.

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

- **[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")**
- [![comyoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1145.png)](/forum/user/1145-comyoo "View comyoo's Profile") Topic Author
- [ Offline](/forum/user/1145-comyoo)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 7 months ago [\#194456](#194456) by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile")  Replied by *[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#194456 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi Nicolas,
Thanks.

Fix works, except from the shoppingcart and the ., in the price sometimes.

[ ![download&#95;2.png](/forum/attachment/23056) ](/forum/attachment/23056 "download&#95;2.png")

That bug is also in the slider of products on some pages.

- [ ![download&#95;2.png](/forum/attachment/23056) ](/forum/attachment/23056 "download&#95;2.png") [ ](/forum/attachment/23056?download=1 "download&#95;2.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTUyNC1wcmljZXMtaW4tY2hlY2tvdXQtYXJlLWR1cGxpY2F0ZWQ/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 7 months ago [\#194556](#194556) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#194556 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi,

We are not able to reproduce the problem.
If you have a file templates/YOUR_TEMPLATE/html/com_hikashop/product/cart.php on your website, rename it in order to deactivate the view override on the cart module display and that might help avoid the problem.

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

- **[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")**
- [![comyoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1145.png)](/forum/user/1145-comyoo "View comyoo's Profile") Topic Author
- [ Offline](/forum/user/1145-comyoo)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 7 months ago [\#194621](#194621) by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile")  Replied by *[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#194621 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

We don't have any override in the template.

It seems to happen when you are logged in; when you are not logged in the cart is normal; but when logged in there is a ,. of ., in the price and the total is 0,-

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#194688](#194688) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#194688 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi,

It took a while but I finally found your issue.
One plugin, something in your Joomla is changing the locale and break the number locale.
(And change the locale only when the user is logged)

The result is that the local was good when HikaShop process his content but not when Joomla process the modules.
So, that's why the issue was only display for the modules.

The side effects :
- a float converted to a string was not converted properly ; that's why "bccomp" was not working anymore (in order to break a native PHP function, it's already pretty big)
- the conversion made by "sprintf" was not right too ; it results the ".," that you could see.

For the second point I just want to say that it's pretty huge because, we take a float number, you cast it into a string and you use a function which is made to compare big numbers.. And this function does not recognize the number as a float number ; like the locale was partially configured to convert a number in a special way but the function can't even convert it back.

Well, I made several patches in HikaShop (and in your website) in order to pre-convert correctly the data and use as less as possible function which could be affected by a corrupted locale.
It is now display good in your website.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")**
- [![comyoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1145.png)](/forum/user/1145-comyoo "View comyoo's Profile") Topic Author
- [ Offline](/forum/user/1145-comyoo)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 7 months ago [\#194971](#194971) by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile")  Replied by *[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#194971 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi Jerome,

Thanks. Super that you fixed it. Do you know which plugin / module did break the string?

So the conclusion is that Hikashop has now a fix that will not break it again and will also beter work at different enviroments.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTUyNC1wcmljZXMtaW4tY2hlY2tvdXQtYXJlLWR1cGxpY2F0ZWQ/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 7 months ago [\#195621](#195621) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#195621 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi,

We don't know which one it was. We just added the patches so that it doesn't happen anymore in the future.

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

- **[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")**
- [![comyoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1145.png)](/forum/user/1145-comyoo "View comyoo's Profile") Topic Author
- [ Offline](/forum/user/1145-comyoo)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 6 months ago [\#198827](#198827) by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile")  Replied by *[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#198827 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi Nicolas,

My collegue just updates Hikashop with the latest version 2.4.0 of your website and the problem is back;

Prices in cart module are shown with ., in the price and the total is 0,.00 instead of the total of the cart items.

Is the problem not fixed in the new release of Hikashop and only at our website? Can you again have a look?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 6 months ago [\#198844](#198844) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#198844 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi,

HikaShop 2.4.0 has been release on March 3th
[ www.hikashop.com/support/support/documen...ashop-changelog.html](https://www.hikashop.com/support/support/documentation/56-hikashop-changelog.html)

We include the patch in HikaShop in our side but the current available package does not contain that patch yet ; they will be integrated in the next release.
Because you were using HikaShop 2.4.0 and we patched your website ; we didn't think that it was necessary to create an "hot patch" for HikaShop due to the fact that you were the only people currently concerned by that issue.

Like the modification of the hikashop_toFloat in the HikaShop helper Code:

function hikashop_toFloat($val){ if(is_string($val) &amp;&amp; preg_match_all('#-?[0-9]+#',$val,$parts) &amp;&amp; count($parts[0])&gt;1){ $dec=array_pop($parts[0]); return (float) implode('',$parts[0]).'.'.$dec; } return (float) $val; }

Ot the replacement in the class cart from Code:

if(bccomp($cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax, 0, 5) &lt;= 0) {

To Code:

if(hikashop_toFloat($cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax) &lt;= 0) {

There is also a modification in the class currency from Code:

foreach(get_object_vars($total) as $key =&gt; $value){ if(!in_array($key,array('price_currency_id','price_orig_currency_id','price_value_without_discount_with_tax','price_value_without_discount','taxes')) &amp;&amp; isset($price-&gt;$key)){ $total-&gt;$key = $total-&gt;$key + $price-&gt;$key; } }

To Code:

foreach(get_object_vars($total) as $key =&gt; $value){ if(!in_array($key,array('price_currency_id','price_orig_currency_id','price_value_without_discount_with_tax','price_value_without_discount','taxes')) &amp;&amp; isset($price-&gt;$key)){ $total-&gt;$key = $total-&gt;$key + (float)hikashop_toFloat($price-&gt;$key); } }

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")**
- [![comyoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1145.png)](/forum/user/1145-comyoo "View comyoo's Profile") Topic Author
- [ Offline](/forum/user/1145-comyoo)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 6 months ago [\#198950](#198950) by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile")  Replied by *[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#198950 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi thanks for the patched; can you mention the place / location of the files in the filestructure of hikashop?

Then we can patch easily; because there are many helpers.

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

- **[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")**
- [![comyoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1145.png)](/forum/user/1145-comyoo "View comyoo's Profile") Topic Author
- [ Offline](/forum/user/1145-comyoo)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 6 months ago [\#199019](#199019) by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile")  Replied by *[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#199019 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi,

Problem; after patch the total price is not provided; only the shipping costs; now the total is the shipping costs; so the transfer to the bank is only shipping costs instead of total.

Very poor situation; can you help us out?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTUyNC1wcmljZXMtaW4tY2hlY2tvdXQtYXJlLWR1cGxpY2F0ZWQ/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 6 months ago [\#199150](#199150) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#199150 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi,

Please revert your changes. Only one patch is necessary for your issue.
It is to change the line: Code:

$num = sprintf("%0.{$round}f",round($number,$decimals));

to: Code:

$num = number_format(round($number, $decimals), $round, '.', '');

in the file administrator/components/com_hikashop/classes/currency.php
As Jerome said, this patch will be included in next version of HikaShop.

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

- **[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")**
- [![comyoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar1145.png)](/forum/user/1145-comyoo "View comyoo's Profile") Topic Author
- [ Offline](/forum/user/1145-comyoo)

Less More

- Posts: 97
- Thank you received: 0
-
-

11 years 5 months ago [\#203028](#203028) by [comyoo](/forum/user/1145-comyoo "View comyoo's Profile")  Replied by *[comyoo](/forum/user/1145-comyoo "View comyoo's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#203028 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

I just installed the most recent version of hikashop, and the code above does fix the '.,' issue, but I again have the issue with the cart-module showing €0,00 at total (only the module).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NTUyNC1wcmljZXMtaW4tY2hlY2tvdXQtYXJlLWR1cGxpY2F0ZWQ/dG1wbD1tYXJrZG93bg==) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 4 months ago [\#203090](#203090) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[prices in checkout are duplicated](/forum/27-checkout/875524-prices-in-checkout-are-duplicated#203090 "-- HikaShop version -- : 2.4.0 -- Joomla version -- : 3.4.0 -- PHP version -- : 5.5.14 -- Browser(s) name and version -- : Chrome 40.0.2214.115 -- Error-message(debug-mod must be tuned on) -- : error reporting maximum gives blank page.  After update to this version this problem came:  We have one category 'Kleding' (cloth) that gives us problems; when you add a item to the cart the total price is twice the amount of the item.  Please see screenshot for the problems;  There is also a ,. in shopping cart / price so the price has to be 20,00 but it shows: 20,.00  There is no coupon active on that categorie.")*

Hi,

I've checked your website but I don't see the problem there : [ take.ms/E7LlF](http://take.ms/E7LlF)
Am I missing something ?

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

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

[](#top)
