PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 3.1.3
ShopBuilder – WooCommerce Builder For Elementor v3.1.3
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/GeneralList.php +166 -197 2.0.23.1.3 View file →
@@ -1,10 +1,8 @@
1 1 <?php
2 2
3 3 namespace RadiusTheme\SB\Models;
4 4
5 -// use RadiusTheme\SB\Helpers\Fns;
6 -use RadiusTheme\SB\Elementor\Helper\ControlHelper;
7 5 use RadiusTheme\SB\Helpers\Fns;
8 6 use RadiusTheme\SB\Models\Base\ListModel;
9 7 use RadiusTheme\SB\Traits\SingletonTrait;
10 8
@@ -51,8 +49,86 @@
51 49 * @return array
52 50 */
53 51 protected function raw_list() {
54 52 $list = [
53 + 'optimization' => apply_filters(
54 + 'rtsb/settings/optimization/options',
55 + [
56 + 'id' => 'optimization',
57 + 'category' => 'general',
58 + 'title' => esc_html__( 'Advanced Optimizations', 'shopbuilder' ),
59 + 'package' => $this->pro_version_checker(),
60 + 'badge' => 'new',
61 + 'active_field' => [
62 + 'disable' => true,
63 + ],
64 + 'fields' => [
65 + 'optimization_intro' => [
66 + 'id' => 'optimization_intro',
67 + 'type' => 'description',
68 + 'text' => __( 'Optimize your website for maximum performance from these advanced options. <br /> <span style="color: #dc3545; display: block; margin-top: 10px;">⚠️ Note: After enabling or disabling any of these settings, clear the ShopBuilder cache to ensure changes are applied correctly.</span>', 'shopbuilder' ),
69 + ],
70 + 'enable_optimization' => [
71 + 'id' => 'enable',
72 + 'type' => 'switch',
73 + 'label' => esc_html__( 'Enable Asset Optimization?', 'shopbuilder' ),
74 + 'help' => esc_html__( 'Enable this option to dynamically load assets (styles, scripts) only when needed, helping to optimize your website’s performance', 'shopbuilder' ),
75 + ],
76 + 'load_elementor_scripts' => [
77 + 'id' => 'enable',
78 + 'type' => 'switch',
79 + 'label' => esc_html__( 'Load Elementor Assets?', 'shopbuilder' ),
80 + 'help' => __( 'Enable this option to load necessary Elementor assets on your website. <br /> <span style="color: #dc3545;">Turn this off if you are not using Elementor widgets to optimize site performance.</span>', 'shopbuilder' ),
81 + 'value' => 'on',
82 + 'dependency' => [
83 + 'rules' => [
84 + [
85 + 'item' => 'general.optimization.enable_optimization',
86 + 'value' => 'on',
87 + 'operator' => '==',
88 + ],
89 + ],
90 + ],
91 + ],
92 + 'context_asset_loading' => [
93 + 'id' => 'enable',
94 + 'type' => 'switch',
95 + 'label' => esc_html__( 'Context-Aware Asset Loading?', 'shopbuilder' ),
96 + 'help' => esc_html__( 'Enable this option to dynamically Load only the necessary CSS and JS for each page type (e.g., product, cart, checkout). Disabling this option will include all assets globally on every page.', 'shopbuilder' ),
97 + 'dependency' => [
98 + 'rules' => [
99 + [
100 + 'item' => 'general.optimization.enable_optimization',
101 + 'value' => 'on',
102 + 'operator' => '==',
103 + ],
104 + ],
105 + ],
106 + ],
107 + 'wp_rocket_compatibility' => [
108 + 'id' => 'wp_rocket_compatibility',
109 + 'type' => 'switch',
110 + 'label' => esc_html__( 'WP Rocket Compatibility', 'shopbuilder' ),
111 + 'help' => esc_html__( 'Enable this option to ensure compatibility with the WP Rocket plugin for optimized asset loading.', 'shopbuilder' ),
112 + ],
113 +
114 + 'remove_pre_loader' => [
115 + 'id' => 'remove_pre_loader',
116 + 'type' => 'switch',
117 + 'label' => esc_html__( 'Disable Element Preloader', 'shopbuilder' ),
118 + 'help' => esc_html__( 'Enable this option to remove the element preloader.', 'shopbuilder' ),
119 + ],
120 + /**
121 + 'load_gutenberg_scripts' => [
122 + 'id' => 'enable',
123 + 'type' => 'switch',
124 + 'label' => esc_html__( 'Load Gutenberg Scripts?', 'shopbuilder' ),
125 + 'help' => esc_html__( 'Switch on to load elementor scripts by dynamically loading scripts', 'shopbuilder' ),
126 + ],
127 + */
128 + ],
129 + ],
130 + ),
55 131 'notification' => apply_filters(
56 132 'rtsb/settings/notification/options',
57 133 [
58 134 'id' => 'notification',
@@ -62,8 +138,13 @@
62 138 'active_field' => [
63 139 'disable' => true,
64 140 ],
65 141 'fields' => [
142 + 'notification_intro' => [
143 + 'id' => 'notification_intro',
144 + 'type' => 'description',
145 + 'text' => esc_html__( 'Customize notifications for user actions such as adding items to cart, adding to wishlist, or comparing products.', 'shopbuilder' ),
146 + ],
66 147 'notification_position' => [
67 148 'id' => 'notification_position',
68 149 'value' => 'center-center',
69 150 'type' => 'select',
@@ -68,17 +149,15 @@
68 149 'value' => 'center-center',
69 150 'type' => 'select',
70 151 'label' => esc_html__( 'Notification Position', 'shopbuilder' ),
71 152 'options' => [
72 - 'center-center' => esc_html__( 'Center Center', 'shopbuilder' ),
73 - 'top-right' => esc_html__( 'Top Right', 'shopbuilder' ),
74 - 'bottom-right' => esc_html__( 'Bottom Right', 'shopbuilder' ),
75 - 'bottom-left' => esc_html__( 'Bottom Left', 'shopbuilder' ),
76 - 'top-left' => esc_html__( 'Top Left', 'shopbuilder' ),
77 - //'top-full-width' => esc_html__( 'Top Full Width', 'shopbuilder' ),
78 - //'bottom-full-width' => esc_html__( 'Bottom Full Width', 'shopbuilder' ),
79 - 'top-center' => esc_html__( 'Top center', 'shopbuilder' ),
80 - 'bottom-center' => esc_html__( 'Bottom center', 'shopbuilder' ),
153 + 'center-center' => esc_html__( 'Center Center', 'shopbuilder' ),
154 + 'top-right' => esc_html__( 'Top Right', 'shopbuilder' ),
155 + 'bottom-right' => esc_html__( 'Bottom Right', 'shopbuilder' ),
156 + 'bottom-left' => esc_html__( 'Bottom Left', 'shopbuilder' ),
157 + 'top-left' => esc_html__( 'Top Left', 'shopbuilder' ),
158 + 'top-center' => esc_html__( 'Top center', 'shopbuilder' ),
159 + 'bottom-center' => esc_html__( 'Bottom center', 'shopbuilder' ),
81 160 ],
82 161 ],
83 162 'notification_color' => [
84 163 'id' => 'notification_color',
@@ -97,9 +176,14 @@
97 176 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
98 177 'type' => 'color',
99 178 'tab' => 'floating_button',
100 179 ],
101 -
180 + 'hide_notification' => [
181 + 'id' => 'hide_notification',
182 + 'type' => 'switch',
183 + 'label' => esc_html__( 'Hide Notifications', 'shopbuilder' ),
184 + 'help' => esc_html__( 'Enable this option if you don\'t want the notifications to show.', 'shopbuilder' ),
185 + ],
102 186 ],
103 187 ],
104 188 ),
105 189 'social_share' => apply_filters(
@@ -112,8 +196,13 @@
112 196 'active_field' => [
113 197 'disable' => true,
114 198 ],
115 199 'fields' => [
200 + 'social_share_intro' => [
201 + 'id' => 'social_share_intro',
202 + 'type' => 'description',
203 + 'text' => esc_html__( 'Configure social sharing platforms for products sharing.', 'shopbuilder' ),
204 + ],
116 205 'share_platforms' => [
117 206 'id' => 'share_platforms',
118 207 'label' => esc_html__( 'Select Social Sharing Platforms', 'shopbuilder' ),
119 208 'type' => 'checkbox',
@@ -126,25 +215,8 @@
126 215 'type' => 'switch',
127 216 'label' => esc_html__( 'Sharing Button in Single Product Page', 'shopbuilder' ),
128 217 'help' => esc_html__( 'Enable this option to allow share a product from product page. Woocommerce Supported Sharing plugins added to Hook: woocommerce_share', 'shopbuilder' ),
129 218 ],
130 - /*
131 - * TODO : Implement later.
132 - 'share_icon_show_to_product_page' => array(
133 - 'id' => 'share_icon_show_to_product_page',
134 - 'type' => 'switch',
135 - 'label' => esc_html__( 'Sharing Icon in Single Product Page', 'shopbuilder' ),
136 - 'dependency' => [
137 - 'rules' => [
138 - [
139 - 'item' => 'general.social_share.share_platforms_to_product_page',
140 - 'value' => 'on',
141 - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
142 - ],
143 - ],
144 - ],
145 - ),
146 - */
147 219 'share_icon_layout' => [
148 220 'type' => 'select',
149 221 'value' => 'share-layout1',
150 222 'label' => esc_html__( 'Share Button Layout', 'shopbuilder' ),
@@ -164,8 +236,20 @@
164 236 ],
165 237 ],
166 238 ],
167 239 ),
240 + 'guest_user' => apply_filters(
241 + 'rtsb/settings/guest_user/options',
242 + [
243 + 'id' => 'guest_user',
244 + 'category' => 'general',
245 + 'title' => esc_html__( 'Guest User Controls', 'shopbuilder' ),
246 + 'package' => $this->pro_package(),
247 + 'active_field' => [
248 + 'disable' => true,
249 + ],
250 + ],
251 + ),
168 252 'tooltip' => apply_filters(
169 253 'rtsb/settings/tooltip/options',
170 254 [
171 255 'id' => 'tooltip',
@@ -184,17 +268,22 @@
184 268 'category' => 'checkout',
185 269 'title' => esc_html__( 'Billing Form Settings', 'shopbuilder' ),
186 270 'package' => 'free',
187 271 'active_field' => [
188 - 'label' => esc_html__( 'Enable Billing form settings?', 'shopbuilder' ),
189 - 'help' => esc_html__( 'Switch on to Billing form settings.', 'shopbuilder' ),
272 + 'label' => esc_html__( 'Customize Billing Form Fields?', 'shopbuilder' ),
273 + 'help' => esc_html__( 'Switch on to customize billing form fields.', 'shopbuilder' ),
190 274 ],
191 275 'fields' => [
192 - 'billing_first_name_heading' => [
276 + 'checkout_billing_info' => [
277 + 'id' => 'checkout_billing_info',
278 + 'type' => 'title',
279 + 'label' => __( 'The below form fields customization will be disabled when the <strong><u>Checkout Fields Editor</u></strong> module is activated.', 'shopbuilder' ),
280 + 'customClass' => 'checkout-notice',
281 + ],
282 + 'billing_first_name_heading' => [
193 283 'id' => 'billing_first_name_heading',
194 284 'type' => 'title',
195 285 'label' => esc_html__( 'First Name', 'shopbuilder' ),
196 - // 'tab' => 'name',
197 286 ],
198 287 'billing_first_name' => [
199 288 'id' => 'billing_first_name',
200 289 'label' => esc_html__( 'First name', 'shopbuilder' ),
@@ -210,9 +299,8 @@
210 299 'value' => 'required',
211 300 'label' => 'Required Field',
212 301 ],
213 302 ],
214 - // 'tab' => 'name',
215 303 ],
216 304 'billing_first_name_label' => [
217 305 'id' => 'billing_first_name_label',
218 306 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
@@ -217,15 +305,14 @@
217 305 'id' => 'billing_first_name_label',
218 306 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
219 307 'type' => 'text',
220 308 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
221 - // 'tab' => 'name',
222 309 'dependency' => [
223 310 'rules' => [
224 311 [
225 312 'item' => 'general.billing_form.billing_first_name',
226 313 'value' => 'show',
227 - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
314 + 'operator' => '==',
228 315 ],
229 316 ],
230 317 ],
231 318 ],
@@ -233,25 +320,23 @@
233 320 'id' => 'billing_first_name_placeholder',
234 321 'label' => esc_html__( 'First name Placeholder', 'shopbuilder' ),
235 322 'type' => 'text',
236 323 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
237 - // 'tab' => 'name',
238 324 'dependency' => [
239 325 'rules' => [
240 326 [
241 327 'item' => 'general.billing_form.billing_first_name',
242 328 'value' => 'show',
243 - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
329 + 'operator' => '==',
244 330 ],
245 331 ],
246 332 ],
247 333 ],
248 334
249 - 'billing_last_name_heading' => [
335 + 'billing_last_name_heading' => [
250 336 'id' => 'billing_last_name_heading',
251 337 'type' => 'title',
252 338 'label' => esc_html__( 'Last Name', 'shopbuilder' ),
253 - //'tab' => 'name',
254 339 ],
255 340 'billing_last_name' => [
256 341 'id' => 'billing_last_name',
257 342 'label' => esc_html__( 'Last name', 'shopbuilder' ),
@@ -267,9 +352,8 @@
267 352 'value' => 'required',
268 353 'label' => 'Required Field',
269 354 ],
270 355 ],
271 - // 'tab' => 'name',
272 356 ],
273 357
274 358 'billing_last_name_label' => [
275 359 'id' => 'billing_last_name_label',
@@ -275,9 +359,8 @@
275 359 'id' => 'billing_last_name_label',
276 360 'label' => esc_html__( 'Last name label', 'shopbuilder' ),
277 361 'type' => 'text',
278 362 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
279 - // 'tab' => 'name',
280 363 'dependency' => [
281 364 'rules' => [
282 365 [
283 366 'item' => 'general.billing_form.billing_last_name',
@@ -291,9 +374,8 @@
291 374 'id' => 'billing_last_name_placeholder',
292 375 'label' => esc_html__( 'Last name Placeholder', 'shopbuilder' ),
293 376 'type' => 'text',
294 377 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
295 - // 'tab' => 'name',
296 378 'dependency' => [
297 379 'rules' => [
298 380 [
299 381 'item' => 'general.billing_form.billing_last_name',
@@ -303,13 +385,12 @@
303 385 ],
304 386 ],
305 387 ],
306 388
307 - 'billing_company_heading' => [
389 + 'billing_company_heading' => [
308 390 'id' => 'billing_company_heading',
309 391 'type' => 'title',
310 392 'label' => esc_html__( 'Company', 'shopbuilder' ),
311 - //'tab' => 'company',
312 393 ],
313 394 'billing_company' => [
314 395 'id' => 'billing_company',
315 396 'label' => esc_html__( 'Company name', 'shopbuilder' ),
@@ -328,9 +409,8 @@
328 409 'value' => 'required',
329 410 'label' => 'Required Field',
330 411 ],
331 412 ],
332 - // 'tab' => 'company',
333 413 ],
334 414
335 415 'billing_company_label' => [
336 416 'id' => 'billing_company_label',
@@ -336,9 +416,8 @@
336 416 'id' => 'billing_company_label',
337 417 'label' => esc_html__( 'Company label', 'shopbuilder' ),
338 418 'type' => 'text',
339 419 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
340 - // 'tab' => 'company',
341 420 'dependency' => [
342 421 'rules' => [
343 422 [
344 423 'item' => 'general.billing_form.billing_company',
@@ -352,9 +431,8 @@
352 431 'id' => 'billing_company_placeholder',
353 432 'label' => esc_html__( 'Company Placeholder', 'shopbuilder' ),
354 433 'type' => 'text',
355 434 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
356 - // 'tab' => 'company',
357 435 'dependency' => [
358 436 'rules' => [
359 437 [
360 438 'item' => 'general.billing_form.billing_company',
@@ -364,13 +442,12 @@
364 442 ],
365 443 ],
366 444 ],
367 445
368 - 'billing_country_heading' => [
446 + 'billing_country_heading' => [
369 447 'id' => 'billing_country_heading',
370 448 'type' => 'title',
371 449 'label' => esc_html__( 'Country', 'shopbuilder' ),
372 - //'tab' => 'country',
373 450 ],
374 451 'billing_country' => [
375 452 'id' => 'billing_country',
376 453 'label' => esc_html__( 'Country', 'shopbuilder' ),
@@ -376,22 +453,18 @@
376 453 'label' => esc_html__( 'Country', 'shopbuilder' ),
377 454 'type' => 'checkbox',
378 455 'orientation' => 'vertical',
379 456 'value' => [ 'show', 'required' ],
380 - // 'help' => esc_html__( 'If the Shipping Form is enabled, the Country field is mandatory.', 'shopbuilder' ),
381 457 'options' => [
382 458 [
383 459 'value' => 'show',
384 460 'label' => 'Show Country?',
385 - // 'disabled' => true,
386 461 ],
387 462 [
388 463 'value' => 'required',
389 464 'label' => 'Required Field',
390 - // 'disabled' => true,
391 465 ],
392 466 ],
393 - // 'tab' => 'country',
394 467 ],
395 468
396 469 'billing_country_label' => [
397 470 'id' => 'billing_country_label',
@@ -397,9 +470,8 @@
397 470 'id' => 'billing_country_label',
398 471 'label' => esc_html__( 'Country label', 'shopbuilder' ),
399 472 'type' => 'text',
400 473 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
401 - // 'tab' => 'country',
402 474 'dependency' => [
403 475 'rules' => [
404 476 [
405 477 'item' => 'general.billing_form.billing_country',
@@ -408,13 +480,12 @@
408 480 ],
409 481 ],
410 482 ],
411 483 ],
412 - 'billing_address_1_heading' => [
484 + 'billing_address_1_heading' => [
413 485 'id' => 'billing_address_1_heading',
414 486 'type' => 'title',
415 487 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
416 - //'tab' => 'address',
417 488 ],
418 489 'billing_address_1' => [
419 490 'id' => 'billing_address_1',
420 491 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
@@ -430,9 +501,8 @@
430 501 'value' => 'required',
431 502 'label' => 'Required Field',
432 503 ],
433 504 ],
434 - // 'tab' => 'address',
435 505 ],
436 506
437 507 'billing_address_1_label' => [
438 508 'id' => 'billing_address_1_label',
@@ -438,9 +508,8 @@
438 508 'id' => 'billing_address_1_label',
439 509 'label' => esc_html__( 'Address 1 label', 'shopbuilder' ),
440 510 'type' => 'text',
441 511 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
442 - // 'tab' => 'address',
443 512 'dependency' => [
444 513 'rules' => [
445 514 [
446 515 'item' => 'general.billing_form.billing_address_1',
@@ -454,9 +523,8 @@
454 523 'id' => 'billing_address_1_placeholder',
455 524 'label' => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ),
456 525 'type' => 'text',
457 526 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
458 - // 'tab' => 'address',
459 527 'dependency' => [
460 528 'rules' => [
461 529 [
462 530 'item' => 'general.billing_form.billing_address_1',
@@ -465,14 +533,13 @@
465 533 ],
466 534 ],
467 535 ],
468 536 ],
469 - 'billing_address_2_heading' => [
470 - 'id' => 'billing_address_2_heading',
471 - 'type' => 'title',
472 - 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
473 - //'tab' => 'address',
474 - 'dependency' => [
537 + 'billing_address_2_heading' => [
538 + 'id' => 'billing_address_2_heading',
539 + 'type' => 'title',
540 + 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
541 + 'dependency' => [
475 542 'rules' => [
476 543 [
477 544 'item' => 'general.billing_form.billing_address_1',
478 545 'value' => 'show',
@@ -485,11 +552,11 @@
485 552 'id' => 'billing_address_2',
486 553 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
487 554 'type' => 'checkbox',
488 555 'orientation' => 'vertical',
489 - // 'tab' => 'address',
490 - 'value' => [ 'show',
491 - 'required' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ? 'required' : 'optional',
556 + 'value' => [
557 + 'show',
558 + 'required' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ? 'required' : 'optional',
492 559 ],
493 560 'options' => [
494 561 [
495 562 'value' => 'show',
@@ -512,9 +579,8 @@
512 579 'id' => 'billing_address_2_label',
513 580 'label' => esc_html__( 'Address 2 label', 'shopbuilder' ),
514 581 'type' => 'text',
515 582 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
516 - // 'tab' => 'address',
517 583 'dependency' => [
518 584 'rules' => [
519 585 [
520 586 'item' => 'general.billing_form.billing_address_1',
@@ -533,9 +599,8 @@
533 599 'id' => 'billing_address_2_placeholder',
534 600 'label' => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ),
535 601 'type' => 'text',
536 602 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
537 - // 'tab' => 'address',
538 603 'dependency' => [
539 604 'rules' => [
540 605 [
541 606 'item' => 'general.billing_form.billing_address_1',
@@ -549,13 +614,12 @@
549 614 ],
550 615 ],
551 616 ],
552 617 ],
553 - 'billing_city_heading' => [
618 + 'billing_city_heading' => [
554 619 'id' => 'billing_city_heading',
555 620 'type' => 'title',
556 621 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
557 - // 'tab' => 'city',
558 622 ],
559 623 'billing_city' => [
560 624 'id' => 'billing_city',
561 625 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
@@ -561,9 +625,8 @@
561 625 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
562 626 'type' => 'checkbox',
563 627 'orientation' => 'vertical',
564 628 'value' => [ 'show', 'required' ],
565 - // 'tab' => 'city',
566 629 'options' => [
567 630 [
568 631 'value' => 'show',
569 632 'label' => 'Show Town / City?',
@@ -579,9 +642,8 @@
579 642 'id' => 'billing_city_label',
580 643 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
581 644 'type' => 'text',
582 645 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
583 - // 'tab' => 'city',
584 646 'dependency' => [
585 647 'rules' => [
586 648 [
587 649 'item' => 'general.billing_form.billing_city',
@@ -595,9 +657,8 @@
595 657 'id' => 'billing_city_placeholder',
596 658 'label' => esc_html__( 'City placeholder', 'shopbuilder' ),
597 659 'type' => 'text',
598 660 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
599 - // 'tab' => 'city',
600 661 'dependency' => [
601 662 'rules' => [
602 663 [
603 664 'item' => 'general.billing_form.billing_city',
@@ -606,13 +667,12 @@
606 667 ],
607 668 ],
608 669 ],
609 670 ],
610 - 'billing_state_heading' => [
671 + 'billing_state_heading' => [
611 672 'id' => 'billing_city_heading',
612 673 'type' => 'title',
613 674 'label' => esc_html__( 'State', 'shopbuilder' ),
614 - // 'tab' => 'state',
615 675 ],
616 676 'billing_state' => [
617 677 'id' => 'billing_state',
618 678 'label' => esc_html__( 'State', 'shopbuilder' ),
@@ -628,9 +688,8 @@
628 688 'value' => 'required',
629 689 'label' => 'Required Field',
630 690 ],
631 691 ],
632 - // 'tab' => 'state',
633 692 ],
634 693
635 694 'billing_state_label' => [
636 695 'id' => 'billing_state_label',
@@ -636,10 +695,8 @@
636 695 'id' => 'billing_state_label',
637 696 'label' => esc_html__( 'State label', 'shopbuilder' ),
638 697 'type' => 'text',
639 698 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
640 - //'help' => esc_html__( 'Leave empty to set default. If the Shipping Form is enabled, the State field is mandatory.', 'shopbuilder' ),
641 - // 'tab' => 'state',
642 699 'dependency' => [
643 700 'rules' => [
644 701 [
645 702 'item' => 'general.billing_form.billing_state',
@@ -648,13 +705,12 @@
648 705 ],
649 706 ],
650 707 ],
651 708 ],
652 - 'billing_postcode_heading' => [
709 + 'billing_postcode_heading' => [
653 710 'id' => 'billing_postcode_heading',
654 711 'type' => 'title',
655 712 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
656 - // 'tab' => 'postcode',
657 713 ],
658 714 'billing_postcode' => [
659 715 'id' => 'billing_postcode',
660 716 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
@@ -670,9 +726,8 @@
670 726 'value' => 'required',
671 727 'label' => 'Required Field',
672 728 ],
673 729 ],
674 - // 'tab' => 'postcode',
675 730 ],
676 731 'billing_postcode_label' => [
677 732 'id' => 'billing_postcode_label',
678 733 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
@@ -677,9 +732,8 @@
677 732 'id' => 'billing_postcode_label',
678 733 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
679 734 'type' => 'text',
680 735 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
681 - // 'tab' => 'postcode',
682 736 'dependency' => [
683 737 'rules' => [
684 738 [
685 739 'item' => 'general.billing_form.billing_postcode',
@@ -693,9 +747,8 @@
693 747 'id' => 'billing_postcode_placeholder',
694 748 'label' => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ),
695 749 'type' => 'text',
696 750 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
697 - // 'tab' => 'postcode',
698 751 'dependency' => [
699 752 'rules' => [
700 753 [
701 754 'item' => 'general.billing_form.billing_postcode',
@@ -704,13 +757,12 @@
704 757 ],
705 758 ],
706 759 ],
707 760 ],
708 - 'billing_phone_heading' => [
761 + 'billing_phone_heading' => [
709 762 'id' => 'billing_phone_heading',
710 763 'type' => 'title',
711 764 'label' => esc_html__( 'Phone', 'shopbuilder' ),
712 - // 'tab' => 'phone',
713 765 ],
714 766 'billing_phone' => [
715 767 'id' => 'billing_phone',
716 768 'label' => esc_html__( 'Phone', 'shopbuilder' ),
@@ -715,9 +767,8 @@
715 767 'id' => 'billing_phone',
716 768 'label' => esc_html__( 'Phone', 'shopbuilder' ),
717 769 'type' => 'checkbox',
718 770 'orientation' => 'vertical',
719 - // 'tab' => 'phone',
720 771 'value' => [
721 772 'show',
722 773 'required' === get_option( 'woocommerce_checkout_phone_field', 'required' ) ? 'required' : 'optional',
723 774 ],
@@ -737,9 +788,8 @@
737 788 'id' => 'billing_phone_label',
738 789 'label' => esc_html__( 'Phone field label', 'shopbuilder' ),
739 790 'type' => 'text',
740 791 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
741 - // 'tab' => 'phone',
742 792 'dependency' => [
743 793 'rules' => [
744 794 [
745 795 'item' => 'general.billing_form.billing_phone',
@@ -753,9 +803,8 @@
753 803 'id' => 'billing_phone_placeholder',
754 804 'label' => esc_html__( 'Phone field placeholder', 'shopbuilder' ),
755 805 'type' => 'text',
756 806 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
757 - // 'tab' => 'phone',
758 807 'dependency' => [
759 808 'rules' => [
760 809 [
761 810 'item' => 'general.billing_form.billing_phone',
@@ -764,13 +813,12 @@
764 813 ],
765 814 ],
766 815 ],
767 816 ],
768 - 'billing_email_heading' => [
817 + 'billing_email_heading' => [
769 818 'id' => 'billing_email_heading',
770 819 'type' => 'title',
771 820 'label' => esc_html__( 'Email', 'shopbuilder' ),
772 - // 'tab' => 'email',
773 821 ],
774 822 'billing_email' => [
775 823 'id' => 'billing_email',
776 824 'label' => esc_html__( 'Email address', 'shopbuilder' ),
@@ -775,9 +823,8 @@
775 823 'id' => 'billing_email',
776 824 'label' => esc_html__( 'Email address', 'shopbuilder' ),
777 825 'type' => 'checkbox',
778 826 'orientation' => 'vertical',
779 - // 'tab' => 'email',
780 827 'value' => [ 'show', 'required' ],
781 828 'options' => [
782 829 [
783 830 'value' => 'show',
@@ -793,9 +840,8 @@
793 840 'id' => 'billing_email_label',
794 841 'label' => esc_html__( 'Email address field label', 'shopbuilder' ),
795 842 'type' => 'text',
796 843 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
797 - // 'tab' => 'email',
798 844 'dependency' => [
799 845 'rules' => [
800 846 [
801 847 'item' => 'general.billing_form.billing_email',
@@ -809,9 +855,8 @@
809 855 'id' => 'billing_email_placeholder',
810 856 'label' => esc_html__( 'Email address field placeholder', 'shopbuilder' ),
811 857 'type' => 'text',
812 858 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
813 - // 'tab' => 'email',
814 859 'dependency' => [
815 860 'rules' => [
816 861 [
817 862 'item' => 'general.billing_form.billing_email',
@@ -832,17 +877,22 @@
832 877 'category' => 'checkout',
833 878 'title' => esc_html__( 'Shipping Form Settings', 'shopbuilder' ),
834 879 'package' => 'free',
835 880 'active_field' => [
836 - 'label' => esc_html__( 'Enable Shipping form settings?', 'shopbuilder' ),
837 - 'help' => esc_html__( 'Switch on to Shipping form settings.', 'shopbuilder' ),
881 + 'label' => esc_html__( 'Customize Shipping form Fields?', 'shopbuilder' ),
882 + 'help' => esc_html__( 'Switch on to customize shipping form fields.', 'shopbuilder' ),
838 883 ],
839 884 'fields' => [
840 - 'shipping_first_name_heading' => [
885 + 'checkout_shipping_info' => [
886 + 'id' => 'checkout_shipping_info',
887 + 'type' => 'title',
888 + 'label' => __( 'The below form fields customization will be disabled when the <strong><u>Checkout Fields Editor</u></strong> module is activated.', 'shopbuilder' ),
889 + 'customClass' => 'checkout-notice',
890 + ],
891 + 'shipping_first_name_heading' => [
841 892 'id' => 'shipping_first_name_heading',
842 893 'type' => 'title',
843 894 'label' => esc_html__( 'First Name', 'shopbuilder' ),
844 - // 'tab' => 'name',
845 895 ],
846 896 'shipping_first_name' => [
847 897 'id' => 'shipping_first_name',
848 898 'label' => esc_html__( 'First name', 'shopbuilder' ),
@@ -858,9 +908,8 @@
858 908 'value' => 'required',
859 909 'label' => 'Required Field',
860 910 ],
861 911 ],
862 - // 'tab' => 'name',
863 912 ],
864 913 'shipping_first_name_label' => [
865 914 'id' => 'shipping_first_name_label',
866 915 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
@@ -865,9 +914,8 @@
865 914 'id' => 'shipping_first_name_label',
866 915 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
867 916 'type' => 'text',
868 917 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
869 - // 'tab' => 'name',
870 918 'dependency' => [
871 919 'rules' => [
872 920 [
873 921 'item' => 'general.shipping_form.shipping_first_name',
@@ -881,9 +929,8 @@
881 929 'id' => 'shipping_first_name_placeholder',
882 930 'label' => esc_html__( 'First name Placeholder', 'shopbuilder' ),
883 931 'type' => 'text',
884 932 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
885 - // 'tab' => 'country',
886 933 'dependency' => [
887 934 'rules' => [
888 935 [
889 936 'item' => 'general.shipping_form.shipping_first_name',
@@ -892,13 +939,12 @@
892 939 ],
893 940 ],
894 941 ],
895 942 ],
896 - 'shipping_first_last_heading' => [
943 + 'shipping_first_last_heading' => [
897 944 'id' => 'shipping_first_last_heading',
898 945 'type' => 'title',
899 946 'label' => esc_html__( 'Last Name', 'shopbuilder' ),
900 - // 'tab' => 'name',
901 947 ],
902 948 'shipping_last_name' => [
903 949 'id' => 'shipping_last_name',
904 950 'label' => esc_html__( 'Last name', 'shopbuilder' ),
@@ -914,9 +960,8 @@
914 960 'value' => 'required',
915 961 'label' => 'Required Field',
916 962 ],
917 963 ],
918 - // 'tab' => 'name',
919 964 ],
920 965
921 966 'shipping_last_name_label' => [
922 967 'id' => 'shipping_last_name_label',
@@ -922,9 +967,8 @@
922 967 'id' => 'shipping_last_name_label',
923 968 'label' => esc_html__( 'Last name label', 'shopbuilder' ),
924 969 'type' => 'text',
925 970 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
926 - // 'tab' => 'name',
927 971 'dependency' => [
928 972 'rules' => [
929 973 [
930 974 'item' => 'general.shipping_form.shipping_last_name',
@@ -938,9 +982,8 @@
938 982 'id' => 'shipping_last_name_placeholder',
939 983 'label' => esc_html__( 'Last name Placeholder', 'shopbuilder' ),
940 984 'type' => 'text',
941 985 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
942 - // 'tab' => 'country',
943 986 'dependency' => [
944 987 'rules' => [
945 988 [
946 989 'item' => 'general.shipping_form.shipping_last_name',
@@ -949,13 +992,12 @@
949 992 ],
950 993 ],
951 994 ],
952 995 ],
953 - 'shipping_company_heading' => [
996 + 'shipping_company_heading' => [
954 997 'id' => 'shipping_company_heading',
955 998 'type' => 'title',
956 999 'label' => esc_html__( 'Company', 'shopbuilder' ),
957 - // 'tab' => 'name',
958 1000 ],
959 1001 'shipping_company' => [
960 1002 'id' => 'shipping_company',
961 1003 'label' => esc_html__( 'Company name', 'shopbuilder' ),
@@ -971,9 +1013,8 @@
971 1013 'value' => 'required',
972 1014 'label' => 'Required Field',
973 1015 ],
974 1016 ],
975 - // 'tab' => 'company',
976 1017 ],
977 1018
978 1019 'shipping_company_label' => [
979 1020 'id' => 'shipping_company_label',
@@ -979,9 +1020,8 @@
979 1020 'id' => 'shipping_company_label',
980 1021 'label' => esc_html__( 'Company label', 'shopbuilder' ),
981 1022 'type' => 'text',
982 1023 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
983 - // 'tab' => 'company',
984 1024 'dependency' => [
985 1025 'rules' => [
986 1026 [
987 1027 'item' => 'general.shipping_form.shipping_company',
@@ -995,9 +1035,8 @@
995 1035 'id' => 'shipping_company_placeholder',
996 1036 'label' => esc_html__( 'Shipping company Placeholder', 'shopbuilder' ),
997 1037 'type' => 'text',
998 1038 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
999 - // 'tab' => 'country',
1000 1039 'dependency' => [
1001 1040 'rules' => [
1002 1041 [
1003 1042 'item' => 'general.shipping_form.shipping_company',
@@ -1006,13 +1045,12 @@
1006 1045 ],
1007 1046 ],
1008 1047 ],
1009 1048 ],
1010 - 'shipping_country_heading' => [
1049 + 'shipping_country_heading' => [
1011 1050 'id' => 'shipping_country_heading',
1012 1051 'type' => 'title',
1013 1052 'label' => esc_html__( 'Country', 'shopbuilder' ),
1014 - // 'tab' => 'name',
1015 1053 ],
1016 1054 'shipping_country' => [
1017 1055 'id' => 'shipping_country',
1018 1056 'label' => esc_html__( 'Country', 'shopbuilder' ),
@@ -1022,17 +1060,14 @@
1022 1060 'options' => [
1023 1061 [
1024 1062 'value' => 'show',
1025 1063 'label' => 'Show Country?',
1026 - // 'disabled' => true,
1027 1064 ],
1028 1065 [
1029 1066 'value' => 'required',
1030 1067 'label' => 'Required Field',
1031 - // 'disabled' => true,
1032 1068 ],
1033 1069 ],
1034 - // 'tab' => 'country',
1035 1070 ],
1036 1071
1037 1072 'shipping_country_label' => [
1038 1073 'id' => 'shipping_country_label',
@@ -1048,13 +1083,12 @@
1048 1083 ],
1049 1084 ],
1050 1085 ],
1051 1086 ],
1052 - 'shipping_address_1_heading' => [
1087 + 'shipping_address_1_heading' => [
1053 1088 'id' => 'shipping_address_1_heading',
1054 1089 'type' => 'title',
1055 1090 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
1056 - // 'tab' => 'name',
1057 1091 ],
1058 1092 'shipping_address_1' => [
1059 1093 'id' => 'shipping_address_1',
1060 1094 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
@@ -1070,9 +1104,8 @@
1070 1104 'value' => 'required',
1071 1105 'label' => 'Required Field',
1072 1106 ],
1073 1107 ],
1074 - // 'tab' => 'country',
1075 1108 ],
1076 1109
1077 1110 'shipping_address_1_label' => [
1078 1111 'id' => 'shipping_address_1_label',
@@ -1078,9 +1111,8 @@
1078 1111 'id' => 'shipping_address_1_label',
1079 1112 'label' => esc_html__( 'Address 1 label', 'shopbuilder' ),
1080 1113 'type' => 'text',
1081 1114 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1082 - // 'tab' => 'country',
1083 1115 'dependency' => [
1084 1116 'rules' => [
1085 1117 [
1086 1118 'item' => 'general.shipping_form.shipping_address_1',
@@ -1094,9 +1126,8 @@
1094 1126 'id' => 'shipping_address_1_placeholder',
1095 1127 'label' => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ),
1096 1128 'type' => 'text',
1097 1129 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1098 - // 'tab' => 'country',
1099 1130 'dependency' => [
1100 1131 'rules' => [
1101 1132 [
1102 1133 'item' => 'general.shipping_form.shipping_address_1',
@@ -1105,14 +1136,13 @@
1105 1136 ],
1106 1137 ],
1107 1138 ],
1108 1139 ],
1109 - 'shipping_address_2_heading' => [
1110 - 'id' => 'shipping_address_2_heading',
1111 - 'type' => 'title',
1112 - 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
1113 - // 'tab' => 'name',
1114 - 'dependency' => [
1140 + 'shipping_address_2_heading' => [
1141 + 'id' => 'shipping_address_2_heading',
1142 + 'type' => 'title',
1143 + 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
1144 + 'dependency' => [
1115 1145 'rules' => [
1116 1146 [
1117 1147 'item' => 'general.shipping_form.shipping_address_1',
1118 1148 'value' => 'show',
@@ -1133,9 +1163,8 @@
1133 1163 'label' => 'Show Address field?',
1134 1164 ],
1135 1165 ],
1136 1166 'help' => esc_html__( 'if "Address 1" is hidden then this field also hides.', 'shopbuilder' ),
1137 - // 'tab' => 'country',
1138 1167 'dependency' => [
1139 1168 'rules' => [
1140 1169 [
1141 1170 'item' => 'general.shipping_form.shipping_address_1',
@@ -1150,9 +1179,8 @@
1150 1179 'id' => 'shipping_address_2_label',
1151 1180 'label' => esc_html__( 'Address 2 label', 'shopbuilder' ),
1152 1181 'type' => 'text',
1153 1182 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1154 - // 'tab' => 'country',
1155 1183 'dependency' => [
1156 1184 'rules' => [
1157 1185 [
1158 1186 'item' => 'general.shipping_form.shipping_address_1',
@@ -1171,9 +1199,8 @@
1171 1199 'id' => 'shipping_address_2_placeholder',
1172 1200 'label' => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ),
1173 1201 'type' => 'text',
1174 1202 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1175 - // 'tab' => 'country',
1176 1203 'dependency' => [
1177 1204 'rules' => [
1178 1205 [
1179 1206 'item' => 'general.shipping_form.shipping_address_1',
@@ -1187,13 +1214,12 @@
1187 1214 ],
1188 1215 ],
1189 1216 ],
1190 1217 ],
1191 - 'shipping_city_heading' => [
1218 + 'shipping_city_heading' => [
1192 1219 'id' => 'shipping_city_heading',
1193 1220 'type' => 'title',
1194 1221 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
1195 - // 'tab' => 'name',
1196 1222 ],
1197 1223 'shipping_city' => [
1198 1224 'id' => 'shipping_city',
1199 1225 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
@@ -1209,9 +1235,8 @@
1209 1235 'value' => 'required',
1210 1236 'label' => 'Required Field',
1211 1237 ],
1212 1238 ],
1213 - // 'tab' => 'country',
1214 1239 ],
1215 1240 'shipping_city_label' => [
1216 1241 'id' => 'shipping_city_label',
1217 1242 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
@@ -1216,9 +1241,8 @@
1216 1241 'id' => 'shipping_city_label',
1217 1242 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
1218 1243 'type' => 'text',
1219 1244 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1220 - // 'tab' => 'country',
1221 1245 'dependency' => [
1222 1246 'rules' => [
1223 1247 [
1224 1248 'item' => 'general.shipping_form.shipping_city',
@@ -1232,9 +1256,8 @@
1232 1256 'id' => 'shipping_city_placeholder',
1233 1257 'label' => esc_html__( 'Shipping city placeholder', 'shopbuilder' ),
1234 1258 'type' => 'text',
1235 1259 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1236 - // 'tab' => 'country',
1237 1260 'dependency' => [
1238 1261 'rules' => [
1239 1262 [
1240 1263 'item' => 'general.shipping_form.shipping_city',
@@ -1243,13 +1266,12 @@
1243 1266 ],
1244 1267 ],
1245 1268 ],
1246 1269 ],
1247 - 'shipping_state_heading' => [
1270 + 'shipping_state_heading' => [
1248 1271 'id' => 'shipping_state_heading',
1249 1272 'type' => 'title',
1250 1273 'label' => esc_html__( 'Others', 'shopbuilder' ),
1251 - // 'tab' => 'name',
1252 1274 ],
1253 1275 'shipping_state' => [
1254 1276 'id' => 'shipping_state',
1255 1277 'label' => esc_html__( 'State', 'shopbuilder' ),
@@ -1265,33 +1287,9 @@
1265 1287 'value' => 'required',
1266 1288 'label' => 'Required Field',
1267 1289 ],
1268 1290 ],
1269 - // 'tab' => 'country',
1270 1291 ],
1271 - //
1272 - // 'shipping_state_label' => [
1273 - // 'id' => 'shipping_state_label',
1274 - // 'label' => esc_html__( 'State label', 'shopbuilder' ),
1275 - // 'type' => 'text',
1276 - // 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1277 - // // 'tab' => 'country',
1278 - // 'dependency' => [
1279 - // 'rules' => [
1280 - // [
1281 - // 'item' => 'general.shipping_form.shipping_state',
1282 - // 'value' => 'show',
1283 - // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1284 - // ],
1285 - // ],
1286 - // ],
1287 - // ],
1288 - //'shipping_postcode_heading' => [
1289 - // 'id' => 'shipping_postcode_heading',
1290 - // 'type' => 'title',
1291 - // 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
1292 - // // 'tab' => 'name',
1293 - //],
1294 1292 'shipping_postcode' => [
1295 1293 'id' => 'shipping_postcode',
1296 1294 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
1297 1295 'type' => 'checkbox',
@@ -1300,49 +1298,20 @@
1300 1298 'options' => [
1301 1299 [
1302 1300 'value' => 'show',
1303 1301 'label' => 'Show Postcode / ZIP?',
1304 - ]
1302 + ],
1305 1303 ],
1306 - // 'tab' => 'country',
1307 1304 ],
1308 - // 'shipping_postcode_label' => [
1309 - // 'id' => 'shipping_postcode_label',
1310 - // 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
1311 - // 'type' => 'text',
1312 - // 'help' => esc_html__( 'Leave empty to set default. ', 'shopbuilder' ),
1313 - // // 'tab' => 'country',
1314 - // 'dependency' => [
1315 - // 'rules' => [
1316 - // [
1317 - // 'item' => 'general.shipping_form.shipping_postcode',
1318 - // 'value' => 'show',
1319 - // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1320 - // ],
1321 - // ],
1322 - // ],
1323 - // ],
1324 - // 'shipping_postcode_placeholder' => [
1325 - // 'id' => 'shipping_postcode_placeholder',
1326 - // 'label' => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ),
1327 - // 'type' => 'text',
1328 - // 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1329 - // // 'tab' => 'country',
1330 - // 'dependency' => [
1331 - // 'rules' => [
1332 - // [
1333 - // 'item' => 'general.shipping_form.shipping_postcode',
1334 - // 'value' => 'show',
1335 - // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1336 - // ],
1337 - // ],
1338 - // ],
1339 - // ],
1340 1305
1341 1306 ],
1342 1307 ]
1343 1308 ),
1344 1309 ];
1310 +
1311 + if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
1312 + unset( $list['optimization']['fields']['load_elementor_scripts'] );
1313 + }
1345 1314
1346 1315 return apply_filters( 'rtsb/core/general_settings/raw_list', $list );
1347 1316 }
1348 1317 }