• Resolved Dorela Iepan

    (@dorelaiepan)


    Hello,

    I have set up a product for which I don’t want to have a discount for membership users, as it is a phisical event where I cannot offer the discounts. I have created prices for the products like this:

    price / 0.discount for the membership – and chosen the price for each membership.

    It shows correctly in the back end for me, but when I test for membership users, I have the discount settled for the membership and not the whole price.

    For the lms courses where I set up the price I don’t have this problem, so it seems to be only for this product. (But I tested to create the product as a course and it seems the special price is not taken in account)

    and this is what a membership client sees:

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Jarryd Long

    (@jarryd-long)

    Hi there, thank you for reaching out to the Paid Memberships Pro team.

    A product’s price will only change if there’s a global or product-level discount set.

    Do you have any global discounts set on any of your membership levels?

    You can check this by navigating to Memberships > Settings > Levels and editing the level. At the bottom of the screen, expand the Other Settings section. Edit the setting for Membership Discount. This field allows you to set a storewide discount as a percentage off all products.

    Kind Regards,
    Jarryd
    Support Manager at Paid Memberships Pro

    Thread Starter Dorela Iepan

    (@dorelaiepan)

    Hello, thank you for reaching out.

    Yes I have set global discount levels, that’s why I had to manually set my prices in order to put them back to the normal price.

    Plugin Support Jarryd Long

    (@jarryd-long)

    Thank you for your feedback. The global discount will take preference if a discount has been set to 0 or empty on a product level.

    You can override this by hooking into the pmprowoo_get_membership_price filter (https://github.com/strangerstudios/pmpro-woocommerce/blob/dev/pmpro-woocommerce.php#L548) to ignore the discount and return the normal price of the product.

    You can use this to check if the product is the event product’s ID, return the original price instead.

    If you need help with setting this up please let me know and I’d be happy to assist.

    Kind Regards,
    Jarryd
    Support Manager at Paid Memberships Pro

    Thread Starter Dorela Iepan

    (@dorelaiepan)

    Hello Jarryd,

    To be honest I don’t understand where and what exactly I need to set up.

    I need to ignore the filter, so that the client sees the price I want them to see, but where do I do it?

    Thank You,

    Dorela

    Plugin Support Jarryd Long

    (@jarryd-long)

    I’ve put a code together for you to help achieve this: https://gist.github.com/JarrydLong/5189a52acced3b9dec4ace71ef6cadf1

    You can obtain the product ID by navigating to the Products page in the admin dashboard and hovering over the Woocommerce product you don’t want any discounts applied to. An ‘ID: ‘ will appear – please use this ID on line 16 of your code recipe.

    A companion article on how to use a code recipe on your site can be found at?https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/

    Kind Regards,
    Jarryd
    Support Manager at Paid Memberships Pro

    Thread Starter Dorela Iepan

    (@dorelaiepan)

    Hello Jarryd,

    I have used the code, it works perfectly, the problem now is that with every single update there is (i’m not sure if it’s this plugin or others), I have to reinsert the code as it’s not present anymore and my product is back to the reducted price.

    What can i do?

    Thank you,

    Dorela

    Plugin Support Jarryd Long

    (@jarryd-long)

    This can be added to your site via a Code Snippets plugin or custom plugin as outlined in our guide here https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/

    This ensures that none of those changes are lost when updating your theme or plugins.

    Kind Regards,
    Jarryd
    Support Manager at Paid Memberships Pro

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.