Skip to main content

Shipping by UK postcode

More
11 years 11 months ago #176193 by ncoates
-- 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.

More
11 years 11 months ago #176211 by Mohamed Thelji
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.

More
11 years 11 months ago #176322 by ncoates
Replied by ncoates on topic Shipping by UK postcode
Ok great but could you explain how I actually do this please?

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

More
11 years 11 months ago #176333 by Mohamed Thelji
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.

More
11 years 10 months ago #181375 by ncoates
Replied by ncoates on topic Shipping by UK postcode
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.

More
11 years 10 months ago #181439 by Mohamed Thelji
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.

More
11 years 10 months ago - 11 years 10 months ago #181520 by ncoates
Replied by ncoates on topic Shipping by UK postcode
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: 11 years 10 months ago by ncoates.

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

More
11 years 10 months ago #181534 by ncoates
Replied by ncoates on topic Shipping by UK postcode
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.

More
11 years 10 months ago #181601 by Mohamed Thelji
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.

More
11 years 9 months ago #181849 by ncoates
Replied by ncoates on topic Shipping by UK postcode
Thanks, thats a lot of shipping methods to create!!....

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

More
11 years 9 months ago #181967 by ncoates
Replied by ncoates on topic Shipping by UK postcode
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.

More
11 years 9 months ago #182016 by ncoates
Replied by ncoates on topic Shipping by UK postcode
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.

More
11 years 9 months ago - 11 years 9 months ago #182010 by Mohamed Thelji
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 :
Code:
if(!empty($suffix)) $suffix = strtoupper($suffix); if(!empty($prefix)) $prefix = strtoupper($prefix);
just after :
Code:
$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: 11 years 9 months ago by Mohamed Thelji.
The following user(s) said Thank You: ncoates

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

More
11 years 9 months ago #182017 by ncoates
Replied by ncoates on topic Shipping by UK postcode
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.

More
11 years 9 months ago #182019 by Mohamed Thelji
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.

More
11 years 9 months ago #182026 by ncoates
Replied by ncoates on topic Shipping by UK postcode
Great! and thanks again ;-)

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

Time to create page: 0.330 seconds
Powered by Kunena Forum