• Resolved aldoc

    (@aldoc)


    Hello,

    I keep having a series of problems with my digital downloads (ebooks)

    At first Download links were displaying a 404 error page when customers tried downloading products which I found out was caused by .htaccess file. I fixed it by removing the “block all” code and now it serves the full file url to customers instead of downloading. I am using “Forced download” option in settings page. A sample url is https://africaread.org/children/100-moral-stories/

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    I’ve just worked through a sample checkout on your site but don’t fully understand the issue here. After the checkout is complete, the download path looks as follows: https://africaread.org/?download_file=3473&order=wc_order_eB5HigC8SnLdG&uid=f660ab912ec121d1b1e928a0bb4bc61b15f5ad44d5efdc4e1c92a25e99b8e44a&key=60d61ae8-2598-4bde-8a56-7d922b22c932

    Just to be sure: That’s the expected path to download the file and contains URL parameters to verify the purchase.

    Can you share a bit more on what you’re *expecting* to show up?

    Thread Starter aldoc

    (@aldoc)

    Hello,

    Thank you for taking time to check.

    After checkout, the download link for the product sends you to an open ebook page in the browser with the full path URL. Anybody with that link can get free access to the file. I expect that the link is hidden to the customer and only served with the download.

    See screenshot https://prnt.sc/tn7t1w

    Also, I just realized the .htaccess file in the woocommerce uploads folder keeps changing to “deny from all” by itself even after changing to “allow for all”. This results in the error 404 page I first mentioned when download link is clicked. https://prnt.sc/tn7oo8

    Plugin Support Damianne P (a11n)

    (@drwpcom)

    If you add the downloadable file to the product data directly and have “Force downloads” set, then the direct URL for the product in Media Library will give a 404 error. The download link once a payment is completed will be something like https://africaread.org/?download_file=3473&order=wc_order_eB5HigC8SnLdG&uid=f660ab912ec121d1b1e928a0bb4bc61b15f5ad44d5efdc4e1c92a25e99b8e44a&key=60d61ae8-2598-4bde-8a56-7d922b22c932. The full path should not be used.

    When you check out as a customer, could you please share screenshots showing the problem, if it still exists? Also include screenshots of your product data and the Downloadable products setting in WooCommerce > Settings > Products.

    Plugin Support Damianne P (a11n)

    (@drwpcom)

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Woocommerce showing full download url path to customers’ is closed to new replies.