Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content gate should not appear on products with a membership discount and no restrictions defined #2694

Open
mcmcghee opened this issue Oct 12, 2023 · 1 comment

Comments

@mcmcghee
Copy link

mcmcghee commented Oct 12, 2023

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:

  1. 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.
  2. View the product on the front end, see the content gate is displayed on the product.
  3. Uncheck the "active" box for the purchasing discount on the membership plan.
  4. View the product on the front end, see the content gate no longer appears.
  5. Make the purchasing discount active again.
  6. View the product on the front end, see the content gate is displayed again.
  7. Unpublish the content gate under Engagement->Advanced Settings.
  8. View the product on the front end, see the product is not being restricted by Woocommerce.

Screenshots
Product with purchasing discount on membership plan:
Screenshot from 2023-10-11 21-28-59

Product without purchasing discount on membership plan:
Screenshot from 2023-10-11 21-24-26

Purchasing discount defined on membership plan:
Screenshot from 2023-10-11 21-25-19

Expected behavior
Content gate should not appear on products that only have a membership plan purchasing discount and do not have any restrictions defined.

@mcmcghee mcmcghee 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 Oct 12, 2023
@mcmcghee
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant