activefire Posted August 29, 2019 Share Posted August 29, 2019 (edited) 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 August 29, 2019 by activefire Initial Revision Link to comment
paul2009 Posted August 29, 2019 Share Posted August 29, 2019 (edited) No. There's no effective way to protect Squarespace content like this. Update: Member Sites protects Squarespace content. Please see the more up-to-date information below. Edited August 30 by paul2009 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
activefire Posted August 29, 2019 Author Share Posted August 29, 2019 What do you mean by protect? Link to comment
activefire Posted August 29, 2019 Author Share Posted August 29, 2019 What do you mean by protect? Link to comment
paul2009 Posted August 29, 2019 Share Posted August 29, 2019 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? About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
activefire Posted August 29, 2019 Author Share Posted August 29, 2019 (edited) 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 August 29, 2019 by Paul2009 Link to comment
activefire Posted August 29, 2019 Author Share Posted August 29, 2019 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 comment
paul2009 Posted August 29, 2019 Share Posted August 29, 2019 (edited) 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. Update: Member Sites protects Squarespace content. Please see the more up-to-date information below. Did this help? Please give feedback by clicking an icon below ⬇️ Edited August 30 by paul2009 Updated for the release of Digital Products (including Member Sites) in August 2023 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
activefire Posted August 29, 2019 Author Share Posted August 29, 2019 There are 3rd party things to do that? I wish I knew that. I'll take a look at them. @Paul2009 thank you for your fast reply. I wasn't thinking anyone would reply. Link to comment
activefire Posted August 29, 2019 Author Share Posted August 29, 2019 There are 3rd party things to do that? I wish I knew that. I'll take a look at them. @Paul2009 thank you for your fast reply. I wasn't thinking anyone would reply. Link to comment
activefire Posted August 29, 2019 Author Share Posted August 29, 2019 I didn't mean for this to be an answer. Sigh. Link to comment
paul2009 Posted August 29, 2019 Share Posted August 29, 2019 No problem :-) About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Solution paul2009 Posted December 17, 2021 Solution Share Posted December 17, 2021 (edited) This thread was created and answered in 2019 and is now out of date. Since that time, Squarespace launched a new feature called Member Areas - renamed Member Sites (in August 2023) - an additional cost option that allows you to secure specific pages on your site and make them available to members only. Did this help? Please give feedback by clicking an icon below ⬇️ Edited August 30 by paul2009 Updated for the release of Digital Products (including Member Sites) in August 2023 About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment