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