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.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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.