PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.6
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.6
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 / free-gifts / admin / options.php

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

208 lines 5.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Free Gifts Options.
5 *
6 * @package Merchant
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit; // Exit if accessed directly
11 }
12
13
14 // Settings
15 Merchant_Admin_Options::create( array(
16 'module' => Merchant_Free_Gifts::MODULE_ID,
17 'title' => esc_html__( 'Settings', 'merchant' ),
18 'fields' => array(
19 array(
20 'id' => 'total_type',
21 'type' => 'select',
22 'title' => esc_html__( 'Gift based on spending type', 'merchant' ),
23 'desc' => esc_html__( 'To which the spending goal should be based on to receive gifts. "Cart Subtotal" does not include additional calculated discounts, whereas the "Cart Total" does.',
24 'merchant' ),
25 'options' => array(
26 'subtotal' => esc_html__( 'Cart subtotal', 'merchant' ),
27 'total' => esc_html__( 'Cart total', 'merchant' ),
28 ),
29 'default' => 'subtotal'
30 ),
31 ),
32 ) );
33
34 // Display Settings
35 Merchant_Admin_Options::create( array(
36 'module' => Merchant_Free_Gifts::MODULE_ID,
37 'title' => esc_html__( 'Display Settings', 'merchant' ),
38 'fields' => array(
39
40 array(
41 'id' => 'display_homepage',
42 'type' => 'checkbox',
43 'title' => __( 'Show on homepage', 'merchant' ),
44 'default' => 1
45 ),
46 array(
47 'id' => 'display_shop',
48 'type' => 'checkbox',
49 'title' => __( 'Show on shop page', 'merchant' ),
50 'default' => 1
51 ),
52 array(
53 'id' => 'display_product',
54 'type' => 'checkbox',
55 'title' => __( 'Show on product page', 'merchant' ),
56 'default' => 1
57 ),
58 array(
59 'id' => 'display_cart',
60 'type' => 'checkbox',
61 'title' => __( 'Show on cart page', 'merchant' ),
62 'default' => 1
63 ),
64 ),
65 ) );
66
67 // Text Formatting Settings
68 Merchant_Admin_Options::create( array(
69 'title' => esc_html__( 'Text Formatting Settings', 'merchant' ),
70 'module' => Merchant_Free_Gifts::MODULE_ID,
71 'fields' => array(
72
73 array(
74 'id' => 'spending_text',
75 'type' => 'text',
76 'title' => esc_html__( 'Spending text', 'merchant' ),
77 'default' => esc_html__( 'Spend {amount} more to receive this free gift!', 'merchant' ),
78 ),
79
80 array(
81 'id' => 'free_text',
82 'type' => 'text',
83 'title' => esc_html__( 'Free text', 'merchant' ),
84 'default' => esc_html__( 'Free', 'merchant' ),
85 ),
86
87 array(
88 'id' => 'cart_title_text',
89 'type' => 'text',
90 'title' => esc_html__( 'Cart item title text', 'merchant' ),
91 'default' => esc_html__( 'Free Gift', 'merchant' ),
92 'desc' => esc_html__( 'This is displayed on the cart page.', 'merchant' ),
93 ),
94
95 array(
96 'id' => 'cart_description_text',
97 'type' => 'text',
98 'title' => esc_html__( 'Cart item description text', 'merchant' ),
99 'default' => esc_html__( 'This item was added as a free gift', 'merchant' ),
100 'desc' => esc_html__( 'This is displayed on the cart page.', 'merchant' ),
101 ),
102 )
103 ) );
104
105
106 // Style Settings
107 Merchant_Admin_Options::create( array(
108 'module' => Merchant_Free_Gifts::MODULE_ID,
109 'title' => esc_html__( 'Style Settings', 'merchant' ),
110 'fields' => array(
111
112 array(
113 'id' => 'count_bg_color',
114 'type' => 'color',
115 'title' => esc_html__( 'Count background color', 'merchant' ),
116 'default' => '#000'
117 ),
118
119 array(
120 'id' => 'count_text_color',
121 'type' => 'color',
122 'title' => esc_html__( 'Count text color', 'merchant' ),
123 'default' => '#fff'
124 ),
125
126 array(
127 'id' => 'button_bg_color',
128 'type' => 'color',
129 'title' => esc_html__( 'Gift button background color', 'merchant' ),
130 'default' => '#362e94'
131 ),
132
133 array(
134 'id' => 'button_hover_bg_color',
135 'type' => 'color',
136 'title' => esc_html__( 'Gift button Hover background color', 'merchant' ),
137 'default' => '#7167e1'
138 ),
139
140 array(
141 'id' => 'button_text_color',
142 'type' => 'color',
143 'title' => esc_html__( 'Gift button Icon color', 'merchant' ),
144 'default' => '#fff'
145 ),
146
147 array(
148 'id' => 'content_width',
149 'type' => 'range',
150 'title' => esc_html__( 'Content width', 'merchant' ),
151 'min' => 0,
152 'max' => 600,
153 'step' => 1,
154 'unit' => 'px',
155 'default' => 300
156 ),
157
158 array(
159 'id' => 'content_bg_color',
160 'type' => 'color',
161 'title' => esc_html__( 'Content background color', 'merchant' ),
162 'default' => '#fff'
163 ),
164
165 array(
166 'id' => 'label_bg_color',
167 'type' => 'color',
168 'title' => esc_html__( 'Label background color', 'merchant' ),
169 'default' => '#f5f5f5'
170 ),
171
172 array(
173 'id' => 'label_text_color',
174 'type' => 'color',
175 'title' => esc_html__( 'Label text color', 'merchant' ),
176 'default' => '#212121'
177 ),
178
179 array(
180 'id' => 'product_text_color',
181 'type' => 'color',
182 'title' => esc_html__( 'Product text color', 'merchant' ),
183 'default' => '#212121'
184 ),
185
186 array(
187 'id' => 'product_text_hover_color',
188 'type' => 'color',
189 'title' => esc_html__( 'Product hover text color', 'merchant' ),
190 'default' => '#757575'
191 ),
192
193 array(
194 'id' => 'product_price_text_color',
195 'type' => 'color',
196 'title' => esc_html__( 'Product price text color', 'merchant' ),
197 'default' => '#999999'
198 ),
199
200 array(
201 'id' => 'free_text_color',
202 'type' => 'color',
203 'title' => esc_html__( 'Free text color', 'merchant' ),
204 'default' => '#212121'
205 ),
206 ),
207 )
208 );