Author Topic: Local Delivery  (Read 4339 times)

Offline Saxon

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Local Delivery
« 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   

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Local Delivery
« Reply #1 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


Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline Saxon

  • Newbie
  • *
  • Posts: 8
  • Karma: +1/-0
    • View Profile
Re: Local Delivery
« Reply #2 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

Offline abantecart

  • Administrator
  • Hero Member
  • *****
  • Posts: 4358
  • Karma: +298/-10
    • View Profile
    • Ideal Open Source Ecommerce Solution
Re: Local Delivery
« Reply #3 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.
Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Offline maxter

  • Full Member
  • ***
  • Posts: 228
  • Karma: +64/-0
    • View Profile
Re: Local Delivery
« Reply #4 on: September 12, 2020, 05:35:20 PM »
I can do this for you if you want. Please PM.

Offline yonghan79

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +17/-0
    • View Profile
Re: Local Delivery
« Reply #5 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 in github.

Changes made by WHY2 Support for AbanteCart.


Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5774
  • Karma: +274/-2
    • View Profile
Re: Local Delivery
« Reply #6 on: September 15, 2020, 05:18:38 AM »
thank you yonghan79

 

Powered by SMFPacks Social Login Mod