Shipping by UK postcode

  • Posts: 56
  • Thank you received: 0
10 years 1 month ago #176193

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3.6

I wonder if it's possible for you to help me set up my shipping options, the shipping will be based on postcodes, is it possible that when the client enters their address that the shipping will calculate automatically from the postcode?

Or would they have to manually select their postcode from a list?, this option is fine but how would I set it up? could you provide a short tutorial please?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 1 month ago #176211

Hello,
Yes, you'll just have to use the "Minimum/Maximum post code" and "Zones" options through your shipping method configuration page.

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

  • Posts: 56
  • Thank you received: 0
10 years 1 month ago #176322

Ok great but could you explain how I actually do this please?

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

  • Posts: 12953
  • Thank you received: 1778
10 years 1 month ago #176333

You'll have to create different shipping method and use :
- the "Zones" to restrict the use of that shipping method to UK
- the "Minimum/Maximum post code" and "prefix/suffix" options to restrict your shipping method to a group of post code
- the "Price" option to set the price regarding your customer post code / zone
Also, reading that documentation will probably help you : www.hikashop.com/support/support/documen...form.html#additional

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

  • Posts: 56
  • Thank you received: 0
9 years 11 months ago #181375

Hi could you possibly provide a bit more of a step by step tutorial as it's pretty confusing

Thank you so much

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

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #181439

For example if you want a shipping method to be used for post codes from "UK2000" to "UK3000" you'll have to create a shipping method with the "Prefix" option set to "UK", the "Minimum post code" option set to '2000' and the "Maximum post code" set to '3000'.

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

  • Posts: 56
  • Thank you received: 0
9 years 11 months ago #181520

Ok, and will Hikashop select the shipping method that applies based on the post code entered by the customer?

I found out that it does.....

Only it has to be in capitals....unless I create the shipping method in capitals....does this mean I have to create 2 shipping methods for each post code area, one in lowercase and one in upper case?....or is there another way?

Last edit: 9 years 11 months ago by ncoates.

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

  • Posts: 56
  • Thank you received: 0
9 years 11 months ago #181534

Ok, and will Hikashop select the shipping method that applies based on the post code entered by the customer?

I found out that it does.....

Only it has to be in capitals....unless I create the shipping method in capitals....does this mean I have to create 2 shipping methods for each post code area, one in lowercase and one in upper case?....or is there another way?

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

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #181601

Hello,

Only it has to be in capitals....unless I create the shipping method in capitals....does this mean I have to create 2 shipping methods for each post code area, one in lowercase and one in upper case?....or is there another way?


In that case the solution will be to create 2 manual shipping methods one for upper and one for lower case.

The following user(s) said Thank You: ncoates

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

  • Posts: 56
  • Thank you received: 0
9 years 11 months ago #181849

Thanks, thats a lot of shipping methods to create!!....

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

  • Posts: 56
  • Thank you received: 0
9 years 11 months ago #181967

Is there a way to force capitalisation on the form where the customer enters their address and post code details please?

Maybe using text-transform: uppercase; ??

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

  • Posts: 56
  • Thank you received: 0
9 years 11 months ago #182016

I need an answer to this pretty quickly please


Is there a way to force capitalisation on the form where the customer enters their address and post code details please?

Maybe using text-transform: uppercase; ?? I wouldn't know where to put this code, it will save entering hundreds of different shipping methods.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #182010

Sure but you'll have to add some code customization through Hikashop files, the solution will be to edit the "administrator\components\com_hikashop\classes\Shipping.php" file and add that code :

if(!empty($suffix))
	$suffix = strtoupper($suffix);
if(!empty($prefix))
	$prefix = strtoupper($prefix);
just after :
$checkDone = true;
$prefix = $match[1];
$main = $match[2];
$suffix = $match[3];
Also, note that if you update/re-install your Hikashop version you'll have to add that code customization again.

Last edit: 9 years 11 months ago by Mohamed Thelji.
The following user(s) said Thank You: ncoates

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

  • Posts: 56
  • Thank you received: 0
9 years 11 months ago #182017

Thats perfect and it works, thank you very much, should this not be a permanent part of the code?

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

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #182019

Actually the fact that people can filter if they want upper or lower case is probably better, but note that we can create an option to handle it.
I just added it on our TODO list.

The following user(s) said Thank You: ncoates

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

  • Posts: 56
  • Thank you received: 0
9 years 11 months ago #182026

Great! and thanks again ;-)

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

Time to create page: 0.097 seconds
Powered by Kunena Forum