• Resolved bronfutter

    (@bronfutter)


    I’m creating a shop for a client with links to videos as downloadable products. My client would like the links to expire which is fine but she would like to have a few packages where people can buy 3 videos for the price of 2. The problem with that is that they can’t all expire in 48 hours because they’re workout videos and they’re not likely to do 3 classes in 48 hours. So my question is, can I set up the downloadable product’s link to start expiring only AFTER it is clicked on in the customer email instead of to start expiring as soon as the link is sent.

Viewing 1 replies (of 1 total)
  • Hello,

    As an alternative solution, using a tool like phpMyAdmin you can update access_expires column in the wp_woocommerce_downloadable_product_permissions table for the order id, for example:

    update wp_woocommerce_downloadable_product_permissions
    set access_expires = ‘2022-10-25 00:00:00’
    where order_id = xxx;

    [Forum thread source]

    I understand you would like to start expiring After it is clicked.

    In that case, this is a development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    We also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    Additionally, you can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.

    Thanks.

    • This reply was modified 2 years, 4 months ago by Igor H.
Viewing 1 replies (of 1 total)
  • The topic ‘Downloadable Product Link Expiry starts from click’ is closed to new replies.