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

#   HIKASHOP CHECKOUT CART FINAL TOTAL PROBLEM

##

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

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 8 months ago [\#39280](#39280) by [bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")  *[HIKASHOP CHECKOUT CART FINAL TOTAL PROBLEM](/forum/3-bug-report/39280-hikashop-checkout-cart-final-total-problem#39280 "Hi,  I have problem on the checkout cart final total which the total always show 0. It's weird that when I run the website on my local server, it's run well, but when I run the website on my host server in the internet the total are not working well and show 0. It's also weird when i add cart the items with price lower than 10.000.000 IDR, there are no problem at all, but when I add cart the items with price higher than 10.000.000 the total are show 0 again.  Any advice on this?  Thanks, Bobby")* was created by *[bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")*

Hi,

I have problem on the checkout cart final total which the total always show 0.
It's weird that when I run the website on my local server, it's run well, but when I run the website on my host server in the internet the total are not working well and show 0.
It's also weird when i add cart the items with price lower than 10.000.000 IDR, there are no problem at all, but when I add cart the items with price higher than 10.000.000 the total are show 0 again.

Any advice on this?

Thanks,
Bobby

[ ![Picture10.jpg](/forum/attachment/2730) ](/forum/attachment/2730 "Picture10.jpg")

[ ![Picture9.jpg](/forum/attachment/2731) ](/forum/attachment/2731 "Picture9.jpg")

- [ ![Picture10.jpg](/forum/attachment/2730) ](/forum/attachment/2730 "Picture10.jpg") [ ](/forum/attachment/2730?download=1 "Picture10.jpg")
- [ ![Picture9.jpg](/forum/attachment/2731) ](/forum/attachment/2731 "Picture9.jpg") [ ](/forum/attachment/2731?download=1 "Picture9.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zOTI4MC1oaWthc2hvcC1jaGVja291dC1jYXJ0LWZpbmFsLXRvdGFsLXByb2JsZW0/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 8 months ago [\#39288](#39288) by [bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")  Replied by *[bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")* on topic *[Re: HIKASHOP CHECKOUT CART FINAL TOTAL PROBLEM](/forum/3-bug-report/39280-hikashop-checkout-cart-final-total-problem#39288 "Hi,  I have problem on the checkout cart final total which the total always show 0. It's weird that when I run the website on my local server, it's run well, but when I run the website on my host server in the internet the total are not working well and show 0. It's also weird when i add cart the items with price lower than 10.000.000 IDR, there are no problem at all, but when I add cart the items with price higher than 10.000.000 the total are show 0 again.  Any advice on this?  Thanks, Bobby")*

I also found another clue, when I input the price 12000000, the next field "price with tax" become 1.2E+7.
But when I input 13000000, the next field "price with tax" are normally automatic shown 13000000 too.
So what's wrong with number 12000000?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zOTI4MC1oaWthc2hvcC1jaGVja291dC1jYXJ0LWZpbmFsLXRvdGFsLXByb2JsZW0/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 8 months ago [\#39290](#39290) by [bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")  Replied by *[bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")* on topic *[Re: HIKASHOP CHECKOUT CART FINAL TOTAL PROBLEM](/forum/3-bug-report/39280-hikashop-checkout-cart-final-total-problem#39290 "Hi,  I have problem on the checkout cart final total which the total always show 0. It's weird that when I run the website on my local server, it's run well, but when I run the website on my host server in the internet the total are not working well and show 0. It's also weird when i add cart the items with price lower than 10.000.000 IDR, there are no problem at all, but when I add cart the items with price higher than 10.000.000 the total are show 0 again.  Any advice on this?  Thanks, Bobby")*

Numbers below are problem when insert into the price items product and also when it calculate total :

12000000 became 1.2E+7
14000000 became 1.4E+7
17000000 became 1.7E+7
19000000 became 1.9E+7

23000000 became 2.3E+7
24000000 became 2.4E+7
28000000 became 2.8E+7
29000000 became 2.9E+7

33000000 became 3.3E+7
34000000 became 3.4E+7
38000000 became 3.8E+7
39000000 became 3.9E+7

those numbers make the total became zero 0 ![:(](/media/kunena/emoticons/22.png ":(")

any advice on this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zOTI4MC1oaWthc2hvcC1jaGVja291dC1jYXJ0LWZpbmFsLXRvdGFsLXByb2JsZW0/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 8 months ago [\#40136](#40136) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: HIKASHOP CHECKOUT CART FINAL TOTAL PROBLEM](/forum/3-bug-report/39280-hikashop-checkout-cart-final-total-problem#40136 "Hi,  I have problem on the checkout cart final total which the total always show 0. It's weird that when I run the website on my local server, it's run well, but when I run the website on my host server in the internet the total are not working well and show 0. It's also weird when i add cart the items with price lower than 10.000.000 IDR, there are no problem at all, but when I add cart the items with price higher than 10.000.000 the total are show 0 again.  Any advice on this?  Thanks, Bobby")*

Sorry for the delay. I had actually already replied to you but it seems that it didn't work....

That's because your numbers are too big. You' ll have to edit all the decimal fields of the hikashop tables via your phpmyadmin and change their length from 12.5 to 16.5

That should fix your problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zOTI4MC1oaWthc2hvcC1jaGVja291dC1jYXJ0LWZpbmFsLXRvdGFsLXByb2JsZW0/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 8 months ago [\#40154](#40154) by [bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")  Replied by *[bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")* on topic *[Re: HIKASHOP CHECKOUT CART FINAL TOTAL PROBLEM](/forum/3-bug-report/39280-hikashop-checkout-cart-final-total-problem#40154 "Hi,  I have problem on the checkout cart final total which the total always show 0. It's weird that when I run the website on my local server, it's run well, but when I run the website on my host server in the internet the total are not working well and show 0. It's also weird when i add cart the items with price lower than 10.000.000 IDR, there are no problem at all, but when I add cart the items with price higher than 10.000.000 the total are show 0 again.  Any advice on this?  Thanks, Bobby")*

Hi Nicolas,

I have changed the length from 12.5 to 16.5 but it still problem.
Anyway just those numbers below i have mention previously are problem, others numbers with same length digit are ok.

any advice?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zOTI4MC1oaWthc2hvcC1jaGVja291dC1jYXJ0LWZpbmFsLXRvdGFsLXByb2JsZW0/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 8 months ago [\#40238](#40238) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: HIKASHOP CHECKOUT CART FINAL TOTAL PROBLEM](/forum/3-bug-report/39280-hikashop-checkout-cart-final-total-problem#40238 "Hi,  I have problem on the checkout cart final total which the total always show 0. It's weird that when I run the website on my local server, it's run well, but when I run the website on my host server in the internet the total are not working well and show 0. It's also weird when i add cart the items with price lower than 10.000.000 IDR, there are no problem at all, but when I add cart the items with price higher than 10.000.000 the total are show 0 again.  Any advice on this?  Thanks, Bobby")*

I tried on my end but I don't have any problems with these numbers.

Could you do a screenshot of your currency options editions screen so that we can see how you set up your currency. Maybe it comes from one of the settings there...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zOTI4MC1oaWthc2hvcC1jaGVja291dC1jYXJ0LWZpbmFsLXRvdGFsLXByb2JsZW0/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 8 months ago [\#40242](#40242) by [bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")  Replied by *[bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")* on topic *[Re: HIKASHOP CHECKOUT CART FINAL TOTAL PROBLEM](/forum/3-bug-report/39280-hikashop-checkout-cart-final-total-problem#40242 "Hi,  I have problem on the checkout cart final total which the total always show 0. It's weird that when I run the website on my local server, it's run well, but when I run the website on my host server in the internet the total are not working well and show 0. It's also weird when i add cart the items with price lower than 10.000.000 IDR, there are no problem at all, but when I add cart the items with price higher than 10.000.000 the total are show 0 again.  Any advice on this?  Thanks, Bobby")*

Sure. I choose indonesia rupiah currency. Attached the screen shot of the configuration.
Any advice?
[ ![currencyconfiguration.jpg](/forum/attachment/2833) ](/forum/attachment/2833 "...figuration.jpg")

- [ ![currencyconfiguration.jpg](/forum/attachment/2833) ](/forum/attachment/2833 "...figuration.jpg") [ ](/forum/attachment/2833?download=1 "...figuration.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zOTI4MC1oaWthc2hvcC1jaGVja291dC1jYXJ0LWZpbmFsLXRvdGFsLXByb2JsZW0/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 8 months ago [\#40245](#40245) by [bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")  Replied by *[bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")* on topic *[Re: HIKASHOP CHECKOUT CART FINAL TOTAL PROBLEM](/forum/3-bug-report/39280-hikashop-checkout-cart-final-total-problem#40245 "Hi,  I have problem on the checkout cart final total which the total always show 0. It's weird that when I run the website on my local server, it's run well, but when I run the website on my host server in the internet the total are not working well and show 0. It's also weird when i add cart the items with price lower than 10.000.000 IDR, there are no problem at all, but when I add cart the items with price higher than 10.000.000 the total are show 0 again.  Any advice on this?  Thanks, Bobby")*

here some clue, it's weird when I input price on product with number 13000000 its automatic show on the next field 13000000 but when i input with number 12000000 its automatic show on the next field 1.2E+7. I think it's related with the problem i faced now.

[ ![onproduct-12000000.jpg](/forum/attachment/2834) ](/forum/attachment/2834 "...t-12000000.jpg")

[ ![onproduct-13000000.jpg](/forum/attachment/2835) ](/forum/attachment/2835 "...t-13000000.jpg")

- [ ![onproduct-12000000.jpg](/forum/attachment/2834) ](/forum/attachment/2834 "...t-12000000.jpg") [ ](/forum/attachment/2834?download=1 "...t-12000000.jpg")
- [ ![onproduct-13000000.jpg](/forum/attachment/2835) ](/forum/attachment/2835 "...t-13000000.jpg") [ ](/forum/attachment/2835?download=1 "...t-13000000.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zOTI4MC1oaWthc2hvcC1jaGVja291dC1jYXJ0LWZpbmFsLXRvdGFsLXByb2JsZW0/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) or [Create an account](/register) 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: 86322
- Thank you received: 14281
-
-

14 years 8 months ago [\#40262](#40262) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: HIKASHOP CHECKOUT CART FINAL TOTAL PROBLEM](/forum/3-bug-report/39280-hikashop-checkout-cart-final-total-problem#40262 "Hi,  I have problem on the checkout cart final total which the total always show 0. It's weird that when I run the website on my local server, it's run well, but when I run the website on my host server in the internet the total are not working well and show 0. It's also weird when i add cart the items with price lower than 10.000.000 IDR, there are no problem at all, but when I add cart the items with price higher than 10.000.000 the total are show 0 again.  Any advice on this?  Thanks, Bobby")*

Thank you for the information.

We were able to reproduce the problem.
Please change the lines (there are several of them):
if(bccomp($cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,0,5)&lt;=0){

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

in the file administrator/components/com_hikashop/classes/cart.php

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zOTI4MC1oaWthc2hvcC1jaGVja291dC1jYXJ0LWZpbmFsLXRvdGFsLXByb2JsZW0/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 8
- Thank you received: 0
-
-

14 years 8 months ago [\#40497](#40497) by [bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")  Replied by *[bchandra83](/forum/user/6137-bchandra83 "View bchandra83's Profile")* on topic *[Re: HIKASHOP CHECKOUT CART FINAL TOTAL PROBLEM](/forum/3-bug-report/39280-hikashop-checkout-cart-final-total-problem#40497 "Hi,  I have problem on the checkout cart final total which the total always show 0. It's weird that when I run the website on my local server, it's run well, but when I run the website on my host server in the internet the total are not working well and show 0. It's also weird when i add cart the items with price lower than 10.000.000 IDR, there are no problem at all, but when I add cart the items with price higher than 10.000.000 the total are show 0 again.  Any advice on this?  Thanks, Bobby")*

It WORKS !!! Thanks a lot Nicolas ...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zOTI4MC1oaWthc2hvcC1jaGVja291dC1jYXJ0LWZpbmFsLXRvdGFsLXByb2JsZW0/bGFuZz1lbiZ0bXBsPW1hcmtkb3du) or [Create an account](/register) 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.072 seconds

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