PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.7
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.7
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
merchant / inc / modules / countdown-timer / admin / options.php

options.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 1.7, at inc/modules/countdown-timer/admin/options.php

117 lines 3.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Cart Reserved Timer Options.
5 *
6 * @package Merchant
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit; // Exit if accessed directly
11 }
12
13 Merchant_Admin_Options::create( array(
14 'title' => esc_html__( 'Settings', 'merchant' ),
15 'module' => Merchant_Countdown_Timer::MODULE_ID,
16 'fields' => array(
17
18 array(
19 'id' => 'discount_products_only',
20 'type' => 'switcher',
21 'title' => esc_html__( 'Display on discounted products only', 'merchant' ),
22 'default' => true
23 ),
24
25 array(
26 'id' => 'sale_ending_text',
27 'type' => 'text',
28 'title' => esc_html__( 'Sale ending message', 'merchant' ),
29 'default' => esc_html__( 'Sale ends in', 'merchant' ),
30 'desc' => esc_html__( 'The message that shows up above the countdown timer.', 'merchant' ),
31 ),
32
33 array(
34 'id' => 'end_date',
35 'type' => 'select',
36 'title' => esc_html__( 'Countdown timer end date', 'merchant' ),
37 'options' => array(
38 'evergreen' => esc_html__( 'Evergreen', 'merchant' ),
39 'sale-dates' => esc_html__( 'Sale price dates', 'merchant' ),
40 ),
41 'default' => 'evergreen',
42 'desc' => esc_html__( 'Using "Evergreen", a unique expiration date will be randomly generated for each visitor and product based on the set minimum expiration. If "Sale price dates" is selected, it will follow the sale dates specified in the sale schedule on the product editing page.', 'merchant' ),
43 ),
44
45
46 array(
47 'id' => 'cool_off_period',
48 'type' => 'number',
49 'title' => esc_html__( 'Cool off period (minutes)', 'merchant' ),
50 'default' => 15,
51 'desc' => esc_html__( 'Once the cool off period expires, the countdown timer will be shown again (individually for each customer on each product page).', 'merchant' ),
52 'condition' => array( 'end_date', '==', 'evergreen' )
53 ),
54
55 array(
56 'id' => 'min_expiration_deadline',
57 'type' => 'number',
58 'title' => esc_html__( 'Minimum expiration deadline (hours)', 'merchant' ),
59 'default' => 2,
60 'condition' => array( 'end_date', '==', 'evergreen' )
61 ),
62
63 array(
64 'id' => 'max_expiration_deadline',
65 'type' => 'number',
66 'title' => esc_html__( 'Maximum expiration deadline (hours)', 'merchant' ),
67 'default' => 26,
68 'condition' => array( 'end_date', '==', 'evergreen' )
69 ),
70
71 ),
72 ) );
73
74 Merchant_Admin_Options::create( array(
75 'title' => esc_html__( 'Style', 'merchant' ),
76 'module' => Merchant_Countdown_Timer::MODULE_ID,
77 'fields' => array(
78
79 array(
80 'id' => 'sale_ending_alignment',
81 'type' => 'select',
82 'title' => esc_html__( 'Align', 'merchant' ),
83 'options' => array(
84 'left' => esc_html__( 'Left', 'merchant' ),
85 'center' => esc_html__( 'Center', 'merchant' ),
86 'right' => esc_html__( 'Right', 'merchant' ),
87 ),
88 'default' => 'left'
89 ),
90
91 array(
92 'id' => 'icon_color',
93 'type' => 'color',
94 'title' => esc_html__( 'Icon color', 'merchant' ),
95 'default' => '#626262'
96 ),
97
98 array(
99 'id' => 'sale_ending_color',
100 'type' => 'color',
101 'title' => esc_html__( 'Sale ending message text color', 'merchant' ),
102 'default' => '#626262',
103 ),
104
105 array(
106 'id' => 'digits_color',
107 'type' => 'color',
108 'title' => esc_html__( 'Color of the digits', 'merchant' ),
109 'default' => '#444444'
110 ),
111
112 ),
113 ) );
114
115
116
117