• I have tested twice with gift card purchases made when the gift card is a product purchased by a customer. In both cases, the To and Email fields for the recipient were entered.

    I received the notifications of the purchase the store admin and as the customer, but I never received an email to the recipient email address to notify me that someone had purchased a gift card for me.

    However, when I manually created the gift card in the dashboard and assigned the recipient email address there (not in the store), I did receive the recipient email.

    Does the recipient email not work in the free version of the plugin?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, I’m having the same issue …

    Ya, I just purchased the add-on to be able to send emails to the recipient of a gift card and it’s not working for me either.

    Something I noticed: Under WooCommerce > Settings > Gift Cards, when you first set up the “Gift Cards Auto Send” options, you need to actually set them all (to override the defaults in the “options” table). What I suspect is that the dropbox for “Send” is merely showing the first option (HTML behavior). By not setting the “send” option, the database default for “rpgc_auto_when” ends up staying “payment”.

    Also, there’s a bug in the autosend.php file (line 674) as the second != true condition is mistyped as “!= ture”. So I suggest changing that, too!

    All that being said, it still isn’t auto emailing new orders to the recipient (I can force it through the newly created Gift Card, but that’s not why I paid money for this feature).

    I think I’m close to the problem, will keep digging.

    Well, it all seems off, but I went ahead and added an elseif condition for the Send > “On Order Completion” option for “Auto Send Settings”:

    				$wpr_when = ( get_option ( 'rpgc_auto_when' ) <> NULL ? get_option( 'rpgc_auto_when' ) : "order" );
    
    				if ( $wpr_when != "order" ) {
    					
    					if ( ( isset( $giftCard['SendLater'] ) != true ) && ( $order->needs_payment() != true ) ) {
    						$email = new WPR_Giftcard_Email();
    						$post = get_post( $post_id );
    						$email->sendEmail ( $post );
    
    						$giftCard['sendTheEmail'] = 1;
    						update_post_meta( $post_id, '_wpr_giftcard', $giftCard );
    					}
    				} elseif ( $wpr_when == "order") {
    					$email = new WPR_Giftcard_Email();
    					$post = get_post( $post_id );
    					$email->sendEmail ( $post );
    
    					$giftCard['sendTheEmail'] = 1;
    					update_post_meta( $post_id, '_wpr_giftcard', $giftCard );
    				}
    

    It works for me anyway.

    Hello, Biggusdaddius, where did you insert this code to find the resolve?

    Thanks!

    I think the developer took care of this with the most recent updates. I was having this issue until I updated both the free and paid version of the plugin just now.

    does the free version send automatic emails?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Gift card emails not being sent’ is closed to new replies.