Skip to content
This repository was archived by the owner on Aug 18, 2026. It is now read-only.
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

Open

Description

@mcmcghee

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.

Activity

  1. 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
  2. mcmcghee commented on Dec 14, 2023

    @mcmcghee
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions