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
← All changes | app/Models/ModuleList.php +414 -63 2.1.52.3.0 View file →
@@ -1,25 +1,43 @@
1 1 <?php
2 +/**
3 + * ShopBuilder Module List.
4 + *
5 + * @package RadiusTheme\SB
6 + */
2 7
3 8 namespace RadiusTheme\SB\Models;
4 9
5 10 use RadiusTheme\SB\Helpers\Fns;
6 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;
7 15 use RadiusTheme\SB\Modules\Compare\Compare;
16 +use RadiusTheme\SB\Modules\WishList\Wishlist;
8 17 use RadiusTheme\SB\Modules\Compare\CompareFns;
9 18 use RadiusTheme\SB\Modules\QuickView\QuickView;
10 -use RadiusTheme\SB\Modules\WishList\Wishlist;
11 19 use RadiusTheme\SB\Modules\WishList\WishlistFns;
12 -use RadiusTheme\SB\Traits\SingletonTrait;
13 20
14 21 defined( 'ABSPATH' ) || exit;
15 22
23 +/**
24 + * ShopBuilder Module List.
25 + */
16 26 class ModuleList extends ListModel {
17 27
18 28 use SingletonTrait;
19 29
30 + /**
31 + * List ID.
32 + *
33 + * @var string
34 + */
20 35 protected $list_id = 'modules';
21 36
37 + /**
38 + * Class constructor.
39 + */
22 40 public function __construct() {
23 41 parent::__construct();
24 42 $this->title = esc_html__( 'Modules', 'shopbuilder' );
25 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' );
@@ -24,11 +42,16 @@
24 42 $this->title = esc_html__( 'Modules', 'shopbuilder' );
25 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' );
26 44 }
27 45
46 + /**
47 + * Module list.
48 + *
49 + * @return mixed|null
50 + */
28 51 protected function raw_list() {
29 52 $list = [
30 - 'quick_view' => apply_filters(
53 + 'quick_view' => apply_filters(
31 54 'rtsb/module/quick_view/options',
32 55 [
33 56 'id' => 'quick_view',
34 57 'title' => esc_html__( 'Quick View', 'shopbuilder' ),
@@ -39,8 +62,16 @@
39 62 'active_field' => [
40 63 'label' => esc_html__( 'Enable Quick View?', 'shopbuilder' ),
41 64 'help' => esc_html__( 'Switch on to enable quick view module.', 'shopbuilder' ),
42 65 ],
66 + 'tabs' => [
67 + 'general' => [
68 + 'title' => esc_html__( 'General', 'shopbuilder' ),
69 + ],
70 + 'style' => [
71 + 'title' => esc_html__( 'Style', 'shopbuilder' ),
72 + ],
73 + ],
43 74 'fields' => apply_filters(
44 75 'rtsb/module/quick_view/fields',
45 76 [
46 77 'loop_btn_position' => [
@@ -48,8 +79,9 @@
48 79 'type' => 'select',
49 80 'value' => 'custom',
50 81 'label' => esc_html__( 'Shop Page Button Position', 'shopbuilder' ),
51 82 'help' => esc_html__( 'You can manage quick view button position in shop page.', 'shopbuilder' ),
83 + 'tab' => 'general',
52 84 'options' => [
53 85 'before_add_to_cart' => esc_html__( 'Before Add To Cart', 'shopbuilder' ),
54 86 'after_add_to_cart' => esc_html__( 'After Add To Cart', 'shopbuilder' ),
55 87 'shortcode' => esc_html__( 'Use Shortcode', 'shopbuilder' ),
@@ -54,8 +86,9 @@
54 86 'after_add_to_cart' => esc_html__( 'After Add To Cart', 'shopbuilder' ),
55 87 'shortcode' => esc_html__( 'Use Shortcode', 'shopbuilder' ),
56 88 'custom' => esc_html__( 'Custom Position', 'shopbuilder' ),
57 89 ],
90 +
58 91 ],
59 92 'loop_btn_position_shortcode' => [
60 93 'type' => 'raw',
61 94 'label' => ' ',
@@ -63,8 +96,9 @@
63 96 /* translators: 1: The shortcode.*/
64 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' ),
65 98 '<code>[rtsb_quick_view_button]</code>'
66 99 ),
100 + 'tab' => 'general',
67 101 'dependency' => [
68 102 'rules' => [
69 103 [
70 104 'item' => 'modules.quick_view.loop_btn_position',
@@ -80,10 +114,11 @@
80 114 'label' => esc_html__( 'Enter Hook Name', 'shopbuilder' ),
81 115 'help' => sprintf(
82 116 /* translators: 1: The shortcode.*/
83 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' ),
84 - "<code>&lt;?php do_action( 'rtsb/modules/quick_view/frontend/display' ); ?&gt;</code>"
118 + "<br /><code>&lt;?php do_action( 'rtsb/modules/quick_view/frontend/display' ); ?&gt;</code><br />"
85 119 ),
120 + 'tab' => 'general',
86 121 'dependency' => [
87 122 'rules' => [
88 123 [
89 124 'item' => 'modules.quick_view.loop_btn_position',
@@ -100,8 +135,9 @@
100 135 'size' => 'small',
101 136 'min' => 0,
102 137 'max' => 999,
103 138 'label' => esc_html__( 'Hook Priority', 'shopbuilder' ),
139 + 'tab' => 'general',
104 140 'dependency' => [
105 141 'rules' => [
106 142 [
107 143 'item' => 'modules.quick_view.loop_btn_position',
@@ -117,14 +153,69 @@
117 153 'help' => esc_html__( 'Enter your quick view button text.', 'shopbuilder' ),
118 154 'type' => 'text',
119 155 'value' => 'Quick View',
120 156 'placeholder' => 'Quick View',
157 + 'tab' => 'general',
121 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 +
122 213 ]
123 214 ),
124 215 ]
125 216 ),
126 - 'wishlist' => apply_filters(
217 + 'wishlist' => apply_filters(
127 218 'rtsb/module/wishlist/options',
128 219 [
129 220 'id' => 'wishlist',
130 221 'title' => esc_html__( 'Wishlist', 'shopbuilder' ),
@@ -145,8 +236,24 @@
145 236 'label' => esc_html__( 'Limit Wishlist Use', 'shopbuilder' ),
146 237 'help' => esc_html__( 'Enable this option to allow only the logged-in users to use the Wishlist feature.', 'shopbuilder' ),
147 238 'tab' => 'general',
148 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 + ],
149 256 'wishlist_shop_wrapper_heading' => [
150 257 'id' => 'wishlist_shop_wrapper_heading',
151 258 'type' => 'title',
152 259 'label' => esc_html__( 'Shop Page Settings', 'shopbuilder' ),
@@ -213,9 +320,9 @@
213 320 'tab' => 'button',
214 321 'help' => sprintf(
215 322 /* translators: 1: The shortcode.*/
216 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' ),
217 - "<code>&lt;?php do_action('rtsb/modules/wishlist/frontend/display' ); ?&gt;</code>"
324 + "<br /><code>&lt;?php do_action('rtsb/modules/wishlist/frontend/display' ); ?&gt;</code><br />"
218 325 ),
219 326 'dependency' => [
220 327 'rules' => [
221 328 [
@@ -325,9 +432,9 @@
325 432 'tab' => 'button',
326 433 'help' => sprintf(
327 434 /* translators: 1: The shortcode.*/
328 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' ),
329 - "<code>&lt;?php do_action('rtsb/modules/wishlist/frontend/display' ); ?&gt;</code>"
436 + "<br /><code>&lt;?php do_action('rtsb/modules/wishlist/frontend/display' ); ?&gt;</code><br />"
330 437 ),
331 438 'dependency' => [
332 439 'rules' => [
333 440 [
@@ -421,9 +528,8 @@
421 528 'label' => esc_html__( 'Remove if Added to Cart', 'shopbuilder' ),
422 529 'tab' => 'page',
423 530 ),
424 531 */
425 -
426 532 'page' => [
427 533 'id' => 'page',
428 534 'type' => 'select',
429 535 'label' => esc_html__( 'Select Wishlist Page', 'shopbuilder' ),
@@ -434,9 +540,8 @@
434 540 ),
435 541 'options' => Fns::get_pages(),
436 542 'tab' => 'page',
437 543 ],
438 -
439 544 'page_show_fields' => [
440 545 'value' => WishlistFns::instance()->get_field_ids(),
441 546 'id' => 'page_show_fields',
442 547 'multiple' => true,
@@ -462,9 +567,9 @@
462 567 ],
463 568 ],
464 569 ]
465 570 ),
466 - 'compare' => apply_filters(
571 + 'compare' => apply_filters(
467 572 'rtsb/module/compare/options',
468 573 [
469 574 'id' => 'compare',
470 575 'base_class' => Compare::class,
@@ -546,9 +651,9 @@
546 651 'tab' => 'button',
547 652 'help' => sprintf(
548 653 /* translators: 1: The shortcode.*/
549 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' ),
550 - "<code>&lt;?php do_action('rtsb/modules/compare/frontend/display' ); ?&gt;</code>"
655 + "<br /><code>&lt;?php do_action('rtsb/modules/compare/frontend/display' ); ?&gt;</code><br />"
551 656 ),
552 657 'dependency' => [
553 658 'rules' => [
554 659 [
@@ -658,9 +763,9 @@
658 763 'tab' => 'button',
659 764 'help' => sprintf(
660 765 /* translators: 1: The shortcode.*/
661 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' ),
662 - "<code>&lt;?php do_action('rtsb/modules/compare/frontend/display' ); ?&gt;</code>"
767 + "<br /><code>&lt;?php do_action('rtsb/modules/compare/frontend/display' ); ?&gt;</code><br />"
663 768 ),
664 769 'dependency' => [
665 770 'rules' => [
666 771 [
@@ -786,27 +891,27 @@
786 891
787 892 ],
788 893 ]
789 894 ),
790 - 'variation_gallery' => apply_filters(
791 - 'rtsb/module/variation_gallery/options',
895 + 'variation_swatches' => apply_filters(
896 + 'rtsb/module/variation_swatches/options',
792 897 [
793 - 'id' => 'variation_gallery',
898 + 'id' => 'variation_swatches',
794 899 'external' => true,
795 900 'category' => 'general',
796 - 'title' => esc_html__( 'Variation Gallery', 'shopbuilder' ),
797 - 'pluginSlug' => 'woo-product-variation-gallery',
798 - 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ),
799 - 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ),
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' ),
800 905 'pluginActiveUrl' => add_query_arg(
801 906 [
802 - '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-gallery/woo-product-variation-gallery.php' ),
907 + '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-swatches/woo-product-variation-swatches.php' ),
803 908 'action' => 'activate',
804 - 'plugin' => 'woo-product-variation-gallery/woo-product-variation-gallery.php',
909 + 'plugin' => 'woo-product-variation-swatches/woo-product-variation-swatches.php',
805 910 ],
806 911 admin_url( 'plugins.php' )
807 912 ),
808 - 'help' => esc_html__( 'This module requires: Variation Images Gallery for WooCommerce Plugin', 'shopbuilder' ),
913 + 'help' => esc_html__( 'This module requires: Variation Swatches for WooCommerce Plugin.', 'shopbuilder' ),
809 914 'package' => 'free',
810 915 'active_field' => [
811 916 'disable' => false,
812 917 ],
@@ -812,27 +917,27 @@
812 917 ],
813 918 'fields' => [],
814 919 ]
815 920 ),
816 - 'variation_swatches' => apply_filters(
817 - 'rtsb/module/variation_swatches/options',
921 + 'variation_gallery' => apply_filters(
922 + 'rtsb/module/variation_gallery/options',
818 923 [
819 - 'id' => 'variation_swatches',
924 + 'id' => 'variation_gallery',
820 925 'external' => true,
821 926 'category' => 'general',
822 - 'title' => esc_html__( 'Variation Swatches', 'shopbuilder' ),
823 - 'pluginSlug' => 'woo-product-variation-swatches',
824 - 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ),
825 - 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ),
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' ),
826 931 'pluginActiveUrl' => add_query_arg(
827 932 [
828 - '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-swatches/woo-product-variation-swatches.php' ),
933 + '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-gallery/woo-product-variation-gallery.php' ),
829 934 'action' => 'activate',
830 - 'plugin' => 'woo-product-variation-swatches/woo-product-variation-swatches.php',
935 + 'plugin' => 'woo-product-variation-gallery/woo-product-variation-gallery.php',
831 936 ],
832 937 admin_url( 'plugins.php' )
833 938 ),
834 - 'help' => esc_html__( 'This module requires: Variation Swatches for WooCommerce Plugin.', 'shopbuilder' ),
939 + 'help' => esc_html__( 'This module requires: Variation Images Gallery for WooCommerce Plugin', 'shopbuilder' ),
835 940 'package' => 'free',
836 941 'active_field' => [
837 942 'disable' => false,
838 943 ],
@@ -838,9 +943,270 @@
838 943 ],
839 944 'fields' => [],
840 945 ]
841 946 ),
842 - 'sales_notification' => apply_filters(
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(
843 1209 'rtsb/module/sales_notification/options',
844 1210 [
845 1211 'id' => 'sales_notification',
846 1212 'active' => '',
@@ -852,9 +1218,9 @@
852 1218 ],
853 1219 'fields' => [],
854 1220 ]
855 1221 ),
856 - 'flash_sale_countdown' => apply_filters(
1222 + 'flash_sale_countdown' => apply_filters(
857 1223 'rtsb/module/flash_sale_countdown/options',
858 1224 [
859 1225 'id' => 'flash_sale_countdown',
860 1226 'active' => '',
@@ -866,24 +1232,9 @@
866 1232 ],
867 1233 'fields' => [],
868 1234 ]
869 1235 ),
870 - 'mini_cart' => apply_filters(
871 - 'rtsb/module/mini_cart/options',
872 - [
873 - 'id' => 'mini_cart',
874 - 'active' => '',
875 - 'title' => esc_html__( 'Mini Cart', 'shopbuilder' ),
876 - 'package' => $this->pro_package(),
877 - 'active_field' => [
878 - 'label' => esc_html__( 'Enable Mini Cart?', 'shopbuilder' ),
879 - 'help' => esc_html__( 'Switch on to enable mini cart module.', 'shopbuilder' ),
880 - ],
881 - 'is_active' => true,
882 - 'fields' => [],
883 - ]
884 - ),
885 - 'quick_checkout' => apply_filters(
1236 + 'quick_checkout' => apply_filters(
886 1237 'rtsb/module/quick_checkout/options',
887 1238 [
888 1239 'id' => 'quick_checkout',
889 1240 'active' => '',
@@ -895,9 +1246,9 @@
895 1246 ],
896 1247 'fields' => [],
897 1248 ]
898 1249 ),
899 - 'multi_step_checkout' => apply_filters(
1250 + 'multi_step_checkout' => apply_filters(
900 1251 'rtsb/module/multi_step_checkout/options',
901 1252 [
902 1253 'id' => 'multi_step_checkout',
903 1254 'active' => '',
@@ -909,32 +1260,32 @@
909 1260 ],
910 1261 'fields' => [],
911 1262 ]
912 1263 ),
913 - 'product_size_chart' => apply_filters(
914 - 'rtsb/module/product_size_chart/options',
1264 + 'back_order' => apply_filters(
1265 + 'rtsb/module/back_order/options',
915 1266 [
916 - 'id' => 'product_size_chart',
1267 + 'id' => 'back_order',
917 1268 'active' => '',
918 - 'title' => esc_html__( 'Product Size Chart', 'shopbuilder' ),
1269 + 'title' => esc_html__( 'Back-Order', 'shopbuilder' ),
919 1270 'package' => $this->pro_package(),
920 1271 'active_field' => [
921 - 'label' => esc_html__( 'Enable Product Size Chart?', 'shopbuilder' ),
922 - 'help' => esc_html__( 'Switch on to enable Product Size Chart module.', 'shopbuilder' ),
1272 + 'label' => esc_html__( 'Enable Back-Order?', 'shopbuilder' ),
1273 + 'help' => esc_html__( 'Switch on to enable back-order module.', 'shopbuilder' ),
923 1274 ],
924 1275 'fields' => [],
925 1276 ]
926 1277 ),
927 - 'product_badges' => apply_filters(
928 - 'rtsb/module/product_badges/options',
1278 + 'sticky_add_to_cart' => apply_filters(
1279 + 'rtsb/module/sticky_add_to_cart/options',
929 1280 [
930 - 'id' => 'product_badges',
1281 + 'id' => 'sticky_add_to_cart',
931 1282 'active' => '',
932 - 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
1283 + 'title' => esc_html__( 'Sticky Add-To-Cart', 'shopbuilder' ),
933 1284 'package' => $this->pro_package(),
934 1285 'active_field' => [
935 - 'label' => esc_html__( 'Enable Product Badges?', 'shopbuilder' ),
936 - 'help' => esc_html__( 'Switch on to enable product badges module.', 'shopbuilder' ),
1286 + 'label' => esc_html__( 'Enable Sticky Add-To-Cart?', 'shopbuilder' ),
1287 + 'help' => esc_html__( 'Switch on to enable sticky add-to-cart module.', 'shopbuilder' ),
937 1288 ],
938 1289 'fields' => [],
939 1290 ]
940 1291 ),