PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 1.8.3
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v1.8.3
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 1.8.3, at inc/modules/side-cart/admin/options.php

163 lines 4.1 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__( 'Settings', 'merchant' ),
16 'fields' => array(
17 array(
18 'id' => 'show_after_add_to_cart',
19 'type' => 'switcher',
20 'title' => __( 'Display after adding a product to the cart on shop', 'merchant' ),
21 'default' => 1,
22 ),
23 array(
24 'id' => 'show_after_add_to_cart_single_product',
25 'type' => 'switcher',
26 'title' => __( 'Display after adding a product to the cart on single product page', 'merchant' ),
27 'default' => 0,
28 ),
29 array(
30 'id' => 'show_on_cart_url_click',
31 'type' => 'switcher',
32 'title' => __( 'Display on cart URL click', 'merchant' ),
33 'default' => 1,
34 ),
35 ),
36 ) );
37
38
39 // Side Cart Settings
40 Merchant_Admin_Options::create( array(
41 'title' => esc_html__( 'Side Cart Settings', 'merchant' ),
42 'module' => 'floating-mini-cart',
43 'fields' => array(
44
45 array(
46 'id' => 'side-cart-width',
47 'type' => 'range',
48 'title' => esc_html__( 'Side cart width', 'merchant' ),
49 'min' => 0,
50 'max' => 2000,
51 'step' => 1,
52 'default' => 380,
53 'unit' => 'px',
54 ),
55
56 array(
57 'id' => 'side-cart-title-color',
58 'type' => 'color',
59 'title' => esc_html__( 'Title color', 'merchant' ),
60 'default' => '#212121',
61 ),
62
63 array(
64 'id' => 'side-cart-title-icon-color',
65 'type' => 'color',
66 'title' => esc_html__( 'Title icon color', 'merchant' ),
67 'default' => '#212121',
68 ),
69
70 array(
71 'id' => 'side-cart-title-background-color',
72 'type' => 'color',
73 'title' => esc_html__( 'Title background color', 'merchant' ),
74 'default' => '#cccccc',
75 ),
76
77 array(
78 'id' => 'side-cart-content-text-color',
79 'type' => 'color',
80 'title' => esc_html__( 'Content text color', 'merchant' ),
81 'default' => '#212121',
82 ),
83
84 array(
85 'id' => 'side-cart-content-background-color',
86 'type' => 'color',
87 'title' => esc_html__( 'Content background color', 'merchant' ),
88 'default' => '#ffffff',
89 ),
90
91 array(
92 'id' => 'side-cart-content-remove-color',
93 'type' => 'color',
94 'title' => esc_html__( 'Content (x) color', 'merchant' ),
95 'default' => '#ffffff',
96 ),
97
98 array(
99 'id' => 'side-cart-content-remove-background-color',
100 'type' => 'color',
101 'title' => esc_html__( 'Content (x) background color', 'merchant' ),
102 'default' => '#212121',
103 ),
104
105 array(
106 'id' => 'side-cart-total-text-color',
107 'type' => 'color',
108 'title' => esc_html__( 'Total text color', 'merchant' ),
109 'default' => '#212121',
110 ),
111
112 array(
113 'id' => 'side-cart-total-background-color',
114 'type' => 'color',
115 'title' => esc_html__( 'Total background color', 'merchant' ),
116 'default' => '#f5f5f5',
117 ),
118
119 array(
120 'id' => 'side-cart-button-color',
121 'type' => 'color',
122 'title' => esc_html__( 'Button color', 'merchant' ),
123 'default' => '#ffffff',
124 ),
125
126 array(
127 'id' => 'side-cart-button-color-hover',
128 'type' => 'color',
129 'title' => esc_html__( 'Button color hover', 'merchant' ),
130 'default' => '#ffffff',
131 ),
132
133 array(
134 'id' => 'side-cart-button-border-color',
135 'type' => 'color',
136 'title' => esc_html__( 'Button border color', 'merchant' ),
137 'default' => '#212121',
138 ),
139
140 array(
141 'id' => 'side-cart-button-border-color-hover',
142 'type' => 'color',
143 'title' => esc_html__( 'Button border color hover', 'merchant' ),
144 'default' => '#313131',
145 ),
146
147 array(
148 'id' => 'side-cart-button-background-color',
149 'type' => 'color',
150 'title' => esc_html__( 'Button background color', 'merchant' ),
151 'default' => '#212121',
152 ),
153
154 array(
155 'id' => 'side-cart-button-background-color-hover',
156 'type' => 'color',
157 'title' => esc_html__( 'Button background color hover', 'merchant' ),
158 'default' => '#313131',
159 ),
160
161 ),
162 ) );
163