• Resolved mappel

    (@mappel)


    Hi,
    I’m selling digital products and set the download permission to 3x.
    I did some testing and noticed that the whole row “product-name | downloads remaining | download” disappears in the Downloads Section under “My Account”.

    I find this very confusing for the customer because the product she actually purchased does not show up any longer.

    Can I add a function that the product shows up in the Download Section with ” Downloads Remaining 0″ ?

    Help is very much appreciated, thanks in advance.

    Warm regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • I had the same issue when I updated Wooc last month and couldn’t find solution.
    Writing a new function to take care of the issue is possible. Just open functions.php file and write a function and a Woocommerce hook, add_filter or add_action call.
    Try the easy fix by changing to a different theme and test it again. Sometimes the theme has some css display:none on a class that has same classname as Wooc.

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @mappel I looked into this and it appears there is not a simple way around what is being done. The actual database query looks for downloads that have a number greater than 0 for downloads remaining. This can be seen here, specifically on line 404:

    https://github.com/woocommerce/woocommerce/blob/3.7.1/includes/data-stores/class-wc-customer-download-data-store.php#L394-L418

    At this time, if a download reaches 0, it is removed from the Downloads page. The customer is still able to view the order under Orders, and the downloadable product is listed there.


    Link to image: https://cld.wthms.co/Kj1pMf

    Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

    Kind regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘When “Downloads Remaining” = 0 the whole row in MyAccount disappears’ is closed to new replies.