• Hello,
    My customer would like neither the price nor the shop name to appear in the e-mail from YITH Gift cards.
    How can I remove them? I have not found this in the send-gift-card.php file.

    Best Marc

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hi there,
    thanks for contacting us!

    You can remove the shop name and the price by adding the next code in the functions.php of your active theme:

    if(!function_exists('yith_wcgc_template_product_name_text_custom')
    ) {
    	function yith_wcgc_template_product_name_text_custom( $text, $object, $context, $product_id) {
    		$product = wc_get_product( $product_id );
    
    		$text = is_object( $product ) && $product instanceof WC_Product_Gift_Card ? $product->get_name() : esc_html__( 'Gift card', 'yith-woocommerce-gift-cards' );
    		
    		return $text;
    	}
    	add_filter( 'yith_wcgc_template_product_name_text', 'yith_wcgc_template_product_name_text_custom', 10, 4 );
    }
    
    add_filter( 'ywgc_display_price_template_suggestion', '__return_false' );

    Could you check it and let us know, please?

    Have a nice day!

Viewing 1 replies (of 1 total)

The topic ‘Editing Confirmation email’ is closed to new replies.