• Resolved dhavalkumarkatrodiya

    (@dhavalkumarkatrodiya)


    hi, i have digital download woocommerce website.
    i had removed all woocommerce checkout fields (as i dont wont it).

    but when customer buy any digital product. he can able to download the product on Checkout-Thank you page.
    but if user goes to Download section of My Account page. & try to download the product, error comes “Invalid download link. Go to shop ”

    i tried all the ways to solve this problem.
    & Finally, i found the solution.

    i enabled checkout email field, all other checkout fields are disabled.
    & this solved download problem.

    so my question is why billing email field is required to download the product.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter dhavalkumarkatrodiya

    (@dhavalkumarkatrodiya)

    my user uses their mobile number to register with my site instead of their email id

    so my site doesn’t need any email id of users.

    i had used “Checkout Field Editor for WooCommerce” plugin to remove checkout fields.

    but,i had to re-enabled checkout email field,
    so user can download the virtual product from Download section of My Account page,

    why billing email field is required to download the product.

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    I understand you have removed all billing fields from the Checkout page on your site, and when a customer purchases a downloadable product they are able to download from the Thank You page, but not from the My Account > Downloads page.

    Taking a look at the wc_get_customer_available_downloads function in the /woocommerce/includes/wc-user-functions.php file (which is used for generating the customer downloads table in the My Account page), I see that it does include the following code for creating the download URL:

    `
    ‘download_url’ => add_query_arg(
    array(
    ‘download_file’ => $product_id,
    ‘order’ => $result->order_key,
    ’email’ => rawurlencode( $result->user_email ),
    ‘key’ => $result->download_id,
    ),
    home_url( ‘/’ )
    )
    `

    As we can see, it uses the user_email when generating the URL.

    Generally, to get to the My Account page, a customer has to have an account. By default with WooCommerce, an account must be tied to an email address. It appears you have customized your site to instead use a customer’s mobile number.

    To get the downloads working from the My Account page, you will need to also customize the downloads to use the mobile number instead of the email address.

    If you need assistance with coding or custom development, we recommend reaching out to a developer from one of the services at https://woocommerce.com/customizations/

    I hope that helps! Have a wonderful day!

    Plugin Support Yuki K a11n.

    (@yukikatayama)

    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.

    Hello!! I have the same issue, but I cant download my files at all. not Even in the thank you page nor in the email of completed order. I have the this blank page with “Invalid download link. Go to shop – Error”. This only happens when paying online.

    I’m having this same issue of the download links not working and getting this same error on a blank page “Invalid download link. Go to shop”. I am trying to use files that are coming from Dropbox File Store through “woocommerce dropbox” plug in. Anyone have any resolve on this? So baffling and I’ve tried to fix it for days, with my limited know how. Please advise if you can!

    Hello
    My friend’s site had the same problem. I simply fix it by removing this plugin and installing this plugin.
    Whit this plugin you don’t need the email field on the checkout page anymore.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Invalid download link. Go to shop – Error’ is closed to new replies.