PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.3.0
ShopBuilder – WooCommerce Builder For Elementor v2.3.0
3.4.2 3.4.1 3.4.0 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.10 2.1.11 2.1.12 2.1.13 2.1.14 2.1.15 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 2.2.0 2.2.1 2.2.2 All 63 releases
shopbuilder / app / Models / ModuleList.php

ModuleList.php in ShopBuilder – WooCommerce Builder For Elementor 2.3.0, at app/Models/ModuleList.php

1,296 lines 47.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * ShopBuilder Module List.
4 *
5 * @package RadiusTheme\SB
6 */
7
8 namespace RadiusTheme\SB\Models;
9
10 use RadiusTheme\SB\Helpers\Fns;
11 use RadiusTheme\SB\Models\Base\ListModel;
12 use RadiusTheme\SB\Modules\CheckoutEditor\CheckoutEditorInit;
13 use RadiusTheme\SB\Modules\CheckoutEditor\CheckoutFns;
14 use RadiusTheme\SB\Traits\SingletonTrait;
15 use RadiusTheme\SB\Modules\Compare\Compare;
16 use RadiusTheme\SB\Modules\WishList\Wishlist;
17 use RadiusTheme\SB\Modules\Compare\CompareFns;
18 use RadiusTheme\SB\Modules\QuickView\QuickView;
19 use RadiusTheme\SB\Modules\WishList\WishlistFns;
20
21 defined( 'ABSPATH' ) || exit;
22
23 /**
24 * ShopBuilder Module List.
25 */
26 class ModuleList extends ListModel {
27
28 use SingletonTrait;
29
30 /**
31 * List ID.
32 *
33 * @var string
34 */
35 protected $list_id = 'modules';
36
37 /**
38 * Class constructor.
39 */
40 public function __construct() {
41 parent::__construct();
42 $this->title = esc_html__( 'Modules', 'shopbuilder' );
43 $this->description = esc_html__( 'Here you can find the list of all the modules. You can individually enable or disable the modules. Or you can do that by one click.', 'shopbuilder' );
44 }
45
46 /**
47 * Module list.
48 *
49 * @return mixed|null
50 */
51 protected function raw_list() {
52 $list = [
53 'quick_view' => apply_filters(
54 'rtsb/module/quick_view/options',
55 [
56 'id' => 'quick_view',
57 'title' => esc_html__( 'Quick View', 'shopbuilder' ),
58 'base_class' => QuickView::class,
59 'category' => 'general',
60 'active' => 'on',
61 'package' => 'free',
62 'active_field' => [
63 'label' => esc_html__( 'Enable Quick View?', 'shopbuilder' ),
64 'help' => esc_html__( 'Switch on to enable quick view module.', 'shopbuilder' ),
65 ],
66 'tabs' => [
67 'general' => [
68 'title' => esc_html__( 'General', 'shopbuilder' ),
69 ],
70 'style' => [
71 'title' => esc_html__( 'Style', 'shopbuilder' ),
72 ],
73 ],
74 'fields' => apply_filters(
75 'rtsb/module/quick_view/fields',
76 [
77 'loop_btn_position' => [
78 'id' => 'loop_btn_position',
79 'type' => 'select',
80 'value' => 'custom',
81 'label' => esc_html__( 'Shop Page Button Position', 'shopbuilder' ),
82 'help' => esc_html__( 'You can manage quick view button position in shop page.', 'shopbuilder' ),
83 'tab' => 'general',
84 'options' => [
85 'before_add_to_cart' => esc_html__( 'Before Add To Cart', 'shopbuilder' ),
86 'after_add_to_cart' => esc_html__( 'After Add To Cart', 'shopbuilder' ),
87 'shortcode' => esc_html__( 'Use Shortcode', 'shopbuilder' ),
88 'custom' => esc_html__( 'Custom Position', 'shopbuilder' ),
89 ],
90
91 ],
92 'loop_btn_position_shortcode' => [
93 'type' => 'raw',
94 'label' => ' ',
95 'html' => sprintf(
96 /* translators: 1: The shortcode.*/
97 esc_html__( 'Choose where to show button in WooCommerce product\'s loop. Copy this shortcode %1$s and paste it where you want to show the button.', 'shopbuilder' ),
98 '<code>[rtsb_quick_view_button]</code>'
99 ),
100 'tab' => 'general',
101 'dependency' => [
102 'rules' => [
103 [
104 'item' => 'modules.quick_view.loop_btn_position',
105 'value' => 'shortcode',
106 'operator' => '==',
107 ],
108 ],
109 ],
110 ],
111 'loop_custom_hook_name' => [
112 'id' => 'loop_custom_hook_name',
113 'type' => 'text',
114 'label' => esc_html__( 'Enter Hook Name', 'shopbuilder' ),
115 'help' => sprintf(
116 /* translators: 1: The shortcode.*/
117 esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ),
118 "<br /><code>&lt;?php do_action( 'rtsb/modules/quick_view/frontend/display' ); ?&gt;</code><br />"
119 ),
120 'tab' => 'general',
121 'dependency' => [
122 'rules' => [
123 [
124 'item' => 'modules.quick_view.loop_btn_position',
125 'value' => 'custom',
126 'operator' => '==',
127 ],
128 ],
129 ],
130 ],
131 'loop_custom_hook_priority' => [
132 'id' => 'loop_custom_hook_priority',
133 'type' => 'number',
134 'value' => 10,
135 'size' => 'small',
136 'min' => 0,
137 'max' => 999,
138 'label' => esc_html__( 'Hook Priority', 'shopbuilder' ),
139 'tab' => 'general',
140 'dependency' => [
141 'rules' => [
142 [
143 'item' => 'modules.quick_view.loop_btn_position',
144 'value' => 'custom',
145 'operator' => '==',
146 ],
147 ],
148 ],
149 ],
150 'button_text' => [
151 'id' => 'button_text',
152 'label' => esc_html__( 'Quick View Text', 'shopbuilder' ),
153 'help' => esc_html__( 'Enter your quick view button text.', 'shopbuilder' ),
154 'type' => 'text',
155 'value' => 'Quick View',
156 'placeholder' => 'Quick View',
157 'tab' => 'general',
158 ],
159
160 // Module Style.
161 'modal_width' => [
162 'id' => 'modal_width',
163 'label' => esc_html__( 'Modal Width (in px)', 'shopbuilder' ),
164 'help' => esc_html__( 'Quick view button modal width. Example: 950', 'shopbuilder' ),
165 'type' => 'number',
166 'value' => '',
167 'tab' => 'style',
168 ],
169
170 'modal_height' => [
171 'id' => 'modal_height',
172 'label' => esc_html__( 'Modal Height', 'shopbuilder' ),
173 'help' => esc_html__( 'Quick view button modal height. Example: 450px', 'shopbuilder' ),
174 'type' => 'text',
175 'value' => '',
176 'tab' => 'style',
177 ],
178
179 'modal_wrapper_padding' => [
180 'id' => 'modal_wrapper_padding',
181 'label' => esc_html__( 'Modal Wrapper Padding', 'shopbuilder' ),
182 'help' => esc_html__( 'Quick view modal wrapper padding. Example 1: 20px, Example 2: 20px 20px 20px 20px', 'shopbuilder' ),
183 'type' => 'text',
184 'value' => '',
185 'tab' => 'style',
186 ],
187 'modal_bg_color' => [
188 'id' => 'modal_bg_color',
189 'label' => esc_html__( 'Modal Backgroud Color', 'shopbuilder' ),
190 'help' => esc_html__( 'Quick view modal background color. Example: #fff', 'shopbuilder' ),
191 'type' => 'color',
192 'value' => '',
193 'tab' => 'style',
194 ],
195 'modal_box_shadow_color' => [
196 'id' => 'modal_box_shadow_color',
197 'label' => esc_html__( 'Modal Box Shadow Color', 'shopbuilder' ),
198 'help' => esc_html__( 'Quick view modal box shadow. Example: #000', 'shopbuilder' ),
199 'type' => 'color',
200 'value' => '',
201 'tab' => 'style',
202 ],
203
204 'modal_overly_color' => [
205 'id' => 'modal_overly_color',
206 'label' => esc_html__( 'Modal Overly Color', 'shopbuilder' ),
207 'help' => esc_html__( 'Quick view modal overly. Example: #000', 'shopbuilder' ),
208 'type' => 'color',
209 'value' => '',
210 'tab' => 'style',
211 ],
212
213 ]
214 ),
215 ]
216 ),
217 'wishlist' => apply_filters(
218 'rtsb/module/wishlist/options',
219 [
220 'id' => 'wishlist',
221 'title' => esc_html__( 'Wishlist', 'shopbuilder' ),
222 'package' => 'free',
223 'active' => 'on',
224 'base_class' => Wishlist::class,
225 'category' => 'general',
226 'active_field' => [
227 'label' => esc_html__( 'Enable Wishlist?', 'shopbuilder' ),
228 'help' => esc_html__( 'Switch on to enable wishlist module.', 'shopbuilder' ),
229 ],
230 'fields' => apply_filters(
231 'rtsb/module/wishlist/fields',
232 [
233 'enable_login_limit' => [
234 'id' => 'enable_login_limit',
235 'type' => 'switch',
236 'label' => esc_html__( 'Limit Wishlist Use', 'shopbuilder' ),
237 'help' => esc_html__( 'Enable this option to allow only the logged-in users to use the Wishlist feature.', 'shopbuilder' ),
238 'tab' => 'general',
239 ],
240 'hide_wishlist_non_logged_in' => [
241 'id' => 'hide_wishlist_non_logged_in',
242 'type' => 'switch',
243 'label' => esc_html__( 'Hide Wishlist Button', 'shopbuilder' ),
244 'help' => esc_html__( 'Hide Wishlist Button For non logged-in users (guest users).', 'shopbuilder' ),
245 'dependency' => [
246 'rules' => [
247 [
248 'item' => 'modules.wishlist.enable_login_limit',
249 'value' => 'on',
250 'operator' => '==',
251 ],
252 ],
253 ],
254 'tab' => 'general',
255 ],
256 'wishlist_shop_wrapper_heading' => [
257 'id' => 'wishlist_shop_wrapper_heading',
258 'type' => 'title',
259 'label' => esc_html__( 'Shop Page Settings', 'shopbuilder' ),
260 'tab' => 'button',
261 ],
262 'show_btn_on_loop' => [
263 'id' => 'show_btn_on_loop',
264 'value' => 'on',
265 'type' => 'switch',
266 'label' => esc_html__( 'Show in Shop Page', 'shopbuilder' ),
267 'tab' => 'button',
268 ],
269 'loop_btn_position' => [
270 'id' => 'loop_btn_position',
271 'type' => 'select',
272 'value' => 'custom',
273 'label' => esc_html__( 'Shop Page Button Position', 'shopbuilder' ),
274 'help' => esc_html__( 'You can manage wishlist button position in shop page.', 'shopbuilder' ),
275 'options' => [
276 'before_add_to_cart' => esc_html__( 'Before Add To Cart', 'shopbuilder' ),
277 'after_add_to_cart' => esc_html__( 'After Add To Cart', 'shopbuilder' ),
278 'shortcode' => esc_html__( 'Use Shortcode', 'shopbuilder' ),
279 'custom' => esc_html__( 'Custom Position', 'shopbuilder' ),
280 ],
281 'dependency' => [
282 'rules' => [
283 [
284 'item' => 'modules.wishlist.show_btn_on_loop',
285 'value' => 'on',
286 'operator' => '==',
287 ],
288 ],
289 ],
290 'tab' => 'button',
291 ],
292 'loop_btn_position_shortcode' => [
293 'type' => 'raw',
294 'label' => ' ',
295 'html' => sprintf(
296 /* translators: 1: The shortcode.*/
297 esc_html__( 'Choose where to show button in WooCommerce product\'s loop. Copy this shortcode %1$s and paste it where you want to show the button.', 'shopbuilder' ),
298 '<code>[rtsb_wishlist_button]</code>'
299 ),
300 'dependency' => [
301 'rules' => [
302 [
303 'item' => 'modules.wishlist.show_btn_on_loop',
304 'value' => 'on',
305 'operator' => '==',
306 ],
307 [
308 'item' => 'modules.wishlist.loop_btn_position',
309 'value' => 'shortcode',
310 'operator' => '==',
311 ],
312 ],
313 ],
314 'tab' => 'button',
315 ],
316 'loop_custom_hook_name' => [
317 'id' => 'loop_custom_hook_name',
318 'type' => 'text',
319 'label' => esc_html__( 'Enter Hook Name', 'shopbuilder' ),
320 'tab' => 'button',
321 'help' => sprintf(
322 /* translators: 1: The shortcode.*/
323 esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ),
324 "<br /><code>&lt;?php do_action('rtsb/modules/wishlist/frontend/display' ); ?&gt;</code><br />"
325 ),
326 'dependency' => [
327 'rules' => [
328 [
329 'item' => 'modules.wishlist.show_btn_on_loop',
330 'value' => 'on',
331 'operator' => '==',
332 ],
333 [
334 'item' => 'modules.wishlist.loop_btn_position',
335 'value' => 'custom',
336 'operator' => '==',
337 ],
338 ],
339 ],
340 ],
341 'loop_custom_hook_priority' => [
342 'id' => 'loop_custom_hook_priority',
343 'type' => 'number',
344 'value' => 10,
345 'size' => 'small',
346 'min' => 0,
347 'max' => 999,
348 'label' => esc_html__( 'Hook Priority', 'shopbuilder' ),
349 'tab' => 'button',
350 'dependency' => [
351 'rules' => [
352 [
353 'item' => 'modules.wishlist.show_btn_on_loop',
354 'value' => 'on',
355 'operator' => '==',
356 ],
357 [
358 'item' => 'modules.wishlist.loop_btn_position',
359 'value' => 'custom',
360 'operator' => '==',
361 ],
362 ],
363 'relation' => 'and',
364 ],
365 ],
366 'wishlist_single_wrapper_heading' => [
367 'id' => 'wishlist_single_wrapper_heading',
368 'type' => 'title',
369 'label' => esc_html__( 'Product Page Settings', 'shopbuilder' ),
370 'tab' => 'button',
371 ],
372 'show_btn_product_page' => [
373 'id' => 'show_btn_product_page',
374 'value' => 'on',
375 'type' => 'switch',
376 'label' => esc_html__( 'Show in Product Page', 'shopbuilder' ),
377 'tab' => 'button',
378 ],
379 'product_btn_position' => [
380 'id' => 'product_btn_position',
381 'label' => esc_html__( 'Product Page Button Position', 'shopbuilder' ),
382 'help' => esc_html__( 'You can manage compare button position in single product page.', 'shopbuilder' ),
383 'type' => 'select',
384 'value' => 'custom',
385 'options' => [
386 'before_add_to_cart' => esc_html__( 'Before Add To Cart', 'shopbuilder' ),
387 'after_add_to_cart' => esc_html__( 'After Add To Cart', 'shopbuilder' ),
388 'after_thumbnail' => esc_html__( 'After Image', 'shopbuilder' ),
389 'after_summary' => esc_html__( 'After Summary', 'shopbuilder' ),
390 'shortcode' => esc_html__( 'Use Shortcode', 'shopbuilder' ),
391 'custom' => esc_html__( 'Custom Position', 'shopbuilder' ),
392 ],
393 'dependency' => [
394 'rules' => [
395 [
396 'item' => 'modules.wishlist.show_btn_product_page',
397 'value' => 'on',
398 'operator' => '==',
399 ],
400 ],
401 ],
402 'tab' => 'button',
403 ],
404 'product_btn_position_shortcode' => [
405 'type' => 'raw',
406 'label' => ' ',
407 'html' => sprintf(
408 /* translators: 1: The shortcode.*/
409 esc_html__( 'Choose where to show button on the product page. Copy this shortcode %1$s and paste it where you want to show the button.', 'shopbuilder' ),
410 '<code>[rtsb_wishlist_button]</code>'
411 ),
412 'dependency' => [
413 'rules' => [
414 [
415 'item' => 'modules.wishlist.show_btn_product_page',
416 'value' => 'on',
417 'operator' => '==',
418 ],
419 [
420 'item' => 'modules.wishlist.product_btn_position',
421 'value' => 'shortcode',
422 'operator' => '==',
423 ],
424 ],
425 ],
426 'tab' => 'button',
427 ],
428 'product_custom_hook_name' => [
429 'id' => 'product_custom_hook_name',
430 'type' => 'text',
431 'label' => esc_html__( 'Product Hook Name', 'shopbuilder' ),
432 'tab' => 'button',
433 'help' => sprintf(
434 /* translators: 1: The shortcode.*/
435 esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ),
436 "<br /><code>&lt;?php do_action('rtsb/modules/wishlist/frontend/display' ); ?&gt;</code><br />"
437 ),
438 'dependency' => [
439 'rules' => [
440 [
441 'item' => 'modules.wishlist.show_btn_product_page',
442 'value' => 'on',
443 'operator' => '==',
444 ],
445 [
446 'item' => 'modules.wishlist.product_btn_position',
447 'value' => 'custom',
448 'operator' => '==',
449 ],
450 ],
451 ],
452 ],
453 'product_custom_hook_priority' => [
454 'id' => 'product_custom_hook_priority',
455 'type' => 'number',
456 'value' => 10,
457 'size' => 'small',
458 'min' => 0,
459 'max' => 999,
460 'label' => esc_html__( 'Product Hook Priority', 'shopbuilder' ),
461 'tab' => 'button',
462 'dependency' => [
463 'rules' => [
464 [
465 'item' => 'modules.wishlist.show_btn_product_page',
466 'value' => 'on',
467 'operator' => '==',
468 ],
469 [
470 'item' => 'modules.wishlist.product_btn_position',
471 'value' => 'custom',
472 'operator' => '==',
473 ],
474 ],
475 'relation' => 'and',
476 ],
477 ],
478 'button_text' => [
479 'id' => 'button_text',
480 'label' => esc_html__( 'Wishlist Text', 'shopbuilder' ),
481 'help' => esc_html__( 'Enter your wishlist button text.', 'shopbuilder' ),
482 'type' => 'text',
483 'value' => 'Add to Wishlist',
484 'placeholder' => 'Add to Wishlist',
485 'tab' => 'button',
486 ],
487 'notice_added_text' => [
488 'id' => 'notice_added_text',
489 'label' => esc_html__( 'Product Added Text', 'shopbuilder' ),
490 'help' => esc_html__( 'Enter the product added text.', 'shopbuilder' ),
491 'type' => 'text',
492 'value' => esc_html__( 'Product added!', 'shopbuilder' ),
493 'placeholder' => esc_html__( 'Product added!', 'shopbuilder' ),
494 'tab' => 'general',
495 ],
496 'notice_removed_text' => [
497 'id' => 'notice_removed_text',
498 'label' => esc_html__( 'Product Removed Text', 'shopbuilder' ),
499 'help' => esc_html__( 'Enter the product removed text.', 'shopbuilder' ),
500 'type' => 'text',
501 'value' => esc_html__( 'Product removed!', 'shopbuilder' ),
502 'placeholder' => esc_html__( 'Product removed!', 'shopbuilder' ),
503 'tab' => 'general',
504 ],
505 'browse_list_text' => [
506 'id' => 'browse_list_text',
507 'label' => esc_html__( 'Browse Wishlist Text', 'shopbuilder' ),
508 'help' => esc_html__( 'Enter a text for the "Browse wishlist" link on the product page', 'shopbuilder' ),
509 'type' => 'text',
510 'value' => esc_html__( 'Browse Wishlist', 'shopbuilder' ),
511 'placeholder' => esc_html__( 'Browse Wishlist', 'shopbuilder' ),
512 'tab' => 'general',
513 ],
514 /*
515 * TODO:: Will Implement Later.
516 'redirect_cart' => array(
517 'id' => 'redirect_cart',
518 'type' => 'switch',
519 'help' => esc_html__( 'Redirect users to the cart page when they add a product to the cart from the wishlist page', 'shopbuilder' ),
520 'label' => esc_html__( 'Redirect to Cart', 'shopbuilder' ),
521 'tab' => 'page',
522 ),
523 'remove_after_add_to_cart' => array(
524 'value' => 'on',
525 'id' => 'remove_after_add_to_cart',
526 'type' => 'switch',
527 'help' => esc_html__( 'Remove the product from the wishlist after it has been added to the cart', 'shopbuilder' ),
528 'label' => esc_html__( 'Remove if Added to Cart', 'shopbuilder' ),
529 'tab' => 'page',
530 ),
531 */
532 'page' => [
533 'id' => 'page',
534 'type' => 'select',
535 'label' => esc_html__( 'Select Wishlist Page', 'shopbuilder' ),
536 'help' => sprintf(
537 /* translators: 1: The shortcode.*/
538 esc_html__( 'Select a page for wishlist page and make sure you add the shortcode %1$s into the page content', 'shopbuilder' ),
539 '<code>[rtsb_wishlist]</code>'
540 ),
541 'options' => Fns::get_pages(),
542 'tab' => 'page',
543 ],
544 'page_show_fields' => [
545 'value' => WishlistFns::instance()->get_field_ids(),
546 'id' => 'page_show_fields',
547 'multiple' => true,
548 'checkbox' => true,
549 'sanitize_fn' => 'sanitize_text_field',
550 'type' => 'sortable',
551 'options' => WishlistFns::instance()->get_default_fields(),
552 'label' => esc_html__( 'Wishlist Table Fields Visibility', 'shopbuilder' ),
553 'tab' => 'page',
554 ],
555
556 ]
557 ),
558 'tabs' => [
559 'general' => [
560 'title' => esc_html__( 'General', 'shopbuilder' ),
561 ],
562 'button' => [
563 'title' => esc_html__( 'Button', 'shopbuilder' ),
564 ],
565 'page' => [
566 'title' => esc_html__( 'Page', 'shopbuilder' ),
567 ],
568 ],
569 ]
570 ),
571 'compare' => apply_filters(
572 'rtsb/module/compare/options',
573 [
574 'id' => 'compare',
575 'base_class' => Compare::class,
576 'category' => 'general',
577 'title' => esc_html__( 'Product Compare', 'shopbuilder' ),
578 'package' => 'free',
579 'active' => 'on',
580 'active_field' => [
581 'label' => esc_html__( 'Enable Product Comparison?', 'shopbuilder' ),
582 'help' => esc_html__( 'Switch on to enable product comparison module.', 'shopbuilder' ),
583 ],
584 'fields' => apply_filters(
585 'rtsb/module/compare/fields',
586 [
587 'compare_shop_wrapper_heading' => [
588 'id' => 'compare_shop_wrapper_heading',
589 'type' => 'title',
590 'label' => esc_html__( 'Shop Page Settings', 'shopbuilder' ),
591 'tab' => 'button',
592 ],
593 'show_btn_on_loop' => [
594 'id' => 'show_btn_on_loop',
595 'value' => 'on',
596 'type' => 'switch',
597 'label' => esc_html__( 'Show in Shop Page', 'shopbuilder' ),
598 'tab' => 'button',
599 ],
600 'loop_btn_position' => [
601 'id' => 'loop_btn_position',
602 'type' => 'select',
603 'value' => 'custom',
604 'label' => esc_html__( 'Shop Page Button Position', 'shopbuilder' ),
605 'help' => esc_html__( 'You can manage wishlist button position in shop page.', 'shopbuilder' ),
606 'options' => [
607 'before_add_to_cart' => esc_html__( 'Before Add To Cart', 'shopbuilder' ),
608 'after_add_to_cart' => esc_html__( 'After Add To Cart', 'shopbuilder' ),
609 'shortcode' => esc_html__( 'Use Shortcode', 'shopbuilder' ),
610 'custom' => esc_html__( 'Custom Position', 'shopbuilder' ),
611 ],
612 'dependency' => [
613 'rules' => [
614 [
615 'item' => 'modules.compare.show_btn_on_loop',
616 'value' => 'on',
617 'operator' => '==',
618 ],
619 ],
620 ],
621 'tab' => 'button',
622 ],
623 'loop_btn_position_shortcode' => [
624 'type' => 'raw',
625 'label' => ' ',
626 'html' => sprintf(
627 /* translators: 1: The shortcode.*/
628 esc_html__( 'Choose where to show button in WooCommerce product\'s loop. Copy this shortcode %1$s and paste it where you want to show the button.', 'shopbuilder' ),
629 '<code>[rtsb_compare_button]</code>'
630 ),
631 'dependency' => [
632 'rules' => [
633 [
634 'item' => 'modules.compare.show_btn_on_loop',
635 'value' => 'on',
636 'operator' => '==',
637 ],
638 [
639 'item' => 'modules.compare.loop_btn_position',
640 'value' => 'shortcode',
641 'operator' => '==',
642 ],
643 ],
644 ],
645 'tab' => 'button',
646 ],
647 'loop_custom_hook_name' => [
648 'id' => 'product_custom_hook_name',
649 'type' => 'text',
650 'label' => esc_html__( 'Enter Hook Name', 'shopbuilder' ),
651 'tab' => 'button',
652 'help' => sprintf(
653 /* translators: 1: The shortcode.*/
654 esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ),
655 "<br /><code>&lt;?php do_action('rtsb/modules/compare/frontend/display' ); ?&gt;</code><br />"
656 ),
657 'dependency' => [
658 'rules' => [
659 [
660 'item' => 'modules.compare.show_btn_on_loop',
661 'value' => 'on',
662 'operator' => '==',
663 ],
664 [
665 'item' => 'modules.compare.loop_btn_position',
666 'value' => 'custom',
667 'operator' => '==',
668 ],
669 ],
670 ],
671 ],
672 'loop_custom_hook_priority' => [
673 'id' => 'product_custom_hook_priority',
674 'type' => 'number',
675 'value' => 10,
676 'size' => 'small',
677 'min' => 0,
678 'max' => 999,
679 'label' => esc_html__( 'Hook Priority', 'shopbuilder' ),
680 'tab' => 'button',
681 'dependency' => [
682 'rules' => [
683 [
684 'item' => 'modules.compare.show_btn_on_loop',
685 'value' => 'on',
686 'operator' => '==',
687 ],
688 [
689 'item' => 'modules.compare.loop_btn_position',
690 'value' => 'custom',
691 'operator' => '==',
692 ],
693 ],
694 'relation' => 'and',
695 ],
696 ],
697 'compare_single_wrapper_heading' => [
698 'id' => 'compare_single_wrapper_heading',
699 'type' => 'title',
700 'label' => esc_html__( 'Product Page Settings', 'shopbuilder' ),
701 'tab' => 'button',
702 ],
703 'show_btn_product_page' => [
704 'id' => 'show_btn_product_page',
705 'type' => 'switch',
706 'value' => 'on',
707 'label' => esc_html__( 'Show Button in Product Page', 'shopbuilder' ),
708 'tab' => 'button',
709 ],
710 'product_btn_position' => [
711 'id' => 'product_btn_position',
712 'label' => esc_html__( 'Product Page Button Position', 'shopbuilder' ),
713 'help' => esc_html__( 'You can manage compare button position in single product page.', 'shopbuilder' ),
714 'type' => 'select',
715 'value' => 'custom',
716 'options' => [
717 'before_add_to_cart' => esc_html__( 'Before Add To Cart', 'shopbuilder' ),
718 'after_add_to_cart' => esc_html__( 'After Add To Cart', 'shopbuilder' ),
719 'after_thumbnail' => esc_html__( 'After Image', 'shopbuilder' ),
720 'after_summary' => esc_html__( 'After Summary', 'shopbuilder' ),
721 'shortcode' => esc_html__( 'Use Shortcode', 'shopbuilder' ),
722 'custom' => esc_html__( 'Custom Position', 'shopbuilder' ),
723 ],
724 'dependency' => [
725 'rules' => [
726 [
727 'item' => 'modules.compare.show_btn_product_page',
728 'value' => 'on',
729 'operator' => '==',
730 ],
731 ],
732 ],
733 'tab' => 'button',
734 ],
735 'product_btn_position_shortcode' => [
736 'type' => 'raw',
737 'label' => ' ',
738 'html' => sprintf(
739 /* translators: 1: The shortcode.*/
740 esc_html__( 'Choose where to show button on the product page. Copy this shortcode %1$s and paste it where you want to show the button.', 'shopbuilder' ),
741 '<code>[rtsb_wishlist_button]</code> '
742 ),
743 'dependency' => [
744 'rules' => [
745 [
746 'item' => 'modules.wishlist.show_btn_product_page',
747 'value' => 'on',
748 'operator' => '==',
749 ],
750 [
751 'item' => 'modules.wishlist.product_btn_position',
752 'value' => 'shortcode',
753 'operator' => '==',
754 ],
755 ],
756 ],
757 'tab' => 'button',
758 ],
759 'product_custom_hook_name' => [
760 'id' => 'product_custom_hook_name',
761 'type' => 'text',
762 'label' => esc_html__( 'Product Hook Name', 'shopbuilder' ),
763 'tab' => 'button',
764 'help' => sprintf(
765 /* translators: 1: The shortcode.*/
766 esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ),
767 "<br /><code>&lt;?php do_action('rtsb/modules/compare/frontend/display' ); ?&gt;</code><br />"
768 ),
769 'dependency' => [
770 'rules' => [
771 [
772 'item' => 'modules.compare.show_btn_product_page',
773 'value' => 'on',
774 'operator' => '==',
775 ],
776 [
777 'item' => 'modules.compare.product_btn_position',
778 'value' => 'custom',
779 'operator' => '==',
780 ],
781 ],
782 ],
783 ],
784 'product_custom_hook_priority' => [
785 'id' => 'product_custom_hook_priority',
786 'type' => 'number',
787 'value' => 10,
788 'size' => 'small',
789 'min' => 0,
790 'max' => 999,
791 'label' => esc_html__( 'Product Hook Priority', 'shopbuilder' ),
792 'tab' => 'button',
793 'dependency' => [
794 'rules' => [
795 [
796 'item' => 'modules.compare.show_btn_product_page',
797 'value' => 'on',
798 'operator' => '==',
799 ],
800 [
801 'item' => 'modules.compare.product_btn_position',
802 'value' => 'custom',
803 'operator' => '==',
804 ],
805 ],
806 'relation' => 'and',
807 ],
808 ],
809 'button_text' => [
810 'id' => 'button_text',
811 'label' => esc_html__( 'Compare Button Text', 'shopbuilder' ),
812 'help' => esc_html__( 'Enter your compare button text.', 'shopbuilder' ),
813 'type' => 'text',
814 'value' => esc_html__( 'Compare', 'shopbuilder' ),
815 'placeholder' => esc_html__( 'Compare', 'shopbuilder' ),
816 'tab' => 'button',
817 ],
818 'notice_added_text' => [
819 'id' => 'notice_added_text',
820 'label' => esc_html__( 'Product Added Text', 'shopbuilder' ),
821 'help' => esc_html__( 'Enter the product added text.', 'shopbuilder' ),
822 'type' => 'text',
823 'value' => esc_html__( 'Product added!', 'shopbuilder' ),
824 'placeholder' => esc_html__( 'Product added!', 'shopbuilder' ),
825 'tab' => 'general',
826 ],
827 'notice_removed_text' => [
828 'id' => 'notice_removed_text',
829 'label' => esc_html__( 'Product Removed Text', 'shopbuilder' ),
830 'help' => esc_html__( 'Enter the product removed text.', 'shopbuilder' ),
831 'type' => 'text',
832 'value' => esc_html__( 'Product removed!', 'shopbuilder' ),
833 'placeholder' => esc_html__( 'Product removed!', 'shopbuilder' ),
834 'tab' => 'general',
835 ],
836 'browse_list_text' => [
837 'id' => 'browse_list_text',
838 'label' => esc_html__( 'Browse Compare Text', 'shopbuilder' ),
839 'help' => esc_html__( 'Enter a text for the "Browse compare" link on the compare page', 'shopbuilder' ),
840 'type' => 'text',
841 'value' => esc_html__( 'Browse Compare', 'shopbuilder' ),
842 'placeholder' => esc_html__( 'Browse Compare', 'shopbuilder' ),
843 'tab' => 'general',
844 ],
845 'page' => [
846 'id' => 'page',
847 'type' => 'select',
848 'help' => sprintf(
849 /* translators: 1: The shortcode.*/
850 esc_html__( 'Select a page for compare page and make sure you add the shortcode %1$s into the page content', 'shopbuilder' ),
851 '<code>[rtsb_compare_list]</code>'
852 ),
853 'label' => esc_html__( 'Select Compare Page', 'shopbuilder' ),
854 'options' => Fns::get_pages(),
855 'empty' => esc_html__( 'Select a page', 'shopbuilder' ),
856 'searchable' => true,
857 'tab' => 'page',
858 ],
859 'max_limit' => [
860 'id' => 'page',
861 'type' => 'number',
862 'sanitize_fn' => 'absint',
863 'value' => 10,
864 'help' => esc_html__( 'You can manage your maximum compare quantity from here.', 'shopbuilder' ),
865 'label' => esc_html__( 'Maximum Compare Limit', 'shopbuilder' ),
866 'tab' => 'page',
867 ],
868 'page_show_fields' => [
869 'value' => CompareFns::get_list_field_ids(),
870 'id' => 'page_show_fields',
871 'multiple' => true,
872 'checkbox' => true,
873 'type' => 'sortable',
874 'options' => CompareFns::get_available_list_fields(),
875 'label' => esc_html__( 'Compare Table Fields Visibility', 'shopbuilder' ),
876 'tab' => 'page',
877 ],
878
879 ]
880 ),
881 'tabs' => [
882 'general' => [
883 'title' => esc_html__( 'General', 'shopbuilder' ),
884 ],
885 'button' => [
886 'title' => esc_html__( 'Button', 'shopbuilder' ),
887 ],
888 'page' => [
889 'title' => esc_html__( 'Page', 'shopbuilder' ),
890 ],
891
892 ],
893 ]
894 ),
895 'variation_swatches' => apply_filters(
896 'rtsb/module/variation_swatches/options',
897 [
898 'id' => 'variation_swatches',
899 'external' => true,
900 'category' => 'general',
901 'title' => esc_html__( 'Variation Swatches', 'shopbuilder' ),
902 'pluginSlug' => 'woo-product-variation-swatches',
903 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ),
904 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ),
905 'pluginActiveUrl' => add_query_arg(
906 [
907 '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-swatches/woo-product-variation-swatches.php' ),
908 'action' => 'activate',
909 'plugin' => 'woo-product-variation-swatches/woo-product-variation-swatches.php',
910 ],
911 admin_url( 'plugins.php' )
912 ),
913 'help' => esc_html__( 'This module requires: Variation Swatches for WooCommerce Plugin.', 'shopbuilder' ),
914 'package' => 'free',
915 'active_field' => [
916 'disable' => false,
917 ],
918 'fields' => [],
919 ]
920 ),
921 'variation_gallery' => apply_filters(
922 'rtsb/module/variation_gallery/options',
923 [
924 'id' => 'variation_gallery',
925 'external' => true,
926 'category' => 'general',
927 'title' => esc_html__( 'Variation Gallery', 'shopbuilder' ),
928 'pluginSlug' => 'woo-product-variation-gallery',
929 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ),
930 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ),
931 'pluginActiveUrl' => add_query_arg(
932 [
933 '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-gallery/woo-product-variation-gallery.php' ),
934 'action' => 'activate',
935 'plugin' => 'woo-product-variation-gallery/woo-product-variation-gallery.php',
936 ],
937 admin_url( 'plugins.php' )
938 ),
939 'help' => esc_html__( 'This module requires: Variation Images Gallery for WooCommerce Plugin', 'shopbuilder' ),
940 'package' => 'free',
941 'active_field' => [
942 'disable' => false,
943 ],
944 'fields' => [],
945 ]
946 ),
947 'mini_cart' => apply_filters(
948 'rtsb/module/mini_cart/options',
949 [
950 'id' => 'mini_cart',
951 'active' => '',
952 'title' => esc_html__( 'Mini Cart', 'shopbuilder' ),
953 'package' => $this->pro_package(),
954 'active_field' => [
955 'label' => esc_html__( 'Enable Mini Cart?', 'shopbuilder' ),
956 'help' => esc_html__( 'Switch on to enable mini cart module.', 'shopbuilder' ),
957 ],
958 'is_active' => true,
959 'fields' => [],
960 ]
961 ),
962 'product_size_chart' => apply_filters(
963 'rtsb/module/product_size_chart/options',
964 [
965 'id' => 'product_size_chart',
966 'active' => '',
967 'title' => esc_html__( 'Product Size Chart', 'shopbuilder' ),
968 'package' => $this->pro_package(),
969 'active_field' => [
970 'label' => esc_html__( 'Enable Product Size Chart?', 'shopbuilder' ),
971 'help' => esc_html__( 'Switch on to enable Product Size Chart module.', 'shopbuilder' ),
972 ],
973 'fields' => [],
974 ]
975 ),
976 'product_badges' => apply_filters(
977 'rtsb/module/product_badges/options',
978 [
979 'id' => 'product_badges',
980 'active' => '',
981 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
982 'package' => $this->pro_package(),
983 'active_field' => [
984 'label' => esc_html__( 'Enable Product Badges?', 'shopbuilder' ),
985 'help' => esc_html__( 'Switch on to enable product badges module.', 'shopbuilder' ),
986 ],
987 'fields' => [],
988 ]
989 ),
990 'customize_my_account' => apply_filters(
991 'rtsb/module/customize_my_account/options',
992 [
993 'id' => 'customize_my_account',
994 'active' => '',
995 'title' => esc_html__( 'Customize My Account', 'shopbuilder' ),
996 'package' => $this->pro_package(),
997 'active_field' => [
998 'label' => esc_html__( 'Enable Customize My Account?', 'shopbuilder' ),
999 'help' => esc_html__( 'Switch on to enable customize my account module.', 'shopbuilder' ),
1000 ],
1001 'fields' => [],
1002 ]
1003 ),
1004 'pre_order' => apply_filters(
1005 'rtsb/module/pre_order/options',
1006 [
1007 'id' => 'pre_order',
1008 'active' => '',
1009 'title' => esc_html__( 'Pre-Order', 'shopbuilder' ),
1010 'package' => $this->pro_package(),
1011 'active_field' => [
1012 'label' => esc_html__( 'Enable Pre-Order?', 'shopbuilder' ),
1013 'help' => esc_html__( 'Switch on to enable pre-order module.', 'shopbuilder' ),
1014 ],
1015 'fields' => [],
1016 ]
1017 ),
1018 'currency_switcher' => apply_filters(
1019 'rtsb/module/currency_switcher/options',
1020 [
1021 'id' => 'currency_switcher',
1022 'active' => '',
1023 'title' => esc_html__( 'Currency Switcher', 'shopbuilder' ),
1024 'package' => $this->pro_package(),
1025 'active_field' => [
1026 'label' => esc_html__( 'Enable Currency Switcher?', 'shopbuilder' ),
1027 'help' => esc_html__( 'Switch on to enable currency switcher module.', 'shopbuilder' ),
1028 ],
1029 'is_active' => true,
1030 'fields' => [],
1031 ]
1032 ),
1033 'product_add_ons' => apply_filters(
1034 'rtsb/module/product_add_ons/options',
1035 [
1036 'id' => 'product_add_ons',
1037 'active' => '',
1038 'title' => esc_html__( 'Product Add-Ons', 'shopbuilder' ),
1039 'package' => $this->pro_package(),
1040 'active_field' => [
1041 'label' => esc_html__( 'Enable Product Add-Ons?', 'shopbuilder' ),
1042 'help' => esc_html__( 'Switch on to enable product add-ons module.', 'shopbuilder' ),
1043 ],
1044 'is_active' => true,
1045 'fields' => [],
1046 ]
1047 ),
1048 // Checkout Fields Manager.
1049 'checkout_fields_editor' => apply_filters(
1050 'rtsb/module/checkout_fields_editor/options',
1051 [
1052 'id' => 'checkout_fields_editor',
1053 'active' => '',
1054 'title' => esc_html__( 'Checkout Fields Editor', 'shopbuilder' ),
1055 'base_class' => CheckoutEditorInit::class,
1056 'active_field' => [
1057 'label' => esc_html__( 'Enable Checkout Fields Editor?', 'shopbuilder' ),
1058 'help' => esc_html__( 'Switch on to enable Checkout Fields Editor module.', 'shopbuilder' ),
1059 ],
1060 'fields' => [
1061 'checkout_billing_intro' => [
1062 'id' => 'checkout_billing_intro',
1063 'type' => 'description',
1064 'text' => esc_html__( 'Billing Fields Editor allows you to customize the default billing fields on your checkout page.', 'shopbuilder' ),
1065 'tab' => 'billing_fields',
1066 ],
1067 'modify_billing_form' => [
1068 'id' => 'modify_billing_form',
1069 'type' => 'switch',
1070 'label' => esc_html__( 'Customize Billing Form?', 'shopbuilder' ),
1071 'help' => esc_html__( 'Enable this option to edit billing Form.', 'shopbuilder' ),
1072 'tab' => 'billing_fields',
1073 ],
1074
1075 'checkout_billing_fields_info' => [
1076 'id' => 'checkout_billing_fields_info',
1077 'type' => 'title',
1078 'label' => esc_html__( 'Billing Fields', 'shopbuilder' ),
1079 'tab' => 'billing_fields',
1080 'dependency' => [
1081 'rules' => [
1082 [
1083 'item' => 'modules.checkout_fields_editor.modify_billing_form',
1084 'value' => 'on',
1085 'operator' => '==',
1086 ],
1087 ],
1088 ],
1089 ],
1090 'checkout_billing_fields' => [
1091 'id' => 'checkout_billing_fields',
1092 'type' => 'checkout_fields',
1093 'tab' => 'billing_fields',
1094 'value' => wp_json_encode( CheckoutFns::default_billing_fields() ),
1095 'dependency' => [
1096 'rules' => [
1097 [
1098 'item' => 'modules.checkout_fields_editor.modify_billing_form',
1099 'value' => 'on',
1100 'operator' => '==',
1101 ],
1102 ],
1103 ],
1104 ],
1105 'checkout_shipping_intro' => [
1106 'id' => 'checkout_shipping_intro',
1107 'type' => 'description',
1108 'text' => esc_html__( 'Shipping Fields Editor allows you to customize the default shipping fields on your checkout page.', 'shopbuilder' ),
1109 'tab' => 'shipping_fields',
1110 ],
1111 'modify_shipping_form' => [
1112 'id' => 'modify_billing_form',
1113 'type' => 'switch',
1114 'label' => esc_html__( 'Modify Shipping Form?', 'shopbuilder' ),
1115 'help' => esc_html__( 'Enable this option to edit shipping Form.', 'shopbuilder' ),
1116 'tab' => 'shipping_fields',
1117 ],
1118 'checkout_shipping_fields_info' => [
1119 'id' => 'checkout_shipping_fields_info',
1120 'type' => 'title',
1121 'label' => esc_html__( 'Shipping Fields', 'shopbuilder' ),
1122 'tab' => 'shipping_fields',
1123 'dependency' => [
1124 'rules' => [
1125 [
1126 'item' => 'modules.checkout_fields_editor.modify_shipping_form',
1127 'value' => 'on',
1128 'operator' => '==',
1129 ],
1130 ],
1131 ],
1132 ],
1133 'checkout_shipping_fields' => [
1134 'id' => 'checkout_shipping_fields',
1135 'type' => 'checkout_fields',
1136 'tab' => 'shipping_fields',
1137 'value' => wp_json_encode( CheckoutFns::default_shipping_fields() ),
1138 'dependency' => [
1139 'rules' => [
1140 [
1141 'item' => 'modules.checkout_fields_editor.modify_shipping_form',
1142 'value' => 'on',
1143 'operator' => '==',
1144 ],
1145 ],
1146 ],
1147 ],
1148 'checkout_additional_intro' => [
1149 'id' => 'checkout_additional_intro',
1150 'type' => 'description',
1151 'text' => esc_html__( 'Additional Fields Editor allows you to customize the extra fields on your checkout page.', 'shopbuilder' ),
1152 'tab' => 'additional_fields',
1153 ],
1154 'modify_additional_form' => [
1155 'id' => 'modify_additional_form',
1156 'type' => 'switch',
1157 'label' => esc_html__( 'Modify Additional Form Field?', 'shopbuilder' ),
1158 'help' => esc_html__( 'Enable this option to edit Additional Form.', 'shopbuilder' ),
1159 'tab' => 'additional_fields',
1160 ],
1161 'checkout_additional_fields_info' => [
1162 'id' => 'checkout_additional_fields_info',
1163 'type' => 'title',
1164 'label' => esc_html__( 'Additional Fields', 'shopbuilder' ),
1165 'tab' => 'additional_fields',
1166 'dependency' => [
1167 'rules' => [
1168 [
1169 'item' => 'modules.checkout_fields_editor.modify_additional_form',
1170 'value' => 'on',
1171 'operator' => '==',
1172 ],
1173 ],
1174 ],
1175 ],
1176 'checkout_additional_fields' => [
1177 'id' => 'checkout_additional_fields',
1178 'type' => 'checkout_fields',
1179 'tab' => 'additional_fields',
1180 'value' => wp_json_encode( CheckoutFns::checkout_additional_fields() ),
1181 'dependency' => [
1182 'rules' => [
1183 [
1184 'item' => 'modules.checkout_fields_editor.modify_additional_form',
1185 'value' => 'on',
1186 'operator' => '==',
1187 ],
1188 ],
1189 ],
1190 ],
1191 ],
1192 'tabs' => [
1193 'general' => [
1194 'title' => esc_html__( 'General', 'shopbuilder' ),
1195 ],
1196 'billing_fields' => [
1197 'title' => esc_html__( 'Billing Fields', 'shopbuilder' ),
1198 ],
1199 'shipping_fields' => [
1200 'title' => esc_html__( 'Shipping Fields', 'shopbuilder' ),
1201 ],
1202 'additional_fields' => [
1203 'title' => esc_html__( 'Additional Fields', 'shopbuilder' ),
1204 ],
1205 ],
1206 ]
1207 ),
1208 'sales_notification' => apply_filters(
1209 'rtsb/module/sales_notification/options',
1210 [
1211 'id' => 'sales_notification',
1212 'active' => '',
1213 'title' => esc_html__( 'Sales Notification', 'shopbuilder' ),
1214 'package' => $this->pro_package(),
1215 'active_field' => [
1216 'label' => esc_html__( 'Enable Sales Notification?', 'shopbuilder' ),
1217 'help' => esc_html__( 'Switch on to enable Sales Notification module.', 'shopbuilder' ),
1218 ],
1219 'fields' => [],
1220 ]
1221 ),
1222 'flash_sale_countdown' => apply_filters(
1223 'rtsb/module/flash_sale_countdown/options',
1224 [
1225 'id' => 'flash_sale_countdown',
1226 'active' => '',
1227 'title' => esc_html__( 'Flash Sale Countdown', 'shopbuilder' ),
1228 'package' => $this->pro_package(),
1229 'active_field' => [
1230 'label' => esc_html__( 'Enable Flash Sale Countdown?', 'shopbuilder' ),
1231 'help' => esc_html__( 'Switch on to enable Flash Sale Countdown module.', 'shopbuilder' ),
1232 ],
1233 'fields' => [],
1234 ]
1235 ),
1236 'quick_checkout' => apply_filters(
1237 'rtsb/module/quick_checkout/options',
1238 [
1239 'id' => 'quick_checkout',
1240 'active' => '',
1241 'title' => esc_html__( 'Quick Checkout', 'shopbuilder' ),
1242 'package' => $this->pro_package(),
1243 'active_field' => [
1244 'label' => esc_html__( 'Enable Quick Checkout?', 'shopbuilder' ),
1245 'help' => esc_html__( 'Switch on to enable quick checkout module. Note: Currently, this is not suitable for variable products.', 'shopbuilder' ),
1246 ],
1247 'fields' => [],
1248 ]
1249 ),
1250 'multi_step_checkout' => apply_filters(
1251 'rtsb/module/multi_step_checkout/options',
1252 [
1253 'id' => 'multi_step_checkout',
1254 'active' => '',
1255 'title' => esc_html__( 'Multi-Step Checkout', 'shopbuilder' ),
1256 'package' => $this->pro_package(),
1257 'active_field' => [
1258 'label' => esc_html__( 'Enable Multi-Step Checkout?', 'shopbuilder' ),
1259 'help' => esc_html__( 'Switch on to enable Multi-step Checkout module.', 'shopbuilder' ),
1260 ],
1261 'fields' => [],
1262 ]
1263 ),
1264 'back_order' => apply_filters(
1265 'rtsb/module/back_order/options',
1266 [
1267 'id' => 'back_order',
1268 'active' => '',
1269 'title' => esc_html__( 'Back-Order', 'shopbuilder' ),
1270 'package' => $this->pro_package(),
1271 'active_field' => [
1272 'label' => esc_html__( 'Enable Back-Order?', 'shopbuilder' ),
1273 'help' => esc_html__( 'Switch on to enable back-order module.', 'shopbuilder' ),
1274 ],
1275 'fields' => [],
1276 ]
1277 ),
1278 'sticky_add_to_cart' => apply_filters(
1279 'rtsb/module/sticky_add_to_cart/options',
1280 [
1281 'id' => 'sticky_add_to_cart',
1282 'active' => '',
1283 'title' => esc_html__( 'Sticky Add-To-Cart', 'shopbuilder' ),
1284 'package' => $this->pro_package(),
1285 'active_field' => [
1286 'label' => esc_html__( 'Enable Sticky Add-To-Cart?', 'shopbuilder' ),
1287 'help' => esc_html__( 'Switch on to enable sticky add-to-cart module.', 'shopbuilder' ),
1288 ],
1289 'fields' => [],
1290 ]
1291 ),
1292 ];
1293 return apply_filters( 'rtsb/core/modules/raw_list', $list );
1294 }
1295 }
1296