• Resolved iaeon

    (@iaeon)


    The plugin does not currently recognise a product which is 100% discounted for members (with the woocommerce memberships plugin).

    Looking around it seems like it might be a simple matter of adding code similar to the following somewhere.

    $price = $the_product->get_price();

    I see that there is a mechanism to add custom functions and wonder if you have any tips for how this might be achieved?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Richard Webster

    (@rwebster85)

    What behaviour are you seeing from the plugin? For WooCommerce Memberships it currently works on the basis of product purchase restriction. Are your membership items only purchasable by members, or are they 0 price for members and have to be purchased by guests? Have you tried the setting to include items that are on sale for free?

    Thread Starter iaeon

    (@iaeon)

    The normally charged for products are available to all site visitors. Members get 100% discount.

    I have ticked ‘ Include paid items that are currently on sale for free ‘

    When Members are logged in products are correctly shown as ‘free’ (price crossed out) but the only choice is still ‘Add to Cart’.

    When I add a free product I do get the ‘Download Now’ button so the plugin itself is working.

    Plugin Author Richard Webster

    (@rwebster85)

    OK cool I see what you mean. Expect an update tonight when I’ve tested ??

    Plugin Author Richard Webster

    (@rwebster85)

    This issue is now resolved in the new version 2.4. A setting is now available to include those products, found in the Memberships section of my settings ??

    Thread Starter iaeon

    (@iaeon)

    Installed 2.4.1 but see no difference I am afraid.

    100% discounted product still showing ‘Add to Basket’ to logged in member…

    rabaisquebec

    (@rabaisquebec)

    @iaeon what version of woocommerce membership do you have?

    Plugin Author Richard Webster

    (@rwebster85)

    Did you change the setting in my membership settings to include discount items?

    Thread Starter iaeon

    (@iaeon)

    WooCommerce Memberships 1.7.5

    re ‘changing the setting in my membership settings to include discount items’… Forgive me, but can you be more specific about where I might find this setting? Can’t spot it and it sounds like this might be the issue.

    Plugin Author Richard Webster

    (@rwebster85)

    Go to the Download Now admin menu, settings, Membership Settings. There is a tickbox to include discounted membership items ??

    Thread Starter iaeon

    (@iaeon)

    Thanks Richard got it!

    The button does change to ‘download now’ with the tickbox checked.
    Unfortunately clicking on the button does not download the linked .pdf

    A test page with a fully free product does download fine.

    The rendered code behind the free product page and the 100% discounted to members page looks the same with the only noticeable difference being the product ID as one would expect. <input type=”hidden” name=”product” value=”5688″>

    So something must be blocking the product from being downloaded not having gone through checkout which is linked to the woocommerce membership plugin?

    I do also have woocommerce subscriptions in play as the memberships are subscription products.

    Thread Starter iaeon

    (@iaeon)

    Just tried deactivating subscriptions in case there was an interaction, but it makes no difference – virtual product still cannot be downloaded.

    Plugin Author Richard Webster

    (@rwebster85)

    There was a problem in 2.4 matching what you describe which was fixed in 2.4.1. Are you using that version? Is the behaviour you’re seeing clicking the button just doesn’t do anything? Page stays as it is with no download?

    What happens if you change the file that is downloading? Have you tried different WooCommerce download methods? (Force and redirect for example?)

    Thread Starter iaeon

    (@iaeon)

    I have 2.4.1 On a click the page looks like it reloads but nothing happens.

    I have tried all three download options (was ‘force downloads’), have ticked and un-ticked ‘grant access to downloadable products after payment’ (was ticked), and have tried over with subscriptions disabled. I have also tried with a second product after confirming that when set to ‘free’ it downloads and converting it to a paid product with a 100% member discount so as to replicate the problem. I cannot find any combination which gets files to download.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Download a 100% discounted product for members’ is closed to new replies.