Jump to content

Custom Delivery Zones

Recommended Posts

Hi everyone! I have a client who owns a flower arrangement business. She has given me a map where she has drawn a boundary where the delivery is free, and another one with a boundary where the delivery fee is $5. The boundaries do not correlate to zip code, just main roads.
Is there any way to automate this charge when the customer checks out? I'm thinking about it and I just don't know of any way this functionality could be created, but wanted to check.
Otherwise, I guess the customer will need to consult the map before purchasing and choose a $5 add-on upon checkout. And the owner would also have to verify each order has chosen the right delivery fee (free or $5). This seems....complicated. Any creative ideas on this problem?
P.S. - My client actually owns a bike (business name is The Blossom Peddler), so the need for the custom map is because she will need to physically ride the bike to the free delivery areas. For the $5 fee areas, I assume she will drive her car.
Thank you!!!
Link to comment
2 hours ago, amanda.j.murray said:
I have a client who owns a flower arrangement business. She has given me a map where she has drawn a boundary where the delivery is free, and another one with a boundary where the delivery fee is $5. The boundaries do not correlate to zip code, just main roads.
Is there any way to automate this charge when the customer checks out? 

Wow, interesting challenge Amanda!

To get technical for a moment, it is possible to write code that checks whether an address is within a set of coordinates on a Google map. You can 'draw' a polygon between points on a map (by specifying coordinates) and then run containsLocation() to check if an address is within it. However, I don't think this will really help in the circumstances, because you would need to ask the customer for their address before the checkout stage (and then again at the checkout stage), so you'd be asking the customer for duplicate information and this isn't a customer friendly thing to do. 

Another approach might be to play on the fun aspect of whether the "Peddler" can reach the customer on their cycle. You could tell them a little story about it, asking them to carefully pick the correct option when they reach the checkout, so the "Peddler" doesn't too tired! With some code, you could show the map at either on the product page or at the cart stage of the process. With the right narrative, this may result in more users choosing to pay the fee.

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • 2 weeks later...

Such great and creative information, Paul, thank you! I didn't know about the code option for a Google map. I actually just created a custom Google map for my client and I might look into this option. I don't specialize in coding though - is this something I could hire someone to write for me? I can at least present it to my client as an option.

I love your idea about weaving the delivery options through an on-brand story. Thanks for taking the time to think on this.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.