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 +206 -17 2.2.02.3.0 View file →
@@ -8,8 +8,10 @@
8 8 namespace RadiusTheme\SB\Models;
9 9
10 10 use RadiusTheme\SB\Helpers\Fns;
11 11 use RadiusTheme\SB\Models\Base\ListModel;
12 +use RadiusTheme\SB\Modules\CheckoutEditor\CheckoutEditorInit;
13 +use RadiusTheme\SB\Modules\CheckoutEditor\CheckoutFns;
12 14 use RadiusTheme\SB\Traits\SingletonTrait;
13 15 use RadiusTheme\SB\Modules\Compare\Compare;
14 16 use RadiusTheme\SB\Modules\WishList\Wishlist;
15 17 use RadiusTheme\SB\Modules\Compare\CompareFns;
@@ -47,9 +49,9 @@
47 49 * @return mixed|null
48 50 */
49 51 protected function raw_list() {
50 52 $list = [
51 - 'quick_view' => apply_filters(
53 + 'quick_view' => apply_filters(
52 54 'rtsb/module/quick_view/options',
53 55 [
54 56 'id' => 'quick_view',
55 57 'title' => esc_html__( 'Quick View', 'shopbuilder' ),
@@ -211,9 +213,9 @@
211 213 ]
212 214 ),
213 215 ]
214 216 ),
215 - 'wishlist' => apply_filters(
217 + 'wishlist' => apply_filters(
216 218 'rtsb/module/wishlist/options',
217 219 [
218 220 'id' => 'wishlist',
219 221 'title' => esc_html__( 'Wishlist', 'shopbuilder' ),
@@ -565,9 +567,9 @@
565 567 ],
566 568 ],
567 569 ]
568 570 ),
569 - 'compare' => apply_filters(
571 + 'compare' => apply_filters(
570 572 'rtsb/module/compare/options',
571 573 [
572 574 'id' => 'compare',
573 575 'base_class' => Compare::class,
@@ -889,9 +891,9 @@
889 891
890 892 ],
891 893 ]
892 894 ),
893 - 'variation_swatches' => apply_filters(
895 + 'variation_swatches' => apply_filters(
894 896 'rtsb/module/variation_swatches/options',
895 897 [
896 898 'id' => 'variation_swatches',
897 899 'external' => true,
@@ -915,9 +917,9 @@
915 917 ],
916 918 'fields' => [],
917 919 ]
918 920 ),
919 - 'variation_gallery' => apply_filters(
921 + 'variation_gallery' => apply_filters(
920 922 'rtsb/module/variation_gallery/options',
921 923 [
922 924 'id' => 'variation_gallery',
923 925 'external' => true,
@@ -941,9 +943,9 @@
941 943 ],
942 944 'fields' => [],
943 945 ]
944 946 ),
945 - 'mini_cart' => apply_filters(
947 + 'mini_cart' => apply_filters(
946 948 'rtsb/module/mini_cart/options',
947 949 [
948 950 'id' => 'mini_cart',
949 951 'active' => '',
@@ -956,9 +958,9 @@
956 958 'is_active' => true,
957 959 'fields' => [],
958 960 ]
959 961 ),
960 - 'product_size_chart' => apply_filters(
962 + 'product_size_chart' => apply_filters(
961 963 'rtsb/module/product_size_chart/options',
962 964 [
963 965 'id' => 'product_size_chart',
964 966 'active' => '',
@@ -970,9 +972,9 @@
970 972 ],
971 973 'fields' => [],
972 974 ]
973 975 ),
974 - 'product_badges' => apply_filters(
976 + 'product_badges' => apply_filters(
975 977 'rtsb/module/product_badges/options',
976 978 [
977 979 'id' => 'product_badges',
978 980 'active' => '',
@@ -984,9 +986,9 @@
984 986 ],
985 987 'fields' => [],
986 988 ]
987 989 ),
988 - 'customize_my_account' => apply_filters(
990 + 'customize_my_account' => apply_filters(
989 991 'rtsb/module/customize_my_account/options',
990 992 [
991 993 'id' => 'customize_my_account',
992 994 'active' => '',
@@ -998,9 +1000,9 @@
998 1000 ],
999 1001 'fields' => [],
1000 1002 ]
1001 1003 ),
1002 - 'pre_order' => apply_filters(
1004 + 'pre_order' => apply_filters(
1003 1005 'rtsb/module/pre_order/options',
1004 1006 [
1005 1007 'id' => 'pre_order',
1006 1008 'active' => '',
@@ -1012,9 +1014,9 @@
1012 1014 ],
1013 1015 'fields' => [],
1014 1016 ]
1015 1017 ),
1016 - 'currency_switcher' => apply_filters(
1018 + 'currency_switcher' => apply_filters(
1017 1019 'rtsb/module/currency_switcher/options',
1018 1020 [
1019 1021 'id' => 'currency_switcher',
1020 1022 'active' => '',
@@ -1027,11 +1029,184 @@
1027 1029 'is_active' => true,
1028 1030 'fields' => [],
1029 1031 ]
1030 1032 ),
1031 - // Product Addons.
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 + ),
1032 1048 // Checkout Fields Manager.
1033 - 'sales_notification' => apply_filters(
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(
1034 1209 'rtsb/module/sales_notification/options',
1035 1210 [
1036 1211 'id' => 'sales_notification',
1037 1212 'active' => '',
@@ -1043,9 +1218,9 @@
1043 1218 ],
1044 1219 'fields' => [],
1045 1220 ]
1046 1221 ),
1047 - 'flash_sale_countdown' => apply_filters(
1222 + 'flash_sale_countdown' => apply_filters(
1048 1223 'rtsb/module/flash_sale_countdown/options',
1049 1224 [
1050 1225 'id' => 'flash_sale_countdown',
1051 1226 'active' => '',
@@ -1057,9 +1232,9 @@
1057 1232 ],
1058 1233 'fields' => [],
1059 1234 ]
1060 1235 ),
1061 - 'quick_checkout' => apply_filters(
1236 + 'quick_checkout' => apply_filters(
1062 1237 'rtsb/module/quick_checkout/options',
1063 1238 [
1064 1239 'id' => 'quick_checkout',
1065 1240 'active' => '',
@@ -1071,9 +1246,9 @@
1071 1246 ],
1072 1247 'fields' => [],
1073 1248 ]
1074 1249 ),
1075 - 'multi_step_checkout' => apply_filters(
1250 + 'multi_step_checkout' => apply_filters(
1076 1251 'rtsb/module/multi_step_checkout/options',
1077 1252 [
1078 1253 'id' => 'multi_step_checkout',
1079 1254 'active' => '',
@@ -1085,9 +1260,9 @@
1085 1260 ],
1086 1261 'fields' => [],
1087 1262 ]
1088 1263 ),
1089 - 'back_order' => apply_filters(
1264 + 'back_order' => apply_filters(
1090 1265 'rtsb/module/back_order/options',
1091 1266 [
1092 1267 'id' => 'back_order',
1093 1268 'active' => '',
@@ -1095,8 +1270,22 @@
1095 1270 'package' => $this->pro_package(),
1096 1271 'active_field' => [
1097 1272 'label' => esc_html__( 'Enable Back-Order?', 'shopbuilder' ),
1098 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' ),
1099 1288 ],
1100 1289 'fields' => [],
1101 1290 ]
1102 1291 ),