How can I password protect certain products in an e-commerce website created on Webflow? I have a password protected page with various products that should only be visible for 48 hours before being released to the public. However, since each product shares the same template, they are not currently password protected. Is there a way to add code to the product page template to password protect only the products tagged as "Scarab Preview"?

TL;DR
  • Create a password-protected page in Webflow for tagged products and move/link "Scarab Preview" products there.
  • Use a collection list to show only the tagged products, and manually or automate tag removal after 48 hours with services like Zapier.

When using Webflow to password protect certain products based on a tag, such as "Scarab Preview," you encounter limitations because Webflow does not natively allow conditional password protection on individual CMS items within a single template. Here are steps and suggestions to handle this scenario.

1. Set Up Password Protected Page

  • Create a new page in Webflow for your product previews that is password protected.
  • Move or link products tagged as "Scarab Preview" to this page for the limited period you mentioned.

2. Manage Product Visibility

  • Use a collection list on the password-protected page to display products tagged with "Scarab Preview."
  • Filter the collection list to only show items with the "Scarab Preview" tag.

3. Set Up Scheduling/Automation

  • Manually update the products after the 48-hour period to remove the "Scarab Preview" tag, thereby allowing them to be visible on the public product pages.
  • Utilize third-party services like Zapier (by using a process with Webflow’s API) to automate the tag removal after 48 hours, if possible.

4. Consider Custom Code

  • Custom code solutions within Webflow can be challenging, as you can't directly add password protection with scripts or conditionals. Instead, create a workflow or pseudo conditional visibility by leveraging CMS filters and page permissions.

Summary

Since Webflow does not support conditional, individual product password protection based on tags within the same collection template, the best approach is to use a dedicated password-protected page displaying those tagged products and manage their visibility manually or through automation.

Rate this answer

Other Webflow Questions