• Resolved xawi

    (@xawi)


    I’m using WordPress with a WooCommerce plugin. I’m using mostly downloadable product but I’d like that user can only download it once. There is a settings for download limit of downloadable products, but by default this limit is infinite.

    How can I change the WooCommerce settings so that this limit is by default “1” or any other number?

    Edit: I’ve added the link to my original question on StackOverflow.

    Thanks !

    • This topic was modified 5 years, 10 months ago by xawi.

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

Viewing 1 replies (of 1 total)
  • Thomas Shellberg

    (@shellbeezy)

    Automattic Happiness Engineer

    @xawi – This value doesn’t appear to be filterable so I think you’d have to edit the default value directly when the WC_Product class extends WC_Abstract_Legacy_Product. If you look at the $data array it has the defaults for products set there, including 'download_limit' => -1.

Viewing 1 replies (of 1 total)
  • The topic ‘Default Download and expiry limit’ is closed to new replies.