Global Shipping Addresses?

  • Posts: 176
  • Thank you received: 5
  • Hikashop Business
7 years 7 months ago #266765

We are using Hikashop to allow employees to place orders for branded merchandise that ships from our corporate headquarters to one of any of our 30+ company-owned locations. We need to start calculating taxes into these transactions and have set up taxcloud to do the calculations. Taxcloud works great, but we have hit a snag. Up till now, we have used a custom field for employees to select the Warehouse (company location) the items need to be shipped to (instead of using the shipping address). Since taxcloud calculates taxes on the shipping address this will no longer work. Also, we cannot expect each our employees to manually enter in all the warehouse addresses for their orders. What we need is a list of warehouse shipping addresses that can simply be selected during checkout.

So the question is this:
Is there any way to pre-populate the available shipping addresses to be available to all users (or group of users)?
Any alternative methods of accomplishing what we need?

Thank you,
Dustin

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 7 months ago #266789

Hi,

I don't see an easy solution without any coding.
The TaxCloud plugin has the ability to override the shipping address by his origin address when the shipping address override setting is turned on. But that's when you're shipping from one place and you want to allow customers to pick up their goods there.

The simplest would be to have one shipping method per warehouse with the shipping address override setting activated, and change the code:

if(@$this->plugin_options['use_origin_address_when_override']){
				$address = new stdClass();
				$address->address_street = $this->plugin_options['origin_address1'];
				$address->address_street2 = $this->plugin_options['origin_address2'];
				$address->address_city = $this->plugin_options['origin_city'];
				$address->address_state = new stdClass();
				$address->address_state->zone_code_3 = $this->plugin_options['origin_state'];
				$address->address_post_code = $this->plugin_options['origin_zip5'].$this->plugin_options['origin_zip4'];
				return $address;
			}
in plugins/hikashop/taxcloud/taxcloud.php in order to set the address you want based on what is in $currentShipping. A developer will be able to do that for you quite easily.

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

Time to create page: 0.045 seconds
Powered by Kunena Forum