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 +398 -63 2.1.62.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' ),
@@ -229,9 +320,9 @@
229 320 'tab' => 'button',
230 321 'help' => sprintf(
231 322 /* translators: 1: The shortcode.*/
232 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' ),
233 - "<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 />"
234 325 ),
235 326 'dependency' => [
236 327 'rules' => [
237 328 [
@@ -341,9 +432,9 @@
341 432 'tab' => 'button',
342 433 'help' => sprintf(
343 434 /* translators: 1: The shortcode.*/
344 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' ),
345 - "<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 />"
346 437 ),
347 438 'dependency' => [
348 439 'rules' => [
349 440 [
@@ -437,9 +528,8 @@
437 528 'label' => esc_html__( 'Remove if Added to Cart', 'shopbuilder' ),
438 529 'tab' => 'page',
439 530 ),
440 531 */
441 -
442 532 'page' => [
443 533 'id' => 'page',
444 534 'type' => 'select',
445 535 'label' => esc_html__( 'Select Wishlist Page', 'shopbuilder' ),
@@ -450,9 +540,8 @@
450 540 ),
451 541 'options' => Fns::get_pages(),
452 542 'tab' => 'page',
453 543 ],
454 -
455 544 'page_show_fields' => [
456 545 'value' => WishlistFns::instance()->get_field_ids(),
457 546 'id' => 'page_show_fields',
458 547 'multiple' => true,
@@ -478,9 +567,9 @@
478 567 ],
479 568 ],
480 569 ]
481 570 ),
482 - 'compare' => apply_filters(
571 + 'compare' => apply_filters(
483 572 'rtsb/module/compare/options',
484 573 [
485 574 'id' => 'compare',
486 575 'base_class' => Compare::class,
@@ -562,9 +651,9 @@
562 651 'tab' => 'button',
563 652 'help' => sprintf(
564 653 /* translators: 1: The shortcode.*/
565 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' ),
566 - "<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 />"
567 656 ),
568 657 'dependency' => [
569 658 'rules' => [
570 659 [
@@ -674,9 +763,9 @@
674 763 'tab' => 'button',
675 764 'help' => sprintf(
676 765 /* translators: 1: The shortcode.*/
677 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' ),
678 - "<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 />"
679 768 ),
680 769 'dependency' => [
681 770 'rules' => [
682 771 [
@@ -802,27 +891,27 @@
802 891
803 892 ],
804 893 ]
805 894 ),
806 - 'variation_gallery' => apply_filters(
807 - 'rtsb/module/variation_gallery/options',
895 + 'variation_swatches' => apply_filters(
896 + 'rtsb/module/variation_swatches/options',
808 897 [
809 - 'id' => 'variation_gallery',
898 + 'id' => 'variation_swatches',
810 899 'external' => true,
811 900 'category' => 'general',
812 - 'title' => esc_html__( 'Variation Gallery', 'shopbuilder' ),
813 - 'pluginSlug' => 'woo-product-variation-gallery',
814 - 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ),
815 - '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' ),
816 905 'pluginActiveUrl' => add_query_arg(
817 906 [
818 - '_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' ),
819 908 'action' => 'activate',
820 - 'plugin' => 'woo-product-variation-gallery/woo-product-variation-gallery.php',
909 + 'plugin' => 'woo-product-variation-swatches/woo-product-variation-swatches.php',
821 910 ],
822 911 admin_url( 'plugins.php' )
823 912 ),
824 - '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' ),
825 914 'package' => 'free',
826 915 'active_field' => [
827 916 'disable' => false,
828 917 ],
@@ -828,27 +917,27 @@
828 917 ],
829 918 'fields' => [],
830 919 ]
831 920 ),
832 - 'variation_swatches' => apply_filters(
833 - 'rtsb/module/variation_swatches/options',
921 + 'variation_gallery' => apply_filters(
922 + 'rtsb/module/variation_gallery/options',
834 923 [
835 - 'id' => 'variation_swatches',
924 + 'id' => 'variation_gallery',
836 925 'external' => true,
837 926 'category' => 'general',
838 - 'title' => esc_html__( 'Variation Swatches', 'shopbuilder' ),
839 - 'pluginSlug' => 'woo-product-variation-swatches',
840 - 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ),
841 - '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' ),
842 931 'pluginActiveUrl' => add_query_arg(
843 932 [
844 - '_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' ),
845 934 'action' => 'activate',
846 - 'plugin' => 'woo-product-variation-swatches/woo-product-variation-swatches.php',
935 + 'plugin' => 'woo-product-variation-gallery/woo-product-variation-gallery.php',
847 936 ],
848 937 admin_url( 'plugins.php' )
849 938 ),
850 - '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' ),
851 940 'package' => 'free',
852 941 'active_field' => [
853 942 'disable' => false,
854 943 ],
@@ -854,9 +943,270 @@
854 943 ],
855 944 'fields' => [],
856 945 ]
857 946 ),
858 - '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(
859 1209 'rtsb/module/sales_notification/options',
860 1210 [
861 1211 'id' => 'sales_notification',
862 1212 'active' => '',
@@ -868,9 +1218,9 @@
868 1218 ],
869 1219 'fields' => [],
870 1220 ]
871 1221 ),
872 - 'flash_sale_countdown' => apply_filters(
1222 + 'flash_sale_countdown' => apply_filters(
873 1223 'rtsb/module/flash_sale_countdown/options',
874 1224 [
875 1225 'id' => 'flash_sale_countdown',
876 1226 'active' => '',
@@ -882,24 +1232,9 @@
882 1232 ],
883 1233 'fields' => [],
884 1234 ]
885 1235 ),
886 - 'mini_cart' => apply_filters(
887 - 'rtsb/module/mini_cart/options',
888 - [
889 - 'id' => 'mini_cart',
890 - 'active' => '',
891 - 'title' => esc_html__( 'Mini Cart', 'shopbuilder' ),
892 - 'package' => $this->pro_package(),
893 - 'active_field' => [
894 - 'label' => esc_html__( 'Enable Mini Cart?', 'shopbuilder' ),
895 - 'help' => esc_html__( 'Switch on to enable mini cart module.', 'shopbuilder' ),
896 - ],
897 - 'is_active' => true,
898 - 'fields' => [],
899 - ]
900 - ),
901 - 'quick_checkout' => apply_filters(
1236 + 'quick_checkout' => apply_filters(
902 1237 'rtsb/module/quick_checkout/options',
903 1238 [
904 1239 'id' => 'quick_checkout',
905 1240 'active' => '',
@@ -911,9 +1246,9 @@
911 1246 ],
912 1247 'fields' => [],
913 1248 ]
914 1249 ),
915 - 'multi_step_checkout' => apply_filters(
1250 + 'multi_step_checkout' => apply_filters(
916 1251 'rtsb/module/multi_step_checkout/options',
917 1252 [
918 1253 'id' => 'multi_step_checkout',
919 1254 'active' => '',
@@ -925,32 +1260,32 @@
925 1260 ],
926 1261 'fields' => [],
927 1262 ]
928 1263 ),
929 - 'product_size_chart' => apply_filters(
930 - 'rtsb/module/product_size_chart/options',
1264 + 'back_order' => apply_filters(
1265 + 'rtsb/module/back_order/options',
931 1266 [
932 - 'id' => 'product_size_chart',
1267 + 'id' => 'back_order',
933 1268 'active' => '',
934 - 'title' => esc_html__( 'Product Size Chart', 'shopbuilder' ),
1269 + 'title' => esc_html__( 'Back-Order', 'shopbuilder' ),
935 1270 'package' => $this->pro_package(),
936 1271 'active_field' => [
937 - 'label' => esc_html__( 'Enable Product Size Chart?', 'shopbuilder' ),
938 - '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' ),
939 1274 ],
940 1275 'fields' => [],
941 1276 ]
942 1277 ),
943 - 'product_badges' => apply_filters(
944 - 'rtsb/module/product_badges/options',
1278 + 'sticky_add_to_cart' => apply_filters(
1279 + 'rtsb/module/sticky_add_to_cart/options',
945 1280 [
946 - 'id' => 'product_badges',
1281 + 'id' => 'sticky_add_to_cart',
947 1282 'active' => '',
948 - 'title' => esc_html__( 'Product Badges', 'shopbuilder' ),
1283 + 'title' => esc_html__( 'Sticky Add-To-Cart', 'shopbuilder' ),
949 1284 'package' => $this->pro_package(),
950 1285 'active_field' => [
951 - 'label' => esc_html__( 'Enable Product Badges?', 'shopbuilder' ),
952 - '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' ),
953 1288 ],
954 1289 'fields' => [],
955 1290 ]
956 1291 ),