• Resolved arehberg

    (@arehberg)


    My goal is to prevent somebody from downloading a free digital product at the order receipt page when they enter a fake email address. My solution would be to remove the product download link from the order receipt page and require the customer to wait for the actual email confirming their order.

    Any help or recommendation would be appreciated.

    Thanks in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Group Of Oceninfo

    (@princebhalani143)

    Thread Starter arehberg

    (@arehberg)

    I appreciate the reply!

    This looks like a way to remove the download link from the email.

      I want to keep it in the email.

    I want to remove it from the order receipt page if possible.

    I am going to see if I can sniff out the woocommerce code equivalent for the order receipt page. This gets me started in the right direction at least.

    Any other thoughts appreciated.

    Thanks!

    Group Of Oceninfo

    (@princebhalani143)

    Go to: WooCommerce > Settings > Products > Downloadable Products.
    or
    Path: /wp-admin/admin.php?page=wc-settings&tab=products&section=downloadable

    Un-check Grant access to downloadable products after payment checkbox if you wish to grant access to files when orders are Processing, instead of Completed.

    More Info: https://docs.woocommerce.com/document/digital-downloadable-product-handling/

    Thread Starter arehberg

    (@arehberg)

    I have tried this and it doesn’t produce the result I am looking for. The orders are free so they complete immediately. The user is shown the order receipt page and a download link after submitting their details in checkout. The order is complete at this point because the details requested were name/email.

    My goal is to prevent this link from showing up if the item was free.

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    If I understand correctly, you are trying to remove the option for people to download their digital products from the Thank You page (the page they are redirected to after successful payment).

    I understand this is so that you can verify that customers have entered a real email address at checkout. The only way to achieve this without customization, would be to stop receiving guest checkouts – so that customers are required to register an account on your site before making a purchase. This won’t remove the download link from the thank you page, but it will ensure that customers have purchased with a real address.

    If you do want to keep guest checkout enabled, you would have to modify the template of that page to remove the download option. You can review the templates of the checkout page at the following directory in the WooCommerce repository:

    https://github.com/woocommerce/woocommerce/tree/3.8.0/templates/checkout

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    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.

    Thread Starter arehberg

    (@arehberg)

    Thanks again for the follow-up. I ended up editing the order-details.php template to comment out the download sections. I tested this and it worked for the site checkout. The email still contains the download link as well.

    I did update my thankyou template as well to confirm that the download link will be in the confirmation email.

    Resolved!

    • This reply was modified 5 years ago by arehberg.
    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    Thank you for confirming the above solution, as it might help other users who are running into the same dilemma.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Restrict downloads to email only for digital products’ is closed to new replies.