Password protecting specific product pages in Webflow requires a workaround since product pages share the same template. You can use a combination of CMS fields and conditional visibility to achieve this.
1. Add a Password Field to Product CMS
- Go to the CMS in Webflow and select the product collection.
- Add a new field specifically for the password. Use a plain text field to store the password.
2. Use Conditional Visibility for Password Form
- Design a password form on the product template page. This form should only be visible if a product is tagged with "Scarab Preview."
- Set conditional visibility on the form: only show it when the product's password field is not empty.
3. Create a Script for Password Verification
- Insert a small custom script to verify the form's password against the CMS password field.
- Use the "Embed" component to add a script element under the password form.
- In this script, compare the input password with the CMS password field value.
4. Manage Product Visibility
- After users successfully enter the correct password, the necessary hidden product details should display.
- Use JavaScript to toggle the visibility of product information once the password matches.
5. Automate Time-based Release
- You can automate the visibility release using custom scripts or reminders to untag "Scarab Preview" from products after 48 hours.
- Currently, Webflow doesn't support scheduling out of the box, so automation might require external tools like Zapier for advanced scheduling.
Summary
To password protect certain products in Webflow, you can create a custom password field in the CMS and use conditional visibility with a script to control access. Ensure that conditional visibility is based on a unique tag (e.g., "Scarab Preview") and manage time-sensitive product releases manually or with third-party tools.