• Resolved onawave

    (@onawave)


    Hello all.

    So we’re trying to launch our little site today, and we have a digital product (an album) that we have set to purchase for pre-order.

    But for some reason, after purchasing, it’s sending the initial order complete, receipt email, but it’s ALSO sending an email with a download link. And when you download it, it’s a 33kb zip file, that doesn’t actually unzip…

    You should’t be able to get a download link until the actual release date though!… so I’m confused.

    Any ideas would be hugely appreciated!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter onawave

    (@onawave)

    Okay, so I think I realized what’s happening…

    I believe right now, all digital products are set to autocomplete. And so because it’s a digital preorder, it’s automatically completing, and sending the email with the download link immediately.

    How can I set it up to turn OFF autocomplete, for pre-orders only?…

    Thread Starter onawave

    (@onawave)

    Please!! Anyone know the answer to this?

    Plugin Support RK a11n

    (@riaanknoetze)

    It sounds like the pre-orders plugin you’re using would either need to have its settings tweaked or it might have to be customised.

    Alternatively, depending on the ideal workflow you have in mind, you could consider using https://www.woocommerce.com/products/woocommerce-order-status-manager/?aff=10486&cid=1131038 to create a custom order status.

    Thread Starter onawave

    (@onawave)

    Hello RK

    Thank you so much for the reply, this issue is making me crazy!

    So I realized the problem from earlier, regarding the Pre-orders autocompleting, was because I used (and forgot about) this bit of code, in order to force PayPal transactions to complete automatically, so the customer would get an immediate download link, without me having to manually set it to complete:

    /**
    * Auto Complete all WooCommerce orders.
    * Add to theme functions.php file
    */

    add_action( 'woocommerce_thankyou', 'custom_woocommerce_auto_complete_order' );
    function custom_woocommerce_auto_complete_order( $order_id ) {
    global $woocommerce;

    if ( !$order_id )
    return;
    $order = new WC_Order( $order_id );
    $order->update_status( 'completed' );

    }

    I believe this is why the pre-orders were doing that.

    NOW, I’ve deleted that bit of code, and now I can’t seem to get ‘digital’ and ‘virtual’ products to autocomplete after payment with PayPal.

    I have used the ‘Woocomerce Order Status Manager’ plugin, and it seems to do nothing.

    I’m wondering now if it has to do with PayPal IPNs. I’ve set the IPN up, but maybe there’s some step somewhere that I’m missing? This is the Notification URL that I’m using: https://highandlonelyrecords.com/?wc-api=WC_Gateway_Paypal

    I’ve also tried the ‘Woocommerce – Autocomplete Orders’ plugin. Which actually does force paypal items to autocomplete, but strangely ONLY when set to ‘All Orders’. Not merely ‘Virtual’ and ‘Downloadable’ products, which is what I need.

    So basically right now, my problem is twofold: 1)I need PayPal transactions for Digital and Virtual products only, to autocomplete, thereby sending an email immediately to the customer, so they can download the file. And 2)I need the exception to be for Pre-orders, so that they DO NOT get an email immediately for the download link…

    Is this a super confusing problem? What am I missing? Is there possibly a reputable company that I could hire for an affordable one time fee, to try to solve this? Because it’s the last thing I believe, and once we figure it out, we can start using the site… it’s really driving me crazy!

    Thank you to anyone who may have any suggestions!

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @onawave I looked into our Pre-Orders plugin and it adds an additional order status of pre-ordered. Once the release date passes it then moves the pre-ordered orders to complete so that the emails with the download links can be sent.

    If you are moving the orders to complete before the date, then WooCommerce will automatically send the emails with the download links.

    This seems like more of an issue with the plugin you are using for pre orders than with WooCommerce itself.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Help! Digital Pre-order sending an email with DL Link’ is closed to new replies.