Error message when using taxcloud

  • Posts: 75
  • Thank you received: 2
10 years 5 months ago #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_html/testing/consilium/plugins/hikashop/taxcloud/taxcloud.php on line 216

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #158186

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 75
  • Thank you received: 2
10 years 5 months ago #158225

I am using Hikashop essential 2.3.0

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

  • Posts: 75
  • Thank you received: 2
10 years 5 months ago #158257

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: 10 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.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 5 months ago #158262

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 75
  • Thank you received: 2
10 years 5 months ago #158264

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.

  • Posts: 12953
  • Thank you received: 1778
10 years 5 months ago #158414

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

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 :
	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.

  • Posts: 75
  • Thank you received: 2
10 years 5 months ago #158435

Ok. That appears to have fixed it. Thanks.

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

  • Posts: 75
  • Thank you received: 2
10 years 4 months ago #162072

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: 10 years 4 months ago by rodopemu.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum