Jump to content

Determine Cost Based On Location

Recommended Posts

Site/page url: https://www.theenrichededucator.com/workshops/in-person-on-site-training

Hello,

I offer add-on services to my products (services). One add-on service I provide is "in-person/on-site training". I travel for my consulting services, so I would like to be able to automatically determine the additional cost for potential clients I'd serve outside of the Atlanta, GA area. Ideally, a visitor would be able to enter their zip code and an updated calculated cost of the add-on service would appear and they can add it to their cart (named "registration" on my site). 

I've looked around for possible solutions and I think I might need to go with some type of API (such as this one). I imagine this would work something like this:

  1. Visitor enters zip code
    • The API would calculate the distance between my zip code and theirs, then pass the distance back to my site.
    • Use the distance to calculate the cost based on my table (pictured in screenshot below)
  2. Distance displays on the page
  3. The new cost updates and displays on the page
  4. Client adds service (with the updated/correct cost) to cart/registration 

I'm not sure where to start or how to get this going and would appreciate any help. 

 

Screenshot 2024-03-12 at 7.30.23 AM.png

Edited by EnrichedEducator
added site url
Link to comment
  • Replies 0
  • Views 979
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.