PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
yith-woocommerce-gift-cards-premium
/
templates
/
checkout
<?php /** * Checkout gift cards form * * This template can be overridden by copying it to yourtheme/woocommerce/checkout/form-gift-cards.php. * * @author YIThemes * @package yith-woocommerce-gift-cards-premium/Templates */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } if ( ! apply_filters( 'yith_gift_cards_show_field', true ) ) { return; } $direct_display = get_option ( 'ywgc_display_form', 'ywgc_display_form_hidden' ) == 'ywgc_display_form_visible' ? 'yes' : 'no'; if ( $direct_display != 'yes' ): ?> <div class="ywgc_have_code"> <?php if ( get_option( 'ywgc_icon_text_before_gc_form', 'no' ) == 'yes' ) { $icon = '<img src="' . YITH_YWGC_ASSETS_IMAGES_URL . 'card_giftcard_icon.svg' . '" class="material-icons ywgc_woocommerce_message_icon" style="margin-right: 6px; float: left;">'; } else{ $icon = ''; } wc_print_notice( $icon . get_option( 'ywgc_text_before_gc_form' , __( 'Got a gift card from a loved one?', 'yith-woocommerce-gift-cards' ) ) . ' <a href="#" class="ywgc-show-giftcard">' . get_option( 'ywgc_link_text_before_gc_form' , __( 'Use it here!', 'yith-woocommerce-gift-cards' ) ) . '</a>', 'notice' ); ?> </div> <?php endif; ?> <div class="ywgc_enter_code" method="post" style="<?php echo ( $direct_display != 'yes' ? 'display:none' : '' ); ?>"> <?php if ( get_option('ywgc_minimal_cart_total_option' , 'no' ) == 'yes' && WC()->cart->total < get_option ( 'ywgc_minimal_cart_total_value', '0' ) ): ?> <p class="woocommerce-error" role="alert"> <?php echo _x( "In order to apply the gift card, the total amount in the cart has to be at least", 'Apply gift card', 'yith-woocommerce-gift-cards' ) . " " . get_option ( 'ywgc_minimal_cart_total_value' ) . get_woocommerce_currency_symbol(); ?> </p> <?php endif; ?> <div style="position: relative"> <p><?php echo get_option( 'ywgc_text_in_the_form' , __( 'Apply the gift card code in the following field', 'yith-woocommerce-gift-cards' ) ); ?></p> <p class="form-row form-row-first"> <input type="text" name="gift_card_code" class="input-text" placeholder="<?php echo esc_attr( apply_filters( 'ywgc_checkout_box_placeholder', _x( 'Gift card code', 'Apply gift card', 'yith-woocommerce-gift-cards' ) ) ); ?>" id="giftcard_code" value="" /> </p> <p class="form-row form-row-last"> <button type="submit" class="button ywgc_apply_gift_card_button" name="ywgc_apply_gift_card" value="<?php echo get_option( 'ywgc_apply_gift_card_button_text' , __( 'Apply Gift Card', 'yith-woocommerce-gift-cards' ) ); ?>"><?php echo get_option( 'ywgc_apply_gift_card_button_text' , __( 'Apply Gift Card', 'yith-woocommerce-gift-cards' ) ); ?></button> <input type="hidden" name="is_gift_card" value="1" /> </p> <div class="clear"></div> <?php if ( WC()->cart->total < get_option ( 'ywgc_minimal_cart_total_value' ) ): ?><div class="yith_wc_gift_card_blank_brightness"></div><?php endif; ?> </div> </div>
[+]
..
[-] .checkout.php
[edit]
[-] form-gift-cards.php
[edit]