• Resolved tweakben

    (@tweakben)


    Running WC-2.1.1 and the latest WordPress with Superstore theme that was released a few days ago. No other mods.

    Download links for purchased downloadable products now give invalid links and no longer work.

    e.g.:
    ——————-
    https://www.DOMAIN.com/?download_file=161&order=wc_order_52fc224650073&email&key=a7ad43e071522ecd029927db4e3f53c0

    This is what people get for a link NOW.
    ————
    https://www.DOMAIN.com/?download_file=32&order=order_52dc2f8a2e232&[email protected]&key=d01ce2248b28b56ab72d0cea2ce6c101

    This is what they got BEFORE (and it worked!)
    —————-

    All downloads PRIOR to the WC-2.1.1 upgrade still work in 2.1.1. All purchases of downloads AFTER WC-2.1.1 fail.

    There are no template overrides installed.

    The only modification I have, is to disable checkout fields, which worked perfectly in 2.0, of course. From my functions.php:

    // Remove checkout fields
    function custom_override_checkout_fields( $fields ) {
    unset($fields[‘order’][‘order_comments’]);
    unset($fields[‘billing’][‘billing_first_name’]);
    unset($fields[‘billing’][‘billing_last_name’]);
    unset($fields[‘billing’][‘billing_company’]);
    unset($fields[‘billing’][‘billing_address_1’]);
    unset($fields[‘billing’][‘billing_address_2’]);
    unset($fields[‘billing’][‘billing_city’]);
    unset($fields[‘billing’][‘billing_postcode’]);
    unset($fields[‘billing’][‘billing_country’]);
    unset($fields[‘billing’][‘billing_state’]);
    unset($fields[‘billing’][‘billing_email’]);
    unset($fields[‘billing’][‘billing_phone’]);
    unset($fields[‘shipping’][‘shipping_first_name’]);
    unset($fields[‘shipping’][‘shipping_last_name’]);
    unset($fields[‘shipping’][‘shipping_company’]);
    unset($fields[‘shipping’][‘shipping_address_1’]);
    unset($fields[‘shipping’][‘shipping_address_2’]);
    unset($fields[‘shipping’][‘shipping_city’]);
    unset($fields[‘shipping’][‘shipping_postcode’]);
    unset($fields[‘shipping’][‘shipping_country’]);
    unset($fields[‘shipping’][‘shipping_state’]);
    return $fields;
    }

    ….I dont capture any physical information on buyers as its a restriction of the content we sell that we are not allowed to.

    So, what’s going on? Thanks very much!

    Ben

    https://www.ads-software.com/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    How do you expect it to add the ’email’ to the download URL if you unset the field?

    “unset($fields[‘billing’][‘billing_email’]);”

    You have no idea whom bought the product and what their email address was.

    So no, it probably isn’t a theme problem, but it’s almost certainly a problem with your customisation ??

    Thread Starter tweakben

    (@tweakben)

    Hi Mike:

    I know their email because you must be a registered user and logged in order to purchase something. Thus, I already know your email and dont need to ask for it again.

    Do I *NEED* to have the billing email address *visible* during checkout?

    PS — This method worked perfectly in WC 2, its not in 2.1.1, though and over 1000 individual buyers have bought already. Now, of course, none can, changing the functionality and not putting it in changelogs kinda screws working sites up. ??

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Thread Starter tweakben

    (@tweakben)

    Thank you Mike, adding that code fixed it.

    It looked like its a commit, so that it will be in future WooCommerce updates automatically?

    Greatly appreciated.

    Ben

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Yes 2.1.2

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WC 2.1.1 – Download Links Report "Invalid Email" – Not a theme problem. :)’ is closed to new replies.