• Hi there,

    After some searching, I THINK your gift voucher plugin is what I’m looking for.

    However, in testing, I am using Cash on Delivery as the sole payment method. So, naturally all orders are set to Processing once they have been placed. Annoyingly, that means an admin has to go and set the order status to Completed before the e-gift card will be sent out.

    Will this be the behaviour even with Stripe selected as the payment method? Is there a way of forcing the e-gift cards to be sent out regardless of the order status?

    Many thanks in advance for your help with this.

    With kind regards,

    Mark

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter SYPOMark

    (@sypomark)

    Since I can’t edit my original query, I am adding a, ‘comment.’

    What is the point of the button in the email? The suggestion is that it will automatically apply the discount code to a customer’s order. When, in fact, all it does is add a link to the /shop page on the relevant site. Why. Bother.

    And, the Gift Code pattern is ignored. Instead, the first letter is replaced by a random digit.

    These things make this plugin very frustrating to use. It may be that I have missed something. Some guidance would be appreciated.

    With kind regards,

    Mark

    Plugin Author YITHEMES

    (@yithemes)

    Hello Mark,
    hope you are doing well! ??

    By default, the gift cards are created when the order turns to “Processing” or “Completed” status. If the payment method is “Cash on Delivery”, the order will stay in “On-hold”, as the payment it’s not confirmed.

    Anyway, you can use this code to auto-complete the orders where a virtual gift card is purchased.

    You can also use the next code to remove the email button:

    if(!function_exists('ywgc_remove_action_email_button')) {
    	function ywgc_remove_action_email_button() {
    		$class = YITH_YWGC_Emails::get_instance();
    		remove_action ( 'ywgc_gift_card_email_after_preview', array(
    			$class,
    			'show_link_for_cart_discount'
    		), 10 );
    	}
    	add_action('init', 'ywgc_remove_action_email_button');
    }

    About the code pattern, it takes the character “D” as a random digit between 0-9, so you should not use it in your code prefix/suffix.

    If you have any doubt let us know and we will be happy to help you.

    Have a nice day!

    Thread Starter SYPOMark

    (@sypomark)

    Hi there,

    Thanks for your reply.

    I am not certain it will help, unfortunately. The store in question sells made to order handbags, which can sometimes take weeks to put together. So, they are not likely to mark an order as completed until the bag is ready for dispatch. If a customer orders a bag and a voucher at the same time, if the order is marked as complete to make sure the voucher will send, it will create the wrong impression: that the bag is also ready.

    There is a setting in the admin for your plugin that suggests that the voucher will be sent even if the order is not, ‘completed.’ But, this does not work on my test site. Is this because the payment method is COD? Will this setting be observed if the payment method is CC? Do you have a demo site set up where I can see this happening?

    With kind regards,

    Mark

    Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    The gift cards are also generated when the order turn in “Processing” status, so if you prefer, you can replace the next line in the code:

    $order->update_status( 'completed' );

    by this new one:

    $order->update_status( 'processing' );

    So the orders containing a gift card will be automatically updated to “Processing”

    Sure, if you want, you can make some tests in our Live Demo.

    Could you check it and let us know any news, please?

    Have a nice day!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sending vouchers WITHOUT setting orders as completed’ is closed to new replies.