Shipping Groups / shipping exceptions

  • Posts: 50
  • Thank you received: 4
  • Hikashop Business
3 years 2 months ago #329823

I've got ~150 shipping rules set up to define my UK shipping by postcode.
The majority of postcodes get shipped for £7.95. A few very specific ones cost £27.95. Because of this I have to define each postcode area separately.
What would be good is instead be able to group rules together, and/or create an 'exception group' - so I could say 'all £7.95 EXCEPT x' and just define that group.
So if/when I need to update the price or description this wouldn't need to be updated individually (I do currently do this via sql to save time but not everyone can do that)

Attachments:

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

  • Posts: 4519
  • Thank you received: 612
  • MODERATOR
3 years 2 months ago #329872

Hello,

From what you explained us, we have maybe an idea to suggest follow us step by step :
1. From Main HikaShop Configuration, go to System dropdown => Zones
2. Create 2 new custom zone :



3. Define your zone type as "Shipping zones"
4. Fill in the Sub-zones part with the required zone

Later you will just have to restrict your shipping method with this 2 new custom zone.
Hope this will fit your needs.

Regards

Last edit: 3 years 2 months ago by Philip.

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

  • Posts: 50
  • Thank you received: 4
  • Hikashop Business
3 years 2 months ago #329952

Hi Philip, I did think of this but unfortunately the shipping zones don't have any configuration options for postcodes.

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
3 years 2 months ago #329955

Hi,

The current version of HikaShop (4.4.1) has a new option "Post code RegEx" in shipping methods where you can enter a regex to match post codes:
www.regular-expressions.info/tutorial.html
So for example, you can enter: (4568|2135|9852)
and the shipping method will match with any of these three post codes.

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

  • Posts: 50
  • Thank you received: 4
  • Hikashop Business
2 years 11 months ago #332428

Hi, RegEx is unfortunately not a viable option for UK postcodes, as this discussion shows:
stackoverflow.com/questions/164979/regex...atching-uk-postcodes

The ability to group or categorise (and use these groups to include/exclude) shipping options would be useful.

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

  • Posts: 12953
  • Thank you received: 1778
2 years 11 months ago #332481

Hello,

If using the shipping method's options of restriction, then the last solution will be to directly develop a custom manual shipping plugin which will directly apply these restrictions in the code.
To do it, you'll just have to copy the code of the Hikashop manual shipping method and apply your restriction through the code of the "onShippingDisplay" function. For more information :
www.hikashop.com/support/documentation/6...ml#onShippingDisplay

Kind regards,
Mohamed.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum