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

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

628 lines 24.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Volume Discounts 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__( 'Offers', 'merchant' ),
15 'module' => Merchant_Volume_Discounts::MODULE_ID,
16 'fields' => array(
17 array(
18 'id' => 'offers',
19 'type' => 'flexible_content',
20 'button_label' => esc_html__( 'Add New Offer', 'merchant' ),
21 'style' => Merchant_Volume_Discounts::MODULE_ID . '-style default',
22 'sorting' => true,
23 'accordion' => true,
24 'duplicate' => true,
25 'layouts' => array(
26 'offer-details' => array(
27 'title' => esc_html__( 'Create Discount Tiers', 'merchant' ),
28 'title-field' => 'offer-title', // text field ID to use as title for the layout
29 'fields' => array(
30 array(
31 'id' => 'offer-title',
32 'type' => 'text',
33 'title' => esc_html__( 'Offer name', 'merchant' ),
34 'default' => esc_html__( 'Campaign', 'merchant' ),
35 ),
36 array(
37 'id' => 'rules_to_display',
38 'type' => 'select',
39 'title' => esc_html__( 'Offered product(s)', 'merchant' ),
40 'options' => array(
41 'all' => esc_html__( 'All Products', 'merchant' ),
42 'products' => esc_html__( 'Specific Products', 'merchant' ),
43 'categories' => esc_html__( 'Specific Categories', 'merchant' ),
44 'tags' => esc_html__( 'Specific Tags', 'merchant' ),
45 ),
46 'default' => 'products',
47 ),
48 array(
49 'id' => 'include_all_cart_products',
50 'type' => 'switcher',
51 'title' => esc_html__( 'Include all cart products', 'merchant' ),
52 'desc' => esc_html__( 'Apply the discount based on the total quantity of products added to the cart, rather than requiring a specific quantity of each individual product.', 'merchant' ),
53 'default' => false,
54 'condition' => array( 'rules_to_display', '==', 'all' ),
55 ),
56 array(
57 'id' => 'product_id',
58 'type' => 'products_selector',
59 //'title' => esc_html__( 'Select product', 'merchant' ),
60 'multiple' => true,
61 'desc' => esc_html__( 'Select the product that the customer will get a discount on when they purchase the minimum required quantity.',
62 'merchant' ),
63 'allowed_types' => array( 'simple', 'variable' ),
64 'condition' => array( 'rules_to_display', '==', 'products' ),
65 ),
66 array(
67 'id' => 'category_slugs',
68 'type' => 'select_ajax',
69 'title' => esc_html__( 'Categories', 'merchant' ),
70 'source' => 'options',
71 'multiple' => true,
72 'options' => Merchant_Admin_Options::get_category_select2_choices(),
73 'placeholder' => esc_html__( 'Select categories', 'merchant' ),
74 'desc' => esc_html__( 'Select the product categories that will show the offer.', 'merchant' ),
75 'condition' => array( 'rules_to_display', '==', 'categories' ),
76 ),
77 array(
78 'id' => 'include_all_category_products',
79 'type' => 'switcher',
80 'title' => esc_html__( 'Include all category products', 'merchant' ),
81 'desc' => esc_html__( 'Apply the discount based on the total quantity of products within the same category added to the cart, rather than requiring a specific quantity of each individual product.', 'merchant' ),
82 'default' => false,
83 'condition' => array( 'rules_to_display', '==', 'categories' ),
84 ),
85 array(
86 'id' => 'include_all_products_info',
87 'type' => 'info',
88 'content' => esc_html__( 'When configuring offer priorities, consider the order in which they are applied. Typically, more general offers should be prioritized higher to ensure consistent discount application. You can control the priority by sorting the offers—offers listed at the top have the highest priority. However, note that this setup will not work on the thank you page.',
89 'merchant' ),
90 'conditions' => array(
91 'relation' => 'OR', // AND/OR, If not provided, only first term will be considered
92 'terms' => array(
93 array(
94 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
95 'terms' => array(
96 array(
97 'field' => 'rules_to_display', // field ID
98 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
99 'value' => 'categories', // can be a single value or an array of string/number/int
100 ),
101 array(
102 'field' => 'include_all_category_products', // field ID
103 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
104 'value' => true, // can be a single value or an array of string/number/int
105 ),
106 ),
107 ),
108 array(
109 'relation' => 'AND', // AND/OR, If not provided, only first term will be considered
110 'terms' => array(
111 array(
112 'field' => 'rules_to_display', // field ID
113 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
114 'value' => 'all', // can be a single value or an array of string/number/int
115 ),
116 array(
117 'field' => 'include_all_cart_products', // field ID
118 'operator' => '===', // Available operators: ===, !==, >, <, >=, <=, in, !in, contains, !contains
119 'value' => true, // can be a single value or an array of string/number/int
120 ),
121 ),
122 ),
123 ),
124 ),
125 ),
126 array(
127 'id' => 'tag_slugs',
128 'type' => 'select_ajax',
129 'title' => esc_html__( 'Tags', 'merchant' ),
130 'source' => 'options',
131 'multiple' => true,
132 'options' => Merchant_Admin_Options::get_tag_select2_choices(),
133 'placeholder' => esc_html__( 'Select tags', 'merchant' ),
134 'desc' => esc_html__( 'Select the product tags that will show the offer.', 'merchant' ),
135 'condition' => array( 'rules_to_display', '==', 'tags' ),
136 ),
137 array(
138 'id' => 'excluded_products',
139 'type' => 'products_selector',
140 'title' => esc_html__( 'Exclude Products', 'merchant' ),
141 'multiple' => true,
142 'desc' => esc_html__( 'Exclude products from this campaign.', 'merchant' ),
143 'condition' => array( 'rules_to_display', 'any', 'all|categories|tags' ),
144 ),
145 array(
146 'id' => 'excluded_categories',
147 'type' => 'select_ajax',
148 'title' => esc_html__( 'Exclude Categories', 'merchant' ),
149 'source' => 'options',
150 'multiple' => true,
151 'options' => Merchant_Admin_Options::get_category_select2_choices(),
152 'placeholder' => esc_html__( 'Select categories', 'merchant' ),
153 'desc' => esc_html__( 'Exclude categories from this campaign.', 'merchant' ),
154 'condition' => array( 'rules_to_display', '==', 'all' ),
155 ),
156 array(
157 'id' => 'quantity',
158 'type' => 'number',
159 'title' => esc_html__( 'Quantity', 'merchant' ),
160 'default' => 2,
161 ),
162
163 array(
164 'id' => 'discount_type',
165 'type' => 'radio',
166 'title' => esc_html__( 'Discount', 'merchant' ),
167 'options' => array(
168 'percentage_discount' => esc_html__( 'Percentage', 'merchant' ),
169 'fixed_discount' => esc_html__( 'Fixed', 'merchant' ),
170 ),
171 'default' => 'percentage_discount',
172 ),
173 array(
174 'id' => 'discount',
175 'type' => 'number',
176 'step' => 0.01,
177 'default' => 10,
178 ),
179
180 array(
181 'id' => 'exclude_coupon',
182 'type' => 'switcher',
183 'title' => esc_html__( 'Exclude coupons', 'merchant' ),
184 'desc' => esc_html__( 'Coupon codes will not be applicable on top of this offer campaign.', 'merchant' ),
185 'default' => false,
186 ),
187
188 array(
189 'id' => 'user_condition',
190 'type' => 'select',
191 'title' => esc_html__( 'User Condition', 'merchant' ),
192 'options' => array(
193 'all' => esc_html__( 'All Users', 'merchant' ),
194 'customers' => esc_html__( 'Selected Users', 'merchant' ),
195 'roles' => esc_html__( 'Selected Roles', 'merchant' ),
196 ),
197 'default' => 'all',
198 ),
199
200 array(
201 'id' => 'user_condition_roles',
202 'type' => 'select_ajax',
203 'title' => esc_html__( 'User Roles', 'merchant' ),
204 'desc' => esc_html__( 'This will limit the offer to users with these roles.', 'merchant' ),
205 'source' => 'options',
206 'multiple' => true,
207 'classes' => array( 'flex-grow' ),
208 'options' => Merchant_Admin_Options::get_user_roles_select2_choices(),
209 'condition' => array( 'user_condition', '==', 'roles' ),
210 ),
211
212 array(
213 'id' => 'user_condition_users',
214 'type' => 'select_ajax',
215 'title' => esc_html__( 'Users', 'merchant' ),
216 'desc' => esc_html__( 'This will limit the offer to the selected customers.', 'merchant' ),
217 'source' => 'user',
218 'multiple' => true,
219 'classes' => array( 'flex-grow' ),
220 'condition' => array( 'user_condition', '==', 'customers' ),
221 ),
222
223 array(
224 'id' => 'product_single_page',
225 'type' => 'fields_group',
226 'title' => esc_html__( 'Product Single Page', 'merchant' ),
227 'sub-desc' => esc_html__( 'Use these settings to control how bulk discount offers appear on product pages.', 'merchant' ),
228 'state' => 'open',
229 'accordion' => true,
230 'display_status' => true,
231 'default' => 'active',
232 'fields' => array(
233 array(
234 'id' => 'single_product_placement',
235 'type' => 'radio',
236 'title' => esc_html__( 'Placement on product page', 'merchant' ),
237 'options' => array(
238 'before-cart-form' => esc_html__( 'Before add to cart', 'merchant' ),
239 'after-cart-form' => esc_html__( 'After add to cart', 'merchant' ),
240 ),
241 'default' => 'before-cart-form',
242 ),
243
244 // text formatting
245 array(
246 'id' => 'table_title',
247 'type' => 'text',
248 'title' => esc_html__( 'Offer title', 'merchant' ),
249 'default' => __( 'Buy more, save more!', 'merchant' ),
250 ),
251
252 // `hidden_desc` depends on `desc`
253 array(
254 'id' => 'save_label',
255 'type' => 'text',
256 'title' => esc_html__( 'Save label', 'merchant' ),
257 'default' => esc_html__( 'Save {amount}', 'merchant' ),
258 'desc' => __( 'You can use these codes in the content.', 'merchant' ),
259 'hidden_desc' => sprintf(
260 /* Translators: %1$s: Discount amount, %2$s: Discount percentage */
261 __( '<strong>%1$s:</strong> to show discount amount<br><strong>%2$s:</strong> to show discount percentage', 'merchant' ),
262 '{amount}',
263 '{percent}'
264 ),
265 ),
266
267 array(
268 'id' => 'buy_text',
269 'type' => 'text',
270 'title' => esc_html__( 'Tier format text', 'merchant' ),
271 'default' => esc_html__( 'Buy {quantity}, get {discount} off each', 'merchant' ),
272 'desc' => __( 'You can use these codes in the content.', 'merchant' ),
273 'hidden_desc' => sprintf(
274 /* Translators: %1$s: Discount percentage, %2$s: Quantity, %3$s: Discount amount */
275 __( '<strong>%1$s:</strong> to show discount percentage<br><strong>%2$s:</strong> to show the number of items needed to buy to get the discount<br><strong>%3$s:</strong> to show discount amount on each item',
276 'merchant' ),
277 '{percent}',
278 '{quantity}',
279 '{discount}'
280 ),
281 ),
282
283 array(
284 'id' => 'item_text',
285 'type' => 'text',
286 'title' => esc_html__( 'Item text', 'merchant' ),
287 'default' => esc_html__( 'Per item:', 'merchant' ),
288 ),
289
290 array(
291 'id' => 'total_text',
292 'type' => 'text',
293 'title' => esc_html__( 'Total text', 'merchant' ),
294 'default' => esc_html__( 'Total price:', 'merchant' ),
295 ),
296
297 array(
298 'id' => 'cart_title_text',
299 'type' => 'text',
300 'title' => esc_html__( 'Cart item discount title', 'merchant' ),
301 'default' => esc_html__( 'Discount', 'merchant' ),
302 'desc' => esc_html__( 'This is displayed on the cart page.', 'merchant' ),
303 ),
304
305 array(
306 'id' => 'cart_description_text',
307 'type' => 'text',
308 'title' => esc_html__( 'Cart item discount description', 'merchant' ),
309 'default' => esc_html__( 'A discount of {amount} has been applied.', 'merchant' ),
310 'desc' => __( 'This is displayed on the cart page. You can use these codes in the content.', 'merchant' ),
311 'hidden_desc' => sprintf(
312 /* Translators: %1$s: Discount amount, %2$s: Discount percentage */
313 __( '<strong>%1$s:</strong> to show discount amount<br><strong>%2$s:</strong> to show discount percentage', 'merchant' ),
314 '{amount}',
315 '{percent}'
316 ),
317 ),
318
319 // style settings
320 array(
321 'id' => 'title_font_size',
322 'type' => 'range',
323 'title' => esc_html__( 'Title font size', 'merchant' ),
324 'min' => 0,
325 'max' => 100,
326 'step' => 1,
327 'unit' => 'px',
328 'default' => 16,
329 ),
330
331 array(
332 'id' => 'title_font_weight',
333 'type' => 'select',
334 'title' => esc_html__( 'Title font weight', 'merchant' ),
335 'options' => array(
336 'lighter' => esc_html__( 'Light', 'merchant' ),
337 'normal' => esc_html__( 'Normal', 'merchant' ),
338 'bold' => esc_html__( 'Bold', 'merchant' ),
339 ),
340 'default' => 'normal',
341 ),
342
343 array(
344 'id' => 'title_text_color',
345 'type' => 'color',
346 'title' => esc_html__( 'Title text color', 'merchant' ),
347 'default' => '#212121',
348 ),
349
350 array(
351 'id' => 'title_text_color_hover',
352 'type' => 'color',
353 'title' => esc_html__( 'Title text color hover', 'merchant' ),
354 'default' => '#212121',
355 ),
356
357 array(
358 'id' => 'table_item_bg_color',
359 'type' => 'color',
360 'title' => esc_html__( 'Background color', 'merchant' ),
361 'default' => '#fcf0f1',
362 ),
363
364 array(
365 'id' => 'table_item_bg_color_hover',
366 'type' => 'color',
367 'title' => esc_html__( 'Background color hover', 'merchant' ),
368 'default' => '#fcf0f1',
369 ),
370
371 array(
372 'id' => 'table_item_border_color',
373 'type' => 'color',
374 'title' => esc_html__( 'Border color', 'merchant' ),
375 'default' => '#d83b3b',
376 ),
377
378 array(
379 'id' => 'table_item_border_color_hover',
380 'type' => 'color',
381 'title' => esc_html__( 'Border color hover', 'merchant' ),
382 'default' => '#d83b3b',
383 ),
384
385 array(
386 'id' => 'table_item_text_color',
387 'type' => 'color',
388 'title' => esc_html__( 'Text color', 'merchant' ),
389 'default' => '#3c434a',
390 ),
391
392 array(
393 'id' => 'table_item_text_color_hover',
394 'type' => 'color',
395 'title' => esc_html__( 'Text color hover', 'merchant' ),
396 'default' => '#3c434a',
397 ),
398
399 array(
400 'id' => 'table_label_bg_color',
401 'type' => 'color',
402 'title' => esc_html__( 'Label background color', 'merchant' ),
403 'default' => '#d83b3b',
404 ),
405
406 array(
407 'id' => 'table_label_text_color',
408 'type' => 'color',
409 'title' => esc_html__( 'Label text color', 'merchant' ),
410 'default' => '#ffffff',
411 ),
412 ),
413 ),
414 array(
415 'id' => 'cart_page',
416 'type' => 'fields_group',
417 'title' => esc_html__( 'Cart Page', 'merchant' ),
418 'sub-desc' => esc_html__( 'Use these settings to control how bulk discount offers appear on the cart page.', 'merchant' ),
419 'state' => 'closed',
420 'accordion' => true,
421 'display_status' => true,
422 'default' => 'inactive',
423 'fields' => array(
424 // Text Formatting Settings
425 array(
426 'id' => 'title',
427 'type' => 'text',
428 'title' => esc_html__( 'Offer title', 'merchant' ),
429 'default' => esc_html__( 'Add {quantity} more to get a {discount} discount off each', 'merchant' ),
430 'desc' => __( 'You can use these codes in the content.', 'merchant' ),
431 'hidden_desc' => sprintf(
432 /* Translators: %1$s: offer quantity, %2$s: discount amount */
433 __(
434 '<strong>%1$s:</strong> to show offer quantity<br><strong>%2$s:</strong> to show discount amount',
435 'merchant'
436 ),
437 '{quantity}',
438 '{discount}'
439 ),
440 ),
441
442 array(
443 'id' => 'button_text',
444 'type' => 'text',
445 'title' => esc_html__( 'Button text', 'merchant' ),
446 'default' => esc_html__( 'Add To Cart', 'merchant' ),
447 ),
448 ),
449 ),
450 array(
451 'id' => 'checkout_page',
452 'type' => 'fields_group',
453 'title' => esc_html__( 'Checkout Page', 'merchant' ),
454 'sub-desc' => esc_html__( 'Use these settings to control how bulk discount offers appear on the checkout page.', 'merchant' ),
455 'state' => 'closed',
456 'default' => 'inactive',
457 'accordion' => true,
458 'display_status' => true,
459 'fields' => array(
460 array(
461 'id' => 'placement',
462 'type' => 'select',
463 'title' => esc_html__( 'Placement', 'merchant' ),
464 'options' => array(
465 'before_billing_details' => esc_html__( 'Before Billing Details', 'merchant' ),
466 'after_billing_details' => esc_html__( 'After Billing Details', 'merchant' ),
467 'before_order_details' => esc_html__( 'Before Order Details', 'merchant' ),
468 'before_payment_options' => esc_html__( 'Before Payment Gateways', 'merchant' ),
469 'before_order_placement_btn' => esc_html__( 'Before Order Placement Button', 'merchant' ),
470 'after_order_placement_btn' => esc_html__( 'After Order Placement Button', 'merchant' ),
471 ),
472 'default' => 'before_billing_details',
473 ),
474 array(
475 'id' => 'title',
476 'type' => 'text',
477 'title' => esc_html__( 'Offer title', 'merchant' ),
478 'default' => esc_html__( 'Add {quantity} more to get {discount} off', 'merchant' ),
479 'desc' => __( 'You can use these codes in the content.', 'merchant' ),
480 'hidden_desc' => sprintf(
481 /* Translators: %1$s: offer quantity, %2$s: discount amount */
482 __(
483 '<strong>%1$s:</strong> to show offer quantity<br><strong>%2$s:</strong> to show discount amount',
484 'merchant'
485 ),
486 '{quantity}',
487 '{discount}'
488 ),
489 ),
490 array(
491 'id' => 'discount_text',
492 'type' => 'text',
493 'title' => esc_html__( 'Discount text', 'merchant' ),
494 'default' => esc_html__( '{product_price}', 'merchant' ),
495 'desc' => __( 'You can use these codes in the content.', 'merchant' ),
496 'hidden_desc' => sprintf(
497 /* Translators: %1$s: product price */
498 __(
499 '<strong>%1$s:</strong> to show product price<br><strong>%2$s:</strong> to show offer discount amount',
500 'merchant'
501 ),
502 '{product_price}',
503 '{discount}'
504 ),
505 ),
506 array(
507 'id' => 'button_text',
508 'type' => 'text',
509 'title' => esc_html__( 'Button text', 'merchant' ),
510 'default' => esc_html__( 'Add To Cart', 'merchant' ),
511 ),
512 ),
513 ),
514 array(
515 'id' => 'thank_you_page',
516 'type' => 'fields_group',
517 'title' => esc_html__( 'Thank You Page', 'merchant' ),
518 'sub-desc' => esc_html__( 'Use these settings to control how bulk discount offers appear on the thank you page.', 'merchant' ),
519 'state' => 'closed',
520 'accordion' => true,
521 'display_status' => true,
522 'default' => 'inactive',
523 'fields' => array(
524 // Text Formatting Settings
525 array(
526 'id' => 'title',
527 'type' => 'text',
528 'title' => esc_html__( 'Offer title', 'merchant' ),
529 'default' => esc_html__( 'Add {quantity} more to get {discount} off', 'merchant' ),
530 'desc' => __( 'You can use these codes in the content.', 'merchant' ),
531 'hidden_desc' => sprintf(
532 /* Translators: %1$s: quantity, %2$s: post purchase discount, %3$s: In Stock, %4$s: Total quantity */
533 __(
534 '<strong>%1$s:</strong> to show product quantity<br><strong>%2$s:</strong> to show the discount amount',
535 'merchant'
536 ),
537 '{quantity}',
538 '{discount}'
539 ),
540 ),
541
542 array(
543 'id' => 'placement',
544 'type' => 'select',
545 'title' => esc_html__( 'Placement', 'merchant' ),
546 'options' => array(
547 'on_top' => esc_html__( 'On Top', 'merchant' ),
548 'before_order_details' => esc_html__( 'Before Order details', 'merchant' ),
549 'after_order_details' => esc_html__( 'After Order details', 'merchant' ),
550 ),
551 'default' => 'before_order_details',
552 ),
553
554 array(
555 'id' => 'discount_text',
556 'type' => 'text',
557 'title' => esc_html__( 'Discount text', 'merchant' ),
558 'default' => esc_html__( '{product_price}', 'merchant' ),
559 'desc' => __( 'You can use these codes in the content.', 'merchant' ),
560 'hidden_desc' => sprintf(
561 /* Translators: %1$s: Discount amount, %2$s: product price */
562 __(
563 '<strong>%1$s:</strong> to show the discount amount<br><strong>%2$s:</strong> to show the product price before and after the offer discount',
564 'merchant'
565 ),
566 '{discount}',
567 '{product_price}'
568 ),
569 ),
570
571 array(
572 'id' => 'bonus_tip_text',
573 'type' => 'text',
574 'title' => esc_html__( 'Bonus tip text', 'merchant' ),
575 'default' => esc_html__( 'Bonus: You will also receive this discount off each item you just purchased as part of this bulk discount offer.', 'merchant' ),
576 ),
577
578 array(
579 'id' => 'button_text',
580 'type' => 'text',
581 'title' => esc_html__( 'Button text', 'merchant' ),
582 'default' => esc_html__( 'Add To Cart', 'merchant' ),
583 ),
584 ),
585 ),
586 ),
587 ),
588 ),
589 'default' => array(
590 array(
591 'layout' => 'offer-details',
592 'min_quantity' => 2,
593 'discount' => 10,
594 'discount_type' => 'fixed_discount',
595 ),
596 ),
597 ),
598 ),
599 ) );
600
601 // Shortcode
602 $merchant_module_id = Merchant_Volume_Discounts::MODULE_ID;
603 Merchant_Admin_Options::create( array(
604 'module' => $merchant_module_id,
605 'title' => esc_html__( 'Use shortcode', 'merchant' ),
606 'fields' => array(
607 array(
608 'id' => 'use_shortcode',
609 'type' => 'switcher',
610 'title' => __( 'Use shortcode', 'merchant' ),
611 'default' => 0,
612 ),
613 array(
614 'type' => 'info',
615 'id' => 'shortcode_info',
616 'content' => esc_html__( 'If you are using a page builder or a theme that supports shortcodes, then you can output the module using the shortcode above. This might be useful if, for example, you find that you want to control the position of the module output more precisely than with the module settings. Note that the shortcodes can only be used on single product pages.',
617 'merchant' ),
618 ),
619 array(
620 'id' => 'shortcode_text',
621 'type' => 'text_readonly',
622 'title' => esc_html__( 'Shortcode text', 'merchant' ),
623 'default' => '[merchant_module_' . str_replace( '-', '_', $merchant_module_id ) . ']',
624 'condition' => array( 'use_shortcode', '==', '1' ),
625 ),
626 ),
627 ) );
628