• Resolved nickpapas

    (@nickpapas)


    hi, the plugin sends the code to the reciever prior to the order set on completed. When the admin sets the order as processing….in order for a coupon to be created, the same coupon is being sent. This should happen only when order is set to completed. Correct?
    P.S i have deactivated other plugins but it persists and i cannot find any appropriate setting, thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    hope you are doing well ??

    By default, the plugin generates and sends the gift card when the order has been set into processing or completed status. If you want to generate and send the gift card only when the order has been set into completed status, you have to add the following code to the functions.php file of your active theme:

    if ( ! function_exists( 'yith_ywgc_generate_gift_card_on_order_status' ) ) {
    	function yith_ywgc_generate_gift_card_on_order_status() {
    		return array( 'completed' );
    	}
    
    	add_filter( 'yith_ywgc_generate_gift_card_on_order_status', 'yith_ywgc_generate_gift_card_on_order_status' );
    }

    Check it and let us know any news, please.

    Have a nice day!

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,

    Due to inactivity, we will mark the topic as solved but feel free to open a new one if you have any other issues.

    If you enjoy our support, we will really appreciate if you can leave us a review and a five stars rating -> https://www.ads-software.com/support/plugin/yith-woocommerce-gift-cards/reviews/

    Many thanks and have a nice day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘gift card sent to recipient PRIOR to order comleted’ is closed to new replies.