Invoice sending issue

This topic contains 5 replies, has 2 voices, and was last updated by WCFM Forum WCFM Forum 2 months, 2 weeks 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

  • #74602
    Avatar
    Kumar Rajesh
    Participant

    Hi,
    Thanks for your reply.
    Sometime store invoice generates on order booking and sometime its generate on order completion.
    Yesterday one order booked and store invoice displaying in vendor section as well in administrator section. But today order booked, the store invoice was not generated and display from both account( admin and vendor), after order completion the store invoice get displayed in both account.

  • #74985
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    Are those two orders placed for same product?

    If different product, then what type of products those are?

    And, what was payment gateway for those two orders?

    Thank You

You must be logged in to reply to this topic.