How to hide the field for entering the code on the page cart or checkout
To hide the field for entering the code on the page cart or checkout you should paste this code in functions.php of your theme:
/* YITH Gift Cards - hide the section for gift card code submission on cart page */ if ( ! function_exists( 'yith_ywgc_hide_on_cart' ) ) { function yith_ywgc_hide_on_cart( $show_field ) { if ( is_cart() ) { $show_field = false; } return $show_field; } } add_filter( 'yith_gift_cards_show_field', 'yith_ywgc_hide_on_cart' ); /* YITH Gift Cards - hide the section for gift card code submission on checkout page */ if ( ! function_exists( 'yith_ywgc_hide_on_checkout' ) ) { function yith_ywgc_hide_on_checkout( $show_field ) { if ( is_checkout() ) { $show_field = false; } return $show_field; } } add_filter( 'yith_gift_cards_show_field', 'yith_ywgc_hide_on_checkout' );