• Resolved svds

    (@svds)


    Can you please help me with this problem?:

    I use the stock option ‘can be backordered, but inform the customer’ to show there’s a few days delivery time on the product page. This works fine.

    But when such a product is purchased, the emails to my customers show ‘backordered: #’ under the product discription in the order details. Even when the order status is ‘completed’.

    In the order-details (backend) it’s possible to remove this meta with a simple button. (remove_order_item_meta) but i prefer this to happen automaticly or the meta not showing up at all.

    I’ve been searching for days, but can’t find out where this notification is coming from. Is there a way to hide it?

    Thank you in advance for your reply

    • This topic was modified 7 years, 9 months ago by svds.
Viewing 1 replies (of 1 total)
  • Thread Starter svds

    (@svds)

    Late at night i finaly found a solution myself!
    The essential point was that i’ve been searching for the phrase ‘backordered’ in the code, but that just wasn’t used where the notification is added to the emails…

    What did the trick was deleting

    // allow other plugins to add additional product information here
    				do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, $plain_text );
    
    				// Variation
    				if ( ! empty( $item_meta->meta ) ) {
    					echo '<br/><small>' . nl2br( $item_meta->display( true, true, '_', "\n" ) ) . '</small>';
    

    from email-order-items.php

    I thought i should post this to help people with a simular issue.

Viewing 1 replies (of 1 total)
  • The topic ‘Backorder notification in email’ is closed to new replies.