PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
yith-woocommerce-gift-cards-premium
/
plugin-options
<?php /** * This file belongs to the YIT Plugin Framework. * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt */ if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly $general_options = array( 'general' => array( /** * * General settings * */ array( 'name' => __( 'General settings', 'yith-woocommerce-gift-cards' ), 'type' => 'title', ), 'ywgc_plugin_date_format_option' => array( 'name' => __( 'Date format', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'date-format', 'id' => 'ywgc_plugin_date_format_option', 'js' => true, 'desc' => __( 'Choose the date format for the gift card expiry date, date of delivery and so on.', 'yith-woocommerce-gift-cards' ), 'default' => 'yy-mm-dd', ), 'ywgc_enable_pre_printed' => array( 'name' => __( 'Disable code generation', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'onoff', 'id' => 'ywgc_enable_pre_printed', 'desc' => __( 'Enable this option if you want to create gift cards without any code.', 'yith-woocommerce-gift-cards' ), 'default' => 'no', ), 'ywgc_code_pattern' => array( 'id' => 'ywgc_code_pattern', 'name' => __( 'Gift card code pattern', 'yith-woocommerce-gift-cards' ), 'desc' => __( "Choose the pattern of new gift cards. If you set ***-*** your cards will have a code like: 1ME-D28.", 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'text', 'default' => '****-****-****-****', 'deps' => array( 'id' => 'ywgc_enable_pre_printed', 'value' => 'no', 'type' => 'hide' ) ), 'ywgc_apply_gc_code_on_gc_product' => array( 'name' => __( 'Prevent the use of a gift card to purchase another gift card', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'onoff', 'id' => 'ywgc_apply_gc_code_on_gc_product', 'desc' => __( 'If enabled, the use of gift cards codes to purchase a gift card product is not allowed.', 'yith-woocommerce-gift-cards' ), 'default' => 'no', ), 'ywgc_blind_carbon_copy' => array( 'name' => __( 'Gift card admin notification', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'onoff', 'id' => 'ywgc_blind_carbon_copy', 'desc' => __( 'If enabled, admin will receive a BCC email with the gift card code.', 'yith-woocommerce-gift-cards' ), 'default' => 'no', ), 'ywgc_blind_carbon_copy_to_buyer' => array( 'name' => __( 'Gift card sender notification', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'onoff', 'id' => 'ywgc_blind_carbon_copy_to_buyer', 'desc' => __( 'If enabled, the customer (the gift card sender) will receive a BCC email with the gift card code.', 'yith-woocommerce-gift-cards' ), 'default' => 'no', ), 'ywgc_notify_customer' => array( 'name' => __( 'Notify the use of a gift card', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'onoff', 'id' => 'ywgc_notify_customer', 'desc' => __( 'If enabled, the customer (who purchased the gift card) will receive an email notifying the use of the gift card purchased by him.', 'yith-woocommerce-gift-cards' ), 'default' => 'no', ), 'ywgc_allow_shop_manager' => array( 'name' => __( 'Enable Shop Managers', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'onoff', 'id' => 'ywgc_allow_shop_manager', 'desc' => __( 'If enabled, the user with role Shop Manager will be able to manage the plugin settings panel.', 'yith-woocommerce-gift-cards' ), 'default' => 'no', ), array( 'type' => 'sectionend', ), /** * * Global settings * */ array( 'name' => __( 'Global settings', 'yith-woocommerce-gift-cards' ), 'type' => 'title', 'desc' => __('These options will be applied to all your gift card products, but in the gift card product edit page you can override them if you want different values for specific gift cards.', 'yith-woocommerce-gift-cards' ), ), 'ywgc_select_amount_title' => array( 'name' => __( 'Title for “Set an amount” section', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'text', 'id' => 'ywgc_select_amount_title', 'desc' => __( "Enter a title for the 'Set an amount' area on your gift card page. This area will include the preset gift card amounts and the custom amount if enabled.", 'yith-woocommerce-gift-cards' ), 'custom_attributes' => "placeholder='write the set an amount area title'", 'default' => __( "Set an amount", 'yith-woocommerce-gift-cards'), ), 'ywgc_permit_free_amount' => array( 'name' => __( 'Enable/disable custom amount', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'onoff', 'id' => 'ywgc_permit_free_amount', 'desc' => __( 'If enabled, customers can enter a custom amount when buying a gift card.', 'yith-woocommerce-gift-cards' ), 'default' => 'no', ), 'ywgc_minimal_amount_gift_card' => array( 'id' => 'ywgc_minimal_amount_gift_card', 'name' => __( 'Minimum custom amount', 'yith-woocommerce-gift-cards' ), 'desc' => __( "Set a minimum value for the custom amount of your gift cards. Leave empty if you don't want to set a minimum amount.", 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'number', 'default' => '0', 'custom_attributes' => "placeholder='write a minimal amount'", 'min' => 0, 'deps' => array( 'id' => 'ywgc_permit_free_amount', 'value' => 'yes', ) ), 'ywgc_usage_expiration' => array( 'id' => 'ywgc_usage_expiration', 'name' => __( 'Gift card expiration date', 'yith-woocommerce-gift-cards' ), 'desc' => __( 'Set a default expiration for gift cards in months. If the value is zero, your gift cards will never expire.', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'number', 'default' => 0, 'custom_attributes' => "placeholder='write expiration date in months'", 'min' => 0, ), array( 'type' => 'sectionend', ), /** * * Gift card orders settings * */ array( 'name' => __( 'Gift card orders settings', 'yith-woocommerce-gift-cards' ), 'type' => 'title', ), 'ywgc_order_cancelled_action' => array( 'name' => __( 'When an order containing a gift card is cancelled', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'select', 'class' => 'wc-enhanced-select', 'id' => 'ywgc_order_cancelled_action', 'options' => array( 'nothing' => __( 'Do nothing', 'yith-woocommerce-gift-cards' ), 'disable' => __( 'Disable the gift cards', 'yith-woocommerce-gift-cards' ), 'dismiss' => __( 'Dismiss the gift cards', 'yith-woocommerce-gift-cards' ), ), 'default' => 'nothing', ), 'ywgc_order_refunded_action' => array( 'name' => __( 'When an order containing a gift card is refunded', 'yith-woocommerce-gift-cards' ), 'type' => 'yith-field', 'yith-type' => 'select', 'class' => 'wc-enhanced-select', 'id' => 'ywgc_order_refunded_action', 'options' => array( 'nothing' => __( 'Do nothing', 'yith-woocommerce-gift-cards' ), 'disable' => __( 'Disable the gift cards', 'yith-woocommerce-gift-cards' ), 'dismiss' => __( 'Dismiss the gift cards', 'yith-woocommerce-gift-cards' ), ), 'default' => 'nothing', ), array( 'type' => 'sectionend', ), 'convert_smart_coupons_tab_start' => array( 'type' => 'sectionstart', 'id' => 'yith_convert_smart_coupons_settings_tab_start' ), 'convert_smart_coupons_tab_title' => array( 'type' => 'title', 'desc' => '', 'id' => 'yith_convert_smart_coupons_tab' ), 'convert_smart_coupons_tab_button' => array( 'title' => '', 'desc' => '', 'id' => '', 'type' => 'yith_ywgc_transform_smart_coupons_html', 'html' => '', ), 'convert_smart_coupons_tab_end' => array( 'type' => 'sectionend', 'id' => 'yith_settings_tab_end' ), ), ); return apply_filters( 'yith_ywgc_general_options_array', $general_options );
[+]
..
[-] gift_this_product-options.php
[edit]
[-] recipient_delivery-options.php
[edit]
[-] cart_checkout-options.php
[edit]
[-] gift-cards-options.php
[edit]
[-] design-options.php
[edit]
[-] general-options.php
[edit]
[-] .plugin-options.php
[edit]
[-] gift-cards-category-options.php
[edit]