• I added the rule for the gift card promo of the specific amount. The amount on the Gift Card being sent to the customer is incorrect as the balance should be the gift card amount and not the purchased amount.

    Is it possible to change the price on the Gift Card Email and PDF?

Viewing 1 replies (of 1 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    To achieve what you need, you have to add the next code in the functions.php of your active theme:

    if ( ! function_exists( 'yith_ywgc_gift_card_template_amount_custom' ) ) {	
     function yith_ywgc_gift_card_template_amount_custom( $price, $object, $amount) {		    $price = wc_price( $object->get_balance() );		
      return $price;	
    }	
    add_filter('yith_ywgc_gift_card_template_amount', 'yith_ywgc_gift_card_template_amount_custom', 10, 3);
    }

    Could you check it and let me know, please?
    ?
    Have a nice day!
    ?
    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Need to Modify the Price on the Email and PDF’ is closed to new replies.