Jump to content

One link to amazon

Recommended Posts

15 hours ago, extinctco said:

I'm wondering if there's a way to make a button that automatically redirects people who click on it to their respective regional amazon store?

There isn't a feature for this, but it can be achieved by writing some JavaScript. You'll replace all the buttons with a single button, and then write some code to identify the visitor's country. If they appear to be in one of the countries for which you have a link, the code will then need to replace the button's generic URL with the country specific one.

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
17 hours ago, extinctco said:

Site URL: https://www.theextinctcompany.com

I'm wondering if there's a way to make a button that automatically redirects people who click on it to their respective regional amazon store? I am not an amazon affiliate - so OneLink wouldn't work.

Just hate that my book website has 12 buttons for buying the book - doesn't look good.

Thank you.

We usually use ip geolocation to detect user's country and get the 2 digit country and convert into amazon link for each country

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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.