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

#   Error message when using taxcloud

##

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 5 months ago [\#158185](#158185) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  *[Error message when using taxcloud](/forum/40-taxes/868647-error-message-when-using-taxcloud#158185 "When I enable taxcloud I receive the following error when going through checkout. The error displays twice.  Warning: Division by zero in /home/inkaco5/public&#95;html/testing/consilium/plugins/hikashop/taxcloud/taxcloud.php on line 216")* was created by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")*

When I enable taxcloud I receive the following error when going through checkout. The error displays twice.

Warning: Division by zero in /home/inkaco5/public_html/testing/consilium/plugins/hikashop/taxcloud/taxcloud.php on line 216

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2ODY0Ny1lcnJvci1tZXNzYWdlLXdoZW4tdXNpbmctdGF4Y2xvdWQ/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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#158186](#158186) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Error message when using taxcloud](/forum/40-taxes/868647-error-message-when-using-taxcloud#158186 "When I enable taxcloud I receive the following error when going through checkout. The error displays twice.  Warning: Division by zero in /home/inkaco5/public&#95;html/testing/consilium/plugins/hikashop/taxcloud/taxcloud.php on line 216")*

Hi,

Which HikaShop version number are you using ?
(Because we made some fixes in the TaxCloud plugin in recent builds.)

Regards,

---

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

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 5 months ago [\#158225](#158225) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Error message when using taxcloud](/forum/40-taxes/868647-error-message-when-using-taxcloud#158225 "When I enable taxcloud I receive the following error when going through checkout. The error displays twice.  Warning: Division by zero in /home/inkaco5/public&#95;html/testing/consilium/plugins/hikashop/taxcloud/taxcloud.php on line 216")*

I am using Hikashop essential 2.3.0

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 5 months ago -  12 years 5 months ago [\#158257](#158257) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Error message when using taxcloud](/forum/40-taxes/868647-error-message-when-using-taxcloud#158257 "When I enable taxcloud I receive the following error when going through checkout. The error displays twice.  Warning: Division by zero in /home/inkaco5/public&#95;html/testing/consilium/plugins/hikashop/taxcloud/taxcloud.php on line 216")*

Upgrading to 2.3.1 fixed the problem. Now I need it configured for international orders. When I use an international address, I get the error

TaxCloud error : The destination zip must be 5 numbers (GU2 8SG)

I don't think it is necessary to charge taxes outside when delivering outside the US. I can hide this error message using javascript, is there a better way to do it that you can tell me? Does the Taxcloud plugin have a way to be configured for international orders?

Last edit: 12 years 5 months ago by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile"). Reason: New Question about Taxcloud and international orders

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2ODY0Ny1lcnJvci1tZXNzYWdlLXdoZW4tdXNpbmctdGF4Y2xvdWQ/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: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 5 months ago [\#158262](#158262) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Error message when using taxcloud](/forum/40-taxes/868647-error-message-when-using-taxcloud#158262 "When I enable taxcloud I receive the following error when going through checkout. The error displays twice.  Warning: Division by zero in /home/inkaco5/public&#95;html/testing/consilium/plugins/hikashop/taxcloud/taxcloud.php on line 216")*

Hi,

When you use an international address, the country shouldn't be "united states" and the tax cloud plugin won't be triggered.

Regards,

---

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

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 5 months ago [\#158264](#158264) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Error message when using taxcloud](/forum/40-taxes/868647-error-message-when-using-taxcloud#158264 "When I enable taxcloud I receive the following error when going through checkout. The error displays twice.  Warning: Division by zero in /home/inkaco5/public&#95;html/testing/consilium/plugins/hikashop/taxcloud/taxcloud.php on line 216")*

I assure you I have the country set as anything other than the US. I have tried both the United Kingdom and Tonga, both throw the same error.

You can give it a shot at [ www.inkacollective.com/testing/consilium...roducts-listing.html](http://www.inkacollective.com/testing/consilium/index.php/products-listing.html)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzg2ODY0Ny1lcnJvci1tZXNzYWdlLXdoZW4tdXNpbmctdGF4Y2xvdWQ/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
-
-
-

12 years 5 months ago [\#158414](#158414) 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 *[Error message when using taxcloud](/forum/40-taxes/868647-error-message-when-using-taxcloud#158414 "When I enable taxcloud I receive the following error when going through checkout. The error displays twice.  Warning: Division by zero in /home/inkaco5/public&#95;html/testing/consilium/plugins/hikashop/taxcloud/taxcloud.php on line 216")*

Hello,
Can you edit the code of your "\plugins\hikashop\taxcloud\taxcloud.php" file, and change these lines : Code:

protected function lookup(&amp;$cart) { if(!$this-&gt;initSoap()) return false; $app = JFactory::getApplication(); if(!$this-&gt;loadOptions()){ return false; } //$this-&gt;loadTIC(); $user_id = hikashop_loadUser(false); $usps_address = $app-&gt;getUserState(HIKASHOP_COMPONENT.'.taxcloud.full_address', null); if(empty($usps_address)){ $address = $this-&gt;loadAddress(); if(empty($address)) return false;

By : Code:

protected function lookup(&amp;$cart) { if(!$this-&gt;initSoap()) return false; $address = $this-&gt;loadAddress(); if(empty($address)) return false; if($address-&gt;address_country-&gt;zone_code_3 != 'USA') return true; $app = JFactory::getApplication(); if(!$this-&gt;loadOptions()){ return false; } //$this-&gt;loadTIC(); $user_id = hikashop_loadUser(false); $usps_address = $app-&gt;getUserState(HIKASHOP_COMPONENT.'.taxcloud.full_address', null); if(empty($usps_address)){

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 5 months ago [\#158435](#158435) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Error message when using taxcloud](/forum/40-taxes/868647-error-message-when-using-taxcloud#158435 "When I enable taxcloud I receive the following error when going through checkout. The error displays twice.  Warning: Division by zero in /home/inkaco5/public&#95;html/testing/consilium/plugins/hikashop/taxcloud/taxcloud.php on line 216")*

Ok. That appears to have fixed it. Thanks.

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

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

Less More

- Posts: 75
- Thank you received: 2
-
-

12 years 4 months ago -  12 years 4 months ago [\#162072](#162072) by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")  Replied by *[rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile")* on topic *[Error message when using taxcloud](/forum/40-taxes/868647-error-message-when-using-taxcloud#162072 "When I enable taxcloud I receive the following error when going through checkout. The error displays twice.  Warning: Division by zero in /home/inkaco5/public&#95;html/testing/consilium/plugins/hikashop/taxcloud/taxcloud.php on line 216")*

I had the same problem after upgrading to Hikashop Business after upgrading.

TaxCloud error : The destination zip must be 5 numbers (BUA 819)

I had to re-edit the taxcloud.php file with the fix above.

Last edit: 12 years 4 months ago by [rodopemu](/forum/user/32168-rodopemu "View rodopemu's Profile").

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

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