You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 18, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 18, 2026. It is now read-only.
Content gate should not appear on products with a membership discount and no restrictions defined #2694
Describe the bug
If a membership plan provides a purchasing discount for a product, the content gate displays despite there being no restrictions defined on the product.
To Reproduce
Steps to reproduce the behavior:
Have a product and a membership plan defined, with a purchasing discount defined on the plan for the product, and no restrictions defined on the product.
View the product on the front end, see the content gate is displayed on the product.
Uncheck the "active" box for the purchasing discount on the membership plan.
View the product on the front end, see the content gate no longer appears.
Make the purchasing discount active again.
View the product on the front end, see the content gate is displayed again.
Unpublish the content gate under Engagement->Advanced Settings.
View the product on the front end, see the product is not being restricted by Woocommerce.
Screenshots
Product with purchasing discount on membership plan:
Product without purchasing discount on membership plan:
Purchasing discount defined on membership plan:
Expected behavior
Content gate should not appear on products that only have a membership plan purchasing discount and do not have any restrictions defined.
changed the title [-]Content gate should not appear on products with a membership discount[/-][+]Content gate should not appear on products with a membership discount and no restrictions defined[/+]on Oct 12, 2023
Activity
[-]Content gate should not appear on products with a membership discount[/-][+]Content gate should not appear on products with a membership discount and no restrictions defined[/+]mcmcghee commentedon Dec 14, 2023
Took another look at this and determined it is only an issue when using the inline gate. Switching to the overlay gate and it behaves correctly.