• Resolved CK Ling

    (@brain168)


    I use this plugin to sell the membership,

    and I want to allow members to have a discount when they renew the membership,

    but when I set the discount in membership discount,

    all visitors who didn’t have members level have this discount.

    How to fix it?

    thanks.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Andrew Lima

    (@andrewza)

    Hi @brain168

    Thank you for using Paid Memberships Pro – WooCommerce Add On.

    The Paid Memberships Pro WooCommerce integration applies discounts based on what membership level products are in the cart. This functionality helps to upsell other items alongside purchasing a membership level and reduce the number of checkouts a user may need to do (i.e. buy membership level, then come back and place their remaining order to get the discount).

    A way forward would be to set the option of “Discount WooCommerce Subscription and Memberships Products” (which can be found under “Memberships” > “Settings” > “Advanced Settings”) to “No”. This will prevent the membership discount in cart to discount products.

    You then can also use a custom code snippet to specifically discount these products based on the user’s membership level by using the ‘pmprowoo_get_membership_price’ filter – https://github.com/strangerstudios/pmpro-woocommerce/blob/dev/pmpro-woocommerce.php#L453

    This will allow you to get the user’s current level, and discount product ID’s in WooCommerce based off of custom parameters such as the user’s level, role or other.

    If you need help implementing this onto your site, I suggest reaching out to a local WordPress developer.

    Thank you for understanding.

Viewing 1 replies (of 1 total)

The topic ‘Membership Discount setting error’ is closed to new replies.