Skip to main content

Error message when using taxcloud

12 years 5 months ago #158185 by rodopemu
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 or Create an account to join the conversation.

12 years 5 months ago #158186 by Jerome
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 & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

12 years 5 months ago #158225 by rodopemu
I am using Hikashop essential 2.3.0

Please Log in or Create an account to join the conversation.

12 years 5 months ago - 12 years 5 months ago #158257 by rodopemu
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. Reason: New Question about Taxcloud and international orders

Please Log in or Create an account to join the conversation.

12 years 5 months ago #158262 by Jerome
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 & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

12 years 5 months ago #158264 by rodopemu
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

Please Log in or Create an account to join the conversation.

12 years 5 months ago #158414 by Mohamed Thelji
Hello,
Can you edit the code of your "\plugins\hikashop\taxcloud\taxcloud.php" file, and change these lines :
Code:
protected function lookup(&$cart) { if(!$this->initSoap()) return false; $app = JFactory::getApplication(); if(!$this->loadOptions()){ return false; } //$this->loadTIC(); $user_id = hikashop_loadUser(false); $usps_address = $app->getUserState(HIKASHOP_COMPONENT.'.taxcloud.full_address', null); if(empty($usps_address)){ $address = $this->loadAddress(); if(empty($address)) return false;
By :
Code:
protected function lookup(&$cart) { if(!$this->initSoap()) return false; $address = $this->loadAddress(); if(empty($address)) return false; if($address->address_country->zone_code_3 != 'USA') return true; $app = JFactory::getApplication(); if(!$this->loadOptions()){ return false; } //$this->loadTIC(); $user_id = hikashop_loadUser(false); $usps_address = $app->getUserState(HIKASHOP_COMPONENT.'.taxcloud.full_address', null); if(empty($usps_address)){

Please Log in or Create an account to join the conversation.

12 years 5 months ago #158435 by rodopemu
Ok. That appears to have fixed it. Thanks.

Please Log in or Create an account to join the conversation.

12 years 4 months ago - 12 years 4 months ago #162072 by rodopemu
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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.081 seconds
Powered by Kunena Forum