Allow the "Download" button to be displayed for a specific user role

Posted by: Ignace Laurent

14th April 2020, 12:23 am

Ignace Laurent

@Amx971

14 Apr 2020
12:23 am

Hello,

I would like to allow the "Download" button to be displayed only for a user who has an active membership. However, I don't use "Woocommerce Membership" but "Restrict Content Pro".

Unfortunately, I can't do it by setting "Free Download Woocommerce Pro" because there is only "Only show the button to logged in users". Do you have an idea by code or something else?

Thanks !

  • Richard Webster

    @rwebster

    14 Apr 2020
    7:43 am

    Hello mate, what roles do you want to allow this for?

  • Ignace Laurent

    @Amx971

    14 Apr 2020
    8:27 am

    I want to apply it to a "Customer" role belonging to an active plan defined in "Restrict Content Pro". I would also like the button to be displayed also for paid products, outside of it, it only does it for downloadable products with a zero price.

  • Richard Webster

    @rwebster

    14 Apr 2020
    9:04 am

    Are you able to set discounts for those roles? The products have to be free to be downloaded from the product page.

  • Ignace Laurent

    @Amx971

    14 Apr 2020
    9:25 am

    I am currently applying 100% discounts. But this is account price only in the shopping cart. So, I have the download button (rather re download) only after the order.

    Last modified: 14th April 2020, 9:35 am by Ignace Laurent

  • Richard Webster

    @rwebster

    14 Apr 2020
    10:22 am

    Ok mate. Open up a new support ticket and we'll go through some stuff.

    https://wpenhanced.com/support/add-ticket/

This topic is closed to new replies.