AbanteCart Community

Shopping Cart Operations => Built-in Features => Topic started by: Saxon on September 11, 2020, 07:57:51 AM

Title: Local Delivery
Post by: Saxon on September 11, 2020, 07:57:51 AM
Hi All

Can anyone help am trying to setup free local delivery i can get the extension to but the question i have is.

for the UK and where i live for the whole area it has a post code that starts with SN25 followed be 3 or 4 more digits for each street i can get the extension to work if i have the whole post code in the list but i just want it to look for the start of the postcode IE SN25 if i just put SN25 into the extension it dose not work.

If i need to add every street post code it will be thousands and not something i would find easy. all i need to cover for my area is SN1, SN2, SN3, SN4 ,SN25, SN26
i have attached a little picture of the are code. i hope it makes sense   
Title: Re: Local Delivery
Post by: abantecart on September 11, 2020, 08:38:24 PM
I do you refer to default Local Delivery extension (default_local_delivery)?
You can provide a comma delimited list there. If the list is huge, code can be updated to work with wildcard like SN25*

Not sure of your PHP coding skills, but here is the line that can be altered to process wildcards:
https://github.com/abantecart/abantecart-src/blob/master/public_html/extensions/default_local_delivery/storefront/model/extension/default_local_delivery.php#L35

It would be nice feature to be added actually


Title: Re: Local Delivery
Post by: Saxon on September 12, 2020, 01:26:26 PM
Hi thanks for your reply it is the Local Delivery extension (default_local_delivery)

My PHP skill is zero  :( bu I know someone that can help me.

It would be great if this little extension could have this in the future. I need to take some courses on doing some php

Thanks
Title: Re: Local Delivery
Post by: abantecart on September 12, 2020, 05:32:07 PM
Let me know if that "someone" can do this for you. He/she can also contribute this feature in github with pull request.
If that does not work, we could add this feature for 1.2.17.
Title: Re: Local Delivery
Post by: maxter on September 12, 2020, 05:35:20 PM
I can do this for you if you want. Please PM.
Title: Re: Local Delivery
Post by: yonghan79 on September 14, 2020, 08:56:39 PM
Hi,

We have added the ability for admins to use asterisk/wildcard for the post codes such as SN*, 35* etc. So admin doesn't have to enter the post code one by one anymore. And it is not case sensitive, so when customer enter sn1, the local delivery rate is shown.

And we have create a pull request here https://github.com/abantecart/abantecart-src/pull/1424 (https://github.com/abantecart/abantecart-src/pull/1424) in github.

Changes made by WHY2 Support for AbanteCart.

Title: Re: Local Delivery
Post by: Basara on September 15, 2020, 05:18:38 AM
thank you yonghan79