Invoice sending issue

This topic contains 3 replies, has 2 voices, and was last updated by WCfM Forum WCfM Forum 1 day, 15 hours ago.

  • Author
    Posts
  • #72125
    Avatar
    Kumar Rajesh
    Participant

    Hi,
    whenever a customer is booking a product, the store invoice is getting delivered to the customer automatically which is not suppose to happened.
    The store invoice is suppose to be sent to the customer after the order is completed.
    Thank You.

  • #72409
    WCfM Forum
    WCfM Forum
    Keymaster

    Hi,

    Please add this code snippet to your child theme’s functions.php –

    add_filter( 'wcfm_allowed_store_invoice_orders', function( $order_types ) {
    	$order_types = array( 'customer_invoice', 'new_order', 'customer_completed_order', 'store-new-order' ) ;
    	return $order_types; 
    }, 50 );

    Thank You

  • #72515
    Avatar
    Kumar Rajesh
    Participant

    Hi,
    Thank you for response.
    What this code snippet will exactly do, Please tell something about this.

  • #72676
    WCfM Forum
    WCfM Forum
    Keymaster

    HI,

    The store invoice is suppose to be sent to the customer after the order is completed.

    – It will send store invoice to customers only after order completed!

    Thank You

You must be logged in to reply to this topic.