Taxation screen - where is it?

  • Posts: 8
  • Thank you received: 0
13 years 4 weeks ago #12257

I see in the documentation on setting up tax stuff, the final step in terms of linking a tax rate to a zone (or state) is shown as a Taxation rule edit screen. Yet I cannot find that screen anywhere. All I can find is tax category and tax rate. I set up a category for FL sales at the FL rate. I cannot figure out how to apply it though to customers in FL. So, how in the world do you do it?

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

  • Posts: 8
  • Thank you received: 0
13 years 4 weeks ago #12260

Ok, I found the tax rule screen (not called that). Still cannot get tax to calculate for my state. Followed the documentation, no good. Anyone have the magic bullet? Other than this I love the module.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
13 years 4 weeks ago #12266

You need to create your tax rule with a zone, a tax category and a tax rate. Then, in your product you need to select that tax category and in the main configuration, you need to set the main tax zone as that zone. Finally on the front end, you need to clean your cookies so that a new session is created with the new default tax zone.

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

  • Posts: 8
  • Thank you received: 0
13 years 4 weeks ago #12275

Thank you for the help. I think I have done all of that, in several different ways, to no avail. I either get all of the states in the US taxed, or none. What I need to do is only apply tax if the buyer lives in one particular state, the state in which I am established. So here is what I did:

1) In zones, I unpublished all countries except US.
2) In US zone, I removed subzones which were not continental US.
3) With that, now my checkout enter address looks like it needs to for the places in which I do business.
4) I created a tax zone, called FL Tax which has a subzone including FL state only.
5) Created Tax Category called Taxable Sales
6) In my products, I reference that Tax Category
7) Created Tax Rate of 7% for FLorida
8) Created Tax Rule linking Category, Rate, customer type, and zone.
9) In Configuration, I reference the tax zone I had created with only FL in it.

Now what I get depends on how I set the zone in the Tax Rule. Are you supposed to set the rule to point to the geographical zone or the tax zone? Of course either way does not work for me. One way ends up with state taxed or none of them taxed. What am I missing?

Thank you for any help.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
13 years 4 weeks ago #12276

In 8, don't select a customer type so that all customer types are taken into account.

You can set the rule for the state of FL or the tax zone FL having the state in it's subzones, it should be the exact same result.

If you still have issues, could you give a link to your shop so that we can check it out ?

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

  • Posts: 8
  • Thank you received: 0
13 years 4 weeks ago #12277

I used All Customers

Still have issues. The front page is myfdg.com

Right now it is charging tax for all states.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
13 years 4 weeks ago #12281

Could you send us a back end access via our contact form so that we can check your settings ?

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

  • Posts: 8
  • Thank you received: 0
13 years 4 weeks ago #12283

Will do. Be just a few minutes. I had already set up an account figuring you would need it.

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

  • Posts: 8
  • Thank you received: 0
13 years 4 weeks ago #12293

Did the access come through for you?

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
13 years 4 weeks ago #12304

Yes and we were able to reproduce the problem even after modifying a bit the settings. So we would need an FTP access in order to trace down the problem.

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

  • Posts: 8
  • Thank you received: 0
13 years 4 weeks ago #12307

will send via contact

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
13 years 4 weeks ago #12323

Thank you for the access.

We found the problem and fixed it. It's actually a problem which happened after some improvements we made on some part of the zone handling on the front end.

For other users, we had to change the code:

				if(empty($zones[$address->$field])){
					$zoneClass = hikashop::get('class.zone');
					$zones[$address->$field] = $zoneClass->get($address->$field);
					if(!empty($zones[$address->$field])){
						$zone_id = $zones[$address->$field]->zone_id;
					}
				}

to:
				if(empty($zones[$address->$field])){
					$zoneClass = hikashop::get('class.zone');
					$zones[$address->$field] = $zoneClass->get($address->$field);
				}
				if(!empty($zones[$address->$field])){
					$zone_id = $zones[$address->$field]->zone_id;
				}

in the file administrator/components/com_hikashop/helpers/helper.php

Last edit: 13 years 4 weeks ago by nicolas.

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

  • Posts: 8
  • Thank you received: 0
13 years 4 weeks ago #12326

Awesome. Thank you

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

  • Posts: 52
  • Thank you received: 0
13 years 3 weeks ago #12997

nicolas wrote:

Thank you for the access.

We found the problem and fixed it. It's actually a problem which happened after some improvements we made on some part of the zone handling on the front end.

For other users, we had to change the code:

				if(empty($zones[$address->$field])){
					$zoneClass = hikashop::get('class.zone');
					$zones[$address->$field] = $zoneClass->get($address->$field);
					if(!empty($zones[$address->$field])){
						$zone_id = $zones[$address->$field]->zone_id;
					}
				}

to:
				if(empty($zones[$address->$field])){
					$zoneClass = hikashop::get('class.zone');
					$zones[$address->$field] = $zoneClass->get($address->$field);
				}
				if(!empty($zones[$address->$field])){
					$zone_id = $zones[$address->$field]->zone_id;
				}

in the file administrator/components/com_hikashop/helpers/helper.php



I am checking for this and don't see that code in my administrator/components/com_hikashop/helpers/helper.php file.
here is what mine looks like.
am I going blind again? lol
if(!empty($shipping_address)){
			$addressClass = hikashop::get('class.address');
			$address = $addressClass->get($shipping_address);
			if(!empty($address)){
				$field = 'address_country';
				if(!empty($address->address_state)){
					$field = 'address_state';
				}
				$zoneClass = hikashop::get('class.zone');
				$zone = $zoneClass->get($address->$field);
				if(!empty($zone)){
					$zone_id = $zone->zone_id;
				}
			}
		}
		if(empty($zone_id)){
			$zone_id =$app->getUserState( HIKASHOP_COMPONENT.'.zone_id', 0 );
			if(empty($zone_id)){
				$config =& hikashop::config();
				$zone_id = explode(',',$config->get('main_tax_zone',$zone_id));
				if(count($zone_id)){
					$zone_id = array_shift($zone_id);
				}else{
					$zone_id=0;
				}
				$app->setUserState( HIKASHOP_COMPONENT.'.zone_id', $zone_id );
			}
		}
		return (int)$zone_id;

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
13 years 3 weeks ago #12998

That's indeed where it should be. Are you using the latest version ?

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

  • Posts: 52
  • Thank you received: 0
13 years 3 weeks ago #12999

well shoot, I guess not. I only downloaded this a couple weeks ago. it says I am using 1.4.7 and the new one is 1.4.8. so, if I click on the auto-install will it wipe my little changes I have made to the view files in backend? sheesh I didn't even finish installing yet and it's already out of date, lol.

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

  • Posts: 81539
  • Thank you received: 13069
  • MODERATOR
13 years 3 weeks ago #13000

If you did your changes via the interface, you won't loose them.
We have a release cycle of 2 weeks. We will publish a new version again next week ;)

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

Time to create page: 0.095 seconds
Powered by Kunena Forum