PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.2.7
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.2.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 / side-cart / admin / options.php

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

718 lines 24.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Side Cart 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 'module' => Merchant_Side_Cart::MODULE_ID,
15 'title' => esc_html__( 'Display Settings', 'merchant' ),
16 'fields' => array(
17 array(
18 'id' => 'show_after_add_to_cart',
19 'type' => 'switcher',
20 'title' => esc_html__( 'Shop Page', 'merchant' ),
21 'desc' => esc_html__( 'Show side cart after adding product to the cart from shop archive page', 'merchant' ),
22 'default' => 1,
23 ),
24 array(
25 'id' => 'show_after_add_to_cart_single_product',
26 'type' => 'switcher',
27 'title' => esc_html__( 'Product Page', 'merchant' ),
28 'desc' => esc_html__( 'Display side cart after adding product to the cart from product single page', 'merchant' ),
29 'default' => 0,
30 ),
31 array(
32 'id' => 'show_on_cart_url_click',
33 'type' => 'switcher',
34 'title' => esc_html__( 'Cart Icons', 'merchant' ),
35 'desc' => esc_html__( 'Show side cart when a user clicks on the cart URL or menu items', 'merchant' ),
36 'default' => 1,
37 ),
38 array(
39 'id' => 'slide_direction',
40 'type' => 'radio',
41 'title' => esc_html__( 'Cart position', 'merchant' ),
42 'options' => array(
43 'right' => esc_html__( 'Slide from right', 'merchant' ),
44 'left' => esc_html__( 'Slide from left', 'merchant' ),
45 ),
46 'default' => 'right',
47 ),
48 array(
49 'id' => 'use_discount_codes',
50 'type' => 'switcher',
51 'title' => esc_html__( 'Show discount codes input', 'merchant' ),
52 'default' => 0,
53 ),
54 array(
55 'id' => 'show_checkout_btn',
56 'type' => 'switcher',
57 'title' => esc_html__( 'Show checkout button', 'merchant' ),
58 'default' => 1,
59 ),
60 array(
61 'id' => 'checkout_btn_text',
62 'type' => 'text',
63 // 'title' => esc_html__( 'Placement', 'merchant' ),
64 'default' => esc_html__( 'Checkout', 'merchant' ),
65 'conditions' => array(
66 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
67 'terms' => array(
68 array(
69 'field' => 'show_checkout_btn', // field ID
70 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
71 'value' => true, // can be a single value or an array of string/number/int
72 ),
73 ),
74 ),
75 ),
76 array(
77 'id' => 'show_view_cart_btn',
78 'type' => 'switcher',
79 'title' => esc_html__( 'Show view cart button', 'merchant' ),
80 'default' => 1,
81 ),
82 array(
83 'id' => 'view_cart_btn_text',
84 'type' => 'text',
85 // 'title' => esc_html__( 'Placement', 'merchant' ),
86 'default' => esc_html__( 'View Cart', 'merchant' ),
87 'conditions' => array(
88 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
89 'terms' => array(
90 array(
91 'field' => 'show_view_cart_btn', // field ID
92 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
93 'value' => true, // can be a single value or an array of string/number/int
94 ),
95 ),
96 ),
97 ),
98 array(
99 'id' => 'use_strikethrough_prices',
100 'type' => 'switcher',
101 'title' => esc_html__( 'Show strikethrough prices', 'merchant' ),
102 'default' => 1,
103 ),
104 array(
105 'id' => 'show_savings',
106 'type' => 'switcher',
107 'title' => esc_html__( 'Show cart savings', 'merchant' ),
108 'default' => 0,
109 ),
110 array(
111 'id' => 'show_on_devices',
112 'type' => 'checkbox_multiple',
113 'title' => esc_html__( 'Show on devices', 'merchant' ),
114 'options' => array(
115 'desktop' => esc_html__( 'Desktop', 'merchant' ),
116 'mobile' => esc_html__( 'Mobile', 'merchant' ),
117 ),
118 'default' => array( 'desktop', 'mobile' ),
119 ),
120 ),
121 ) );
122
123 // Upsells
124 Merchant_Admin_Options::create( array(
125 'module' => Merchant_Side_Cart::MODULE_ID,
126 'title' => esc_html__( 'Upsells', 'merchant' ),
127 'fields' => array(
128 array(
129 'id' => 'use_upsells',
130 'type' => 'switcher',
131 'title' => esc_html__( 'Cart Upsells', 'merchant' ),
132 'desc' => esc_html__( 'Enable upsell products in the side cart', 'merchant' ),
133 'default' => 0,
134 ),
135 array(
136 'id' => 'upsells_type',
137 'type' => 'select',
138 //'title' => esc_html__( 'Placement', 'merchant' ),
139 'options' => array(
140 'related_products' => esc_html__( 'Related Products', 'merchant' ),
141 'custom_upsell' => esc_html__( 'Custom Upsells', 'merchant' ),
142 ),
143 'default' => 'related_products',
144 'conditions' => array(
145 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
146 'terms' => array(
147 array(
148 'field' => 'use_upsells', // field ID
149 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
150 'value' => true, // can be a single value or an array of string/number/int
151 ),
152 ),
153 ),
154 ),
155
156 array(
157 'id' => 'custom_upsells',
158 'type' => 'flexible_content',
159 'sorting' => true,
160 'accordion' => true,
161 'duplicate' => false,
162 'style' => Merchant_Side_Cart::MODULE_ID . '-style default',
163 'button_label' => esc_html__( 'Add New Upsell', 'merchant' ),
164 'conditions' => array(
165 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
166 'terms' => array(
167 array(
168 'field' => 'use_upsells', // field ID
169 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
170 'value' => true, // can be a single value or an array of string/number/int
171 ),
172 array(
173 'field' => 'upsells_type', // field ID
174 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
175 'value' => 'custom_upsell', // can be a single value or an array of string/number/int
176 ),
177 ),
178 ),
179 'default' => array(
180 array(
181 'layout' => 'upsell-details',
182 'upsell_based_on' => 'products',
183 'exclude_product_ids' => 0,
184 'custom_upsell_type' => 'products',
185 ),
186 ),
187 'layouts' => array(
188 'upsell-details' => array(
189 'title' => esc_html__( 'Custom Upsells', 'merchant' ),
190 'title-field' => 'offer-title', // text field ID to use as title for the layout
191 'fields' => array(
192 array(
193 'id' => 'upsell_based_on',
194 'type' => 'select',
195 'title' => esc_html__( 'Trigger to add the upsell for', 'merchant' ),
196 'options' => array(
197 'all' => esc_html__( 'All products', 'merchant' ),
198 'products' => esc_html__( 'Specific product', 'merchant' ),
199 'categories' => esc_html__( 'Specific category', 'merchant' ),
200 ),
201 'default' => 'products',
202 ),
203 array(
204 'id' => 'product_ids',
205 'type' => 'products_selector',
206 'title' => esc_html__( 'Select product(s)', 'merchant' ),
207 'multiple' => true,
208 'desc' => esc_html__( 'Select the product(s) that you want to add the upsell for', 'merchant' ),
209 'allowed_types' => array( 'simple', 'variable' ),
210 'conditions' => array(
211 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
212 'terms' => array(
213 array(
214 'field' => 'upsell_based_on', // field ID
215 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
216 'value' => 'products', // can be a single value or an array of string/number/int
217 ),
218 ),
219 ),
220 ),
221 array(
222 'id' => 'category_slugs',
223 'type' => 'select_ajax',
224 'title' => esc_html__( 'Select categories', 'merchant' ),
225 'source' => 'options',
226 'multiple' => true,
227 'options' => Merchant_Admin_Options::get_category_select2_choices(),
228 'placeholder' => esc_html__( 'Search categories', 'merchant' ),
229 'desc' => esc_html__( 'Select the categories that you want to add the upsell for.', 'merchant' ),
230 'conditions' => array(
231 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
232 'terms' => array(
233 array(
234 'field' => 'upsell_based_on', // field ID
235 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
236 'value' => 'categories', // can be a single value or an array of string/number/int
237 ),
238 ),
239 ),
240 ),
241 array(
242 'id' => 'exclusion_toggle',
243 'type' => 'switcher',
244 'title' => esc_html__( 'Exclusion List', 'merchant' ),
245 'desc' => esc_html__( 'Select products that will not display upsells.', 'merchant' ),
246 'default' => 0,
247 'conditions' => array(
248 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
249 'terms' => array(
250 array(
251 'field' => 'upsell_based_on', // field ID
252 'operator' => 'in', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
253 'value' => array( 'all', 'categories' ), // can be a single value or an array of string/number/int
254 ),
255 ),
256 ),
257 ),
258 array(
259 'id' => 'excluded_product_ids',
260 'type' => 'products_selector',
261 'title' => esc_html__( 'Exclude products', 'merchant' ),
262 'multiple' => true,
263 'desc' => esc_html__( 'Upsell will not be displayed for selected products.', 'merchant' ),
264 'allowed_types' => array( 'simple', 'variable' ),
265 'conditions' => array(
266 'relation' => 'OR', // AND/OR, If not provided, only first term will be considered
267 'terms' => array(
268 array(
269 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
270 'terms' => array(
271 array(
272 'field' => 'upsell_based_on', // field ID
273 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
274 'value' => 'all', // can be a single value or an array of string/number/int
275 ),
276 array(
277 'field' => 'exclusion_toggle', // field ID
278 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
279 'value' => true, // can be a single value or an array of string/number/int
280 ),
281 ),
282 ),
283 array(
284 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
285 'terms' => array(
286 array(
287 'field' => 'upsell_based_on', // field ID
288 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
289 'value' => 'categories', // can be a single value or an array of string/number/int
290 ),
291 array(
292 'field' => 'exclusion_toggle', // field ID
293 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
294 'value' => true, // can be a single value or an array of string/number/int
295 ),
296 ),
297 ),
298 ),
299 ),
300 ),
301 array(
302 'id' => 'excluded_category_slugs',
303 'type' => 'select_ajax',
304 'title' => esc_html__( 'Exclude categories', 'merchant' ),
305 'source' => 'options',
306 'multiple' => true,
307 'options' => Merchant_Admin_Options::get_category_select2_choices(),
308 'placeholder' => esc_html__( 'Search categories', 'merchant' ),
309 'desc' => esc_html__( 'Upsell will not be displayed for selected category products.', 'merchant' ),
310 'conditions' => array(
311 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
312 'terms' => array(
313 array(
314 'field' => 'upsell_based_on', // field ID
315 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
316 'value' => 'all', // can be a single value or an array of string/number/int
317 ),
318 array(
319 'field' => 'exclusion_toggle', // field ID
320 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
321 'value' => true, // can be a single value or an array of string/number/int
322 ),
323 ),
324 ),
325 ),
326 array(
327 'id' => 'custom_upsell_type',
328 'type' => 'select',
329 'title' => esc_html__( 'Trigger upsells', 'merchant' ),
330 'options' => array(
331 'products' => esc_html__( 'Specific product', 'merchant' ),
332 'categories' => esc_html__( 'Specific category', 'merchant' ),
333 ),
334 'default' => 'products',
335 ),
336 array(
337 'id' => 'upsells_product_ids',
338 'type' => 'products_selector',
339 'title' => esc_html__( 'Select product(s)', 'merchant' ),
340 'multiple' => true,
341 'desc' => esc_html__( 'Select the product(s) that you want to add the upsell for', 'merchant' ),
342 'allowed_types' => array( 'simple', 'variable' ),
343 'conditions' => array(
344 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
345 'terms' => array(
346 array(
347 'field' => 'custom_upsell_type', // field ID
348 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
349 'value' => 'products', // can be a single value or an array of string/number/int
350 ),
351 ),
352 ),
353 ),
354 array(
355 'id' => 'upsells_category_slugs',
356 'type' => 'select_ajax',
357 'title' => esc_html__( 'Select categories', 'merchant' ),
358 'source' => 'options',
359 'multiple' => true,
360 'options' => Merchant_Admin_Options::get_category_select2_choices(),
361 'placeholder' => esc_html__( 'Search categories', 'merchant' ),
362 'desc' => esc_html__( 'Select the categories that you want to display the upsell products from.', 'merchant' ),
363 'conditions' => array(
364 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
365 'terms' => array(
366 array(
367 'field' => 'custom_upsell_type', // field ID
368 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
369 'value' => 'categories', // can be a single value or an array of string/number/int
370 ),
371 ),
372 ),
373 ),
374 ),
375 ),
376 ),
377 ),
378
379 array(
380 'id' => 'upsells_products_count_limitation_toggle',
381 'label' => esc_html__( 'Limit the number of upsells in the cart', 'merchant' ),
382 'type' => 'checkbox',
383 'default' => 0,
384 'conditions' => array(
385 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
386 'terms' => array(
387 array(
388 'field' => 'use_upsells', // field ID
389 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
390 'value' => true, // can be a single value or an array of string/number/int
391 ),
392 ),
393 ),
394 ),
395 array(
396 'id' => 'upsells_products_count_limitation',
397 'title' => esc_html__( 'Maximum number of upsells to display', 'merchant' ),
398 'type' => 'number',
399 'default' => 5,
400 'min' => 1,
401 'step' => 1,
402 'conditions' => array(
403 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
404 'terms' => array(
405 array(
406 'field' => 'use_upsells', // field ID
407 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
408 'value' => true, // can be a single value or an array of string/number/int
409 ),
410 array(
411 'field' => 'upsells_products_count_limitation_toggle', // field ID
412 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
413 'value' => true, // can be a single value or an array of string/number/int
414 ),
415 ),
416 ),
417 ),
418 array(
419 'id' => 'upsells_title',
420 'title' => esc_html__( 'Upsell title', 'merchant' ),
421 'type' => 'text',
422 'default' => esc_html__( 'You might also like', 'merchant' ),
423 'conditions' => array(
424 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
425 'terms' => array(
426 array(
427 'field' => 'use_upsells', // field ID
428 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
429 'value' => true, // can be a single value or an array of string/number/int
430 ),
431 ),
432 ),
433 ),
434 array(
435 'id' => 'upsells_add_to_cart_text',
436 'title' => esc_html__( 'Button text', 'merchant' ),
437 'type' => 'text',
438 'default' => esc_html__( 'Add', 'merchant' ),
439 'conditions' => array(
440 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
441 'terms' => array(
442 array(
443 'field' => 'use_upsells', // field ID
444 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
445 'value' => true, // can be a single value or an array of string/number/int
446 ),
447 ),
448 ),
449 ),
450 array(
451 'id' => 'upsells_style',
452 'type' => 'select',
453 'title' => esc_html__( 'Upsell layout', 'merchant' ),
454 'options' => array(
455 'carousel' => esc_html__( 'Carousel', 'merchant' ),
456 'block' => esc_html__( 'List', 'merchant' ),
457 ),
458 'default' => 'block',
459 'conditions' => array(
460 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
461 'terms' => array(
462 array(
463 'field' => 'use_upsells', // field ID
464 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
465 'value' => true, // can be a single value or an array of string/number/int
466 ),
467 ),
468 ),
469 ),
470 ),
471 ) );
472
473 // Floating Mini Cart
474 Merchant_Admin_Options::create( array(
475 'module' => Merchant_Side_Cart::MODULE_ID,
476 'title' => esc_html__( 'Floating Mini Cart', 'merchant' ),
477 'fields' => array(
478 array(
479 'id' => 'enable-floating-cart',
480 'type' => 'switcher',
481 'title' => esc_html__( 'Floating cart', 'merchant' ),
482 'desc' => esc_html__( 'Enable floating cart icon', 'merchant' ),
483 'default' => 0,
484 ),
485
486 array(
487 'id' => 'icon-display',
488 'type' => 'select',
489 'title' => esc_html__( 'Display', 'merchant' ),
490 'options' => array(
491 'cart-not-empty' => esc_html__( 'When cart is not empty', 'merchant' ),
492 'always' => esc_html__( 'Always', 'merchant' ),
493 ),
494 'default' => 'always',
495 'condition' => array( 'enable-floating-cart', '==', '1' ),
496 ),
497
498 array(
499 'id' => 'icon',
500 'type' => 'choices',
501 'title' => esc_html__( 'Icon', 'merchant' ),
502 'options' => array(
503 'cart-icon-1' => MERCHANT_URI . 'assets/images/icons/side-cart/admin/cart-icon-1.svg',
504 'cart-icon-2' => MERCHANT_URI . 'assets/images/icons/side-cart/admin/cart-icon-2.svg',
505 'cart-icon-3' => MERCHANT_URI . 'assets/images/icons/side-cart/admin/cart-icon-3.svg',
506 'cart-icon-4' => MERCHANT_URI . 'assets/images/icons/side-cart/admin/cart-icon-4.svg',
507 'cart-icon-5' => MERCHANT_URI . 'assets/images/icons/side-cart/admin/cart-icon-5.svg',
508 ),
509 'default' => 'cart-icon-1',
510 'condition' => array( 'enable-floating-cart', '==', '1' ),
511 ),
512
513 array(
514 'id' => 'icon-position',
515 'type' => 'radio',
516 'title' => esc_html__( 'Position', 'merchant' ),
517 'options' => array(
518 'left' => esc_html__( 'Left', 'merchant' ),
519 'right' => esc_html__( 'Right', 'merchant' ),
520 ),
521 'default' => 'right',
522 'condition' => array( 'enable-floating-cart', '==', '1' ),
523 ),
524
525 array(
526 'id' => 'icon-size',
527 'type' => 'range',
528 'title' => esc_html__( 'Icon size', 'merchant' ),
529 'min' => 0,
530 'max' => 250,
531 'step' => 1,
532 'default' => 25,
533 'unit' => 'px',
534 'condition' => array( 'enable-floating-cart', '==', '1' ),
535 ),
536
537 array(
538 'id' => 'icon-corner-offset',
539 'type' => 'range',
540 'title' => esc_html__( 'Corner offset', 'merchant' ),
541 'min' => 0,
542 'max' => 250,
543 'step' => 1,
544 'default' => 30,
545 'unit' => 'px',
546 'condition' => array( 'enable-floating-cart', '==', '1' ),
547 ),
548
549 array(
550 'id' => 'icon-border-radius',
551 'type' => 'range',
552 'title' => esc_html__( 'Border radius', 'merchant' ),
553 'min' => 0,
554 'max' => 35,
555 'step' => 1,
556 'default' => 35,
557 'unit' => 'px',
558 'condition' => array( 'enable-floating-cart', '==', '1' ),
559 ),
560
561 array(
562 'id' => 'icon-color',
563 'type' => 'color',
564 'title' => esc_html__( 'Icon color', 'merchant' ),
565 'default' => '#ffffff',
566 'condition' => array( 'enable-floating-cart', '==', '1' ),
567 ),
568
569 array(
570 'id' => 'icon-background-color',
571 'type' => 'color',
572 'title' => esc_html__( 'Background color', 'merchant' ),
573 'default' => '#212121',
574 'condition' => array( 'enable-floating-cart', '==', '1' ),
575 ),
576
577 array(
578 'id' => 'icon-counter-color',
579 'type' => 'color',
580 'title' => esc_html__( 'Counter color', 'merchant' ),
581 'default' => '#ffffff',
582 'condition' => array( 'enable-floating-cart', '==', '1' ),
583 ),
584
585 array(
586 'id' => 'icon-counter-background-color',
587 'type' => 'color',
588 'title' => esc_html__( 'Counter background color', 'merchant' ),
589 'default' => '#757575',
590 'condition' => array( 'enable-floating-cart', '==', '1' ),
591 ),
592 ),
593 ) );
594
595 // Side Cart Settings
596 Merchant_Admin_Options::create( array(
597 'module' => Merchant_Side_Cart::MODULE_ID,
598 'title' => esc_html__( 'Look and Feel', 'merchant' ),
599 'fields' => array(
600
601 array(
602 'id' => 'side-cart-width',
603 'type' => 'range',
604 'title' => esc_html__( 'Side cart width', 'merchant' ),
605 'min' => 0,
606 'max' => 2000,
607 'step' => 1,
608 'default' => 380,
609 'unit' => 'px',
610 ),
611
612 array(
613 'id' => 'side-cart-title-color',
614 'type' => 'color',
615 'title' => esc_html__( 'Title color', 'merchant' ),
616 'default' => '#212121',
617 ),
618
619 array(
620 'id' => 'side-cart-title-icon-color',
621 'type' => 'color',
622 'title' => esc_html__( 'Title icon color', 'merchant' ),
623 'default' => '#212121',
624 ),
625
626 array(
627 'id' => 'side-cart-title-background-color',
628 'type' => 'color',
629 'title' => esc_html__( 'Title background color', 'merchant' ),
630 'default' => '#cccccc',
631 ),
632
633 array(
634 'id' => 'side-cart-content-text-color',
635 'type' => 'color',
636 'title' => esc_html__( 'Content text color', 'merchant' ),
637 'default' => '#212121',
638 ),
639
640 array(
641 'id' => 'side-cart-content-background-color',
642 'type' => 'color',
643 'title' => esc_html__( 'Content background color', 'merchant' ),
644 'default' => '#ffffff',
645 ),
646
647 array(
648 'id' => 'side-cart-content-remove-color',
649 'type' => 'color',
650 'title' => esc_html__( 'Content (x) color', 'merchant' ),
651 'default' => '#ffffff',
652 ),
653
654 array(
655 'id' => 'side-cart-content-remove-background-color',
656 'type' => 'color',
657 'title' => esc_html__( 'Content (x) background color', 'merchant' ),
658 'default' => '#212121',
659 ),
660
661 array(
662 'id' => 'side-cart-total-text-color',
663 'type' => 'color',
664 'title' => esc_html__( 'Total text color', 'merchant' ),
665 'default' => '#212121',
666 ),
667
668 array(
669 'id' => 'side-cart-total-background-color',
670 'type' => 'color',
671 'title' => esc_html__( 'Total background color', 'merchant' ),
672 'default' => '#f5f5f5',
673 ),
674
675 array(
676 'id' => 'side-cart-button-color',
677 'type' => 'color',
678 'title' => esc_html__( 'Button color', 'merchant' ),
679 'default' => '#ffffff',
680 ),
681
682 array(
683 'id' => 'side-cart-button-color-hover',
684 'type' => 'color',
685 'title' => esc_html__( 'Button color hover', 'merchant' ),
686 'default' => '#ffffff',
687 ),
688
689 array(
690 'id' => 'side-cart-button-border-color',
691 'type' => 'color',
692 'title' => esc_html__( 'Button border color', 'merchant' ),
693 'default' => '#212121',
694 ),
695
696 array(
697 'id' => 'side-cart-button-border-color-hover',
698 'type' => 'color',
699 'title' => esc_html__( 'Button border color hover', 'merchant' ),
700 'default' => '#313131',
701 ),
702
703 array(
704 'id' => 'side-cart-button-background-color',
705 'type' => 'color',
706 'title' => esc_html__( 'Button background color', 'merchant' ),
707 'default' => '#212121',
708 ),
709
710 array(
711 'id' => 'side-cart-button-background-color-hover',
712 'type' => 'color',
713 'title' => esc_html__( 'Button background color hover', 'merchant' ),
714 'default' => '#313131',
715 ),
716 ),
717 ) );
718