Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

How to use javascript to check to see if a logged in user has bought a subscription.


activefire
Go to solution Solved by paul2009,

Question

Hey all, I need to allow a user to access a part of my website if they have bought a subscription product. The customer will have to log in before I do this check.

Is there a way to check to see if a user has purchased a subscription project with Javascript?

Edited by activefire
Initial Revision
Link to post
  • Answers 12
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

12 answers to this question

Recommended Posts

  • 0

Yes, there's no way to do this with Squarespace alone. You don't have access to the backend. You could buy a third party addon like MemberSpace and process the membership subscriptions on this instead. It can then lock access to certain protected content - but not the content on Squarespace's own pages. It's not technically possible.

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digitalbuilding the features that Squarespace didn't include. Pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect. Links in my posts may refer to SF Digital products or may be affiliate links.  Squarespace. I've been a loyal supporter of the platform since 2007. 

Link to post
  • 0

No. There's no effective way to protect Squarespace content like this.

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digitalbuilding the features that Squarespace didn't include. Pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect. Links in my posts may refer to SF Digital products or may be affiliate links.  Squarespace. I've been a loyal supporter of the platform since 2007. 

Link to post
  • 0

You said that you only want to allow a website visitor to be able to access a part of your website unless they have purchased a product. Therefore you presumably want to protect these parts of your site from being accessed by all other visitors?

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digitalbuilding the features that Squarespace didn't include. Pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect. Links in my posts may refer to SF Digital products or may be affiliate links.  Squarespace. I've been a loyal supporter of the platform since 2007. 

Link to post
  • 0

Okay. Sorry, I misunderstood you.

Yes. You are correct. Sorry, I've just never heard it that way. So yeah, if a user has not purchased a subscription either don't show them a page, or don't allow them access.

I don't want to store the non-subscription and subscription pages in HTML since a user could just un-hide the HTML for subscription users only. I don't think Squarespace would allow me to do that. Additionally, I don't think squarespace allows access to their servers anyway.

Edited by Paul2009
Link to post
  • 0

Okay. Sorry, I misunderstood you.

Yes. You are correct. Sorry, I've just never heard it that way. So yeah, if a user has not purchased a subscription either don't show them a page, or don't allow them access.

I don't want to store the non-subscription and subscription pages in HTML since a user could just un-hide the HTML for subscription users only. I don't think Squarespace would allow me to do that. Additionally, I don't think squarespace allows access to their servers anyway.

Link to post
  • 0

Yes, there's no way to do this with Squarespace alone. You don't have access to the backend. You could buy a third party addon like MemberSpace and process the membership subscriptions on this instead. It can then lock access to certain protected content - but not the content on Squarespace's own pages. It's not technically possible.

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digitalbuilding the features that Squarespace didn't include. Pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect. Links in my posts may refer to SF Digital products or may be affiliate links.  Squarespace. I've been a loyal supporter of the platform since 2007. 

Link to post
  • 0

No problem :-)

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digitalbuilding the features that Squarespace didn't include. Pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect. Links in my posts may refer to SF Digital products or may be affiliate links.  Squarespace. I've been a loyal supporter of the platform since 2007. 

Link to post

Create an account or sign in to comment

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


×
×
  • Create New...