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 +100 -157 2.1.133.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',
@@ -139,25 +215,8 @@
139 215 'type' => 'switch',
140 216 'label' => esc_html__( 'Sharing Button in Single Product Page', 'shopbuilder' ),
141 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' ),
142 218 ],
143 - /*
144 - * TODO : Implement later.
145 - 'share_icon_show_to_product_page' => array(
146 - 'id' => 'share_icon_show_to_product_page',
147 - 'type' => 'switch',
148 - 'label' => esc_html__( 'Sharing Icon in Single Product Page', 'shopbuilder' ),
149 - 'dependency' => [
150 - 'rules' => [
151 - [
152 - 'item' => 'general.social_share.share_platforms_to_product_page',
153 - 'value' => 'on',
154 - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
155 - ],
156 - ],
157 - ],
158 - ),
159 - */
160 219 'share_icon_layout' => [
161 220 'type' => 'select',
162 221 'value' => 'share-layout1',
163 222 'label' => esc_html__( 'Share Button Layout', 'shopbuilder' ),
@@ -209,17 +268,22 @@
209 268 'category' => 'checkout',
210 269 'title' => esc_html__( 'Billing Form Settings', 'shopbuilder' ),
211 270 'package' => 'free',
212 271 'active_field' => [
213 - 'label' => esc_html__( 'Enable Billing form settings?', 'shopbuilder' ),
214 - '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' ),
215 274 ],
216 275 'fields' => [
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 + ],
217 282 'billing_first_name_heading' => [
218 283 'id' => 'billing_first_name_heading',
219 284 'type' => 'title',
220 285 'label' => esc_html__( 'First Name', 'shopbuilder' ),
221 - // 'tab' => 'name',
222 286 ],
223 287 'billing_first_name' => [
224 288 'id' => 'billing_first_name',
225 289 'label' => esc_html__( 'First name', 'shopbuilder' ),
@@ -235,9 +299,8 @@
235 299 'value' => 'required',
236 300 'label' => 'Required Field',
237 301 ],
238 302 ],
239 - // 'tab' => 'name',
240 303 ],
241 304 'billing_first_name_label' => [
242 305 'id' => 'billing_first_name_label',
243 306 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
@@ -242,15 +305,14 @@
242 305 'id' => 'billing_first_name_label',
243 306 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
244 307 'type' => 'text',
245 308 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
246 - // 'tab' => 'name',
247 309 'dependency' => [
248 310 'rules' => [
249 311 [
250 312 'item' => 'general.billing_form.billing_first_name',
251 313 'value' => 'show',
252 - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
314 + 'operator' => '==',
253 315 ],
254 316 ],
255 317 ],
256 318 ],
@@ -258,15 +320,14 @@
258 320 'id' => 'billing_first_name_placeholder',
259 321 'label' => esc_html__( 'First name Placeholder', 'shopbuilder' ),
260 322 'type' => 'text',
261 323 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
262 - // 'tab' => 'name',
263 324 'dependency' => [
264 325 'rules' => [
265 326 [
266 327 'item' => 'general.billing_form.billing_first_name',
267 328 'value' => 'show',
268 - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
329 + 'operator' => '==',
269 330 ],
270 331 ],
271 332 ],
272 333 ],
@@ -274,9 +335,8 @@
274 335 'billing_last_name_heading' => [
275 336 'id' => 'billing_last_name_heading',
276 337 'type' => 'title',
277 338 'label' => esc_html__( 'Last Name', 'shopbuilder' ),
278 - // 'tab' => 'name',
279 339 ],
280 340 'billing_last_name' => [
281 341 'id' => 'billing_last_name',
282 342 'label' => esc_html__( 'Last name', 'shopbuilder' ),
@@ -292,9 +352,8 @@
292 352 'value' => 'required',
293 353 'label' => 'Required Field',
294 354 ],
295 355 ],
296 - // 'tab' => 'name',
297 356 ],
298 357
299 358 'billing_last_name_label' => [
300 359 'id' => 'billing_last_name_label',
@@ -300,9 +359,8 @@
300 359 'id' => 'billing_last_name_label',
301 360 'label' => esc_html__( 'Last name label', 'shopbuilder' ),
302 361 'type' => 'text',
303 362 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
304 - // 'tab' => 'name',
305 363 'dependency' => [
306 364 'rules' => [
307 365 [
308 366 'item' => 'general.billing_form.billing_last_name',
@@ -316,9 +374,8 @@
316 374 'id' => 'billing_last_name_placeholder',
317 375 'label' => esc_html__( 'Last name Placeholder', 'shopbuilder' ),
318 376 'type' => 'text',
319 377 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
320 - // 'tab' => 'name',
321 378 'dependency' => [
322 379 'rules' => [
323 380 [
324 381 'item' => 'general.billing_form.billing_last_name',
@@ -332,9 +389,8 @@
332 389 'billing_company_heading' => [
333 390 'id' => 'billing_company_heading',
334 391 'type' => 'title',
335 392 'label' => esc_html__( 'Company', 'shopbuilder' ),
336 - // 'tab' => 'company',
337 393 ],
338 394 'billing_company' => [
339 395 'id' => 'billing_company',
340 396 'label' => esc_html__( 'Company name', 'shopbuilder' ),
@@ -353,9 +409,8 @@
353 409 'value' => 'required',
354 410 'label' => 'Required Field',
355 411 ],
356 412 ],
357 - // 'tab' => 'company',
358 413 ],
359 414
360 415 'billing_company_label' => [
361 416 'id' => 'billing_company_label',
@@ -361,9 +416,8 @@
361 416 'id' => 'billing_company_label',
362 417 'label' => esc_html__( 'Company label', 'shopbuilder' ),
363 418 'type' => 'text',
364 419 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
365 - // 'tab' => 'company',
366 420 'dependency' => [
367 421 'rules' => [
368 422 [
369 423 'item' => 'general.billing_form.billing_company',
@@ -377,9 +431,8 @@
377 431 'id' => 'billing_company_placeholder',
378 432 'label' => esc_html__( 'Company Placeholder', 'shopbuilder' ),
379 433 'type' => 'text',
380 434 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
381 - // 'tab' => 'company',
382 435 'dependency' => [
383 436 'rules' => [
384 437 [
385 438 'item' => 'general.billing_form.billing_company',
@@ -393,9 +446,8 @@
393 446 'billing_country_heading' => [
394 447 'id' => 'billing_country_heading',
395 448 'type' => 'title',
396 449 'label' => esc_html__( 'Country', 'shopbuilder' ),
397 - // 'tab' => 'country',
398 450 ],
399 451 'billing_country' => [
400 452 'id' => 'billing_country',
401 453 'label' => esc_html__( 'Country', 'shopbuilder' ),
@@ -401,22 +453,18 @@
401 453 'label' => esc_html__( 'Country', 'shopbuilder' ),
402 454 'type' => 'checkbox',
403 455 'orientation' => 'vertical',
404 456 'value' => [ 'show', 'required' ],
405 - // 'help' => esc_html__( 'If the Shipping Form is enabled, the Country field is mandatory.', 'shopbuilder' ),
406 457 'options' => [
407 458 [
408 459 'value' => 'show',
409 460 'label' => 'Show Country?',
410 - // 'disabled' => true,
411 461 ],
412 462 [
413 463 'value' => 'required',
414 464 'label' => 'Required Field',
415 - // 'disabled' => true,
416 465 ],
417 466 ],
418 - // 'tab' => 'country',
419 467 ],
420 468
421 469 'billing_country_label' => [
422 470 'id' => 'billing_country_label',
@@ -422,9 +470,8 @@
422 470 'id' => 'billing_country_label',
423 471 'label' => esc_html__( 'Country label', 'shopbuilder' ),
424 472 'type' => 'text',
425 473 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
426 - // 'tab' => 'country',
427 474 'dependency' => [
428 475 'rules' => [
429 476 [
430 477 'item' => 'general.billing_form.billing_country',
@@ -437,9 +484,8 @@
437 484 'billing_address_1_heading' => [
438 485 'id' => 'billing_address_1_heading',
439 486 'type' => 'title',
440 487 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
441 - // 'tab' => 'address',
442 488 ],
443 489 'billing_address_1' => [
444 490 'id' => 'billing_address_1',
445 491 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
@@ -455,9 +501,8 @@
455 501 'value' => 'required',
456 502 'label' => 'Required Field',
457 503 ],
458 504 ],
459 - // 'tab' => 'address',
460 505 ],
461 506
462 507 'billing_address_1_label' => [
463 508 'id' => 'billing_address_1_label',
@@ -463,9 +508,8 @@
463 508 'id' => 'billing_address_1_label',
464 509 'label' => esc_html__( 'Address 1 label', 'shopbuilder' ),
465 510 'type' => 'text',
466 511 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
467 - // 'tab' => 'address',
468 512 'dependency' => [
469 513 'rules' => [
470 514 [
471 515 'item' => 'general.billing_form.billing_address_1',
@@ -479,9 +523,8 @@
479 523 'id' => 'billing_address_1_placeholder',
480 524 'label' => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ),
481 525 'type' => 'text',
482 526 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
483 - // 'tab' => 'address',
484 527 'dependency' => [
485 528 'rules' => [
486 529 [
487 530 'item' => 'general.billing_form.billing_address_1',
@@ -494,9 +537,8 @@
494 537 'billing_address_2_heading' => [
495 538 'id' => 'billing_address_2_heading',
496 539 'type' => 'title',
497 540 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
498 - // 'tab' => 'address',
499 541 'dependency' => [
500 542 'rules' => [
501 543 [
502 544 'item' => 'general.billing_form.billing_address_1',
@@ -510,9 +552,8 @@
510 552 'id' => 'billing_address_2',
511 553 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
512 554 'type' => 'checkbox',
513 555 'orientation' => 'vertical',
514 - // 'tab' => 'address',
515 556 'value' => [
516 557 'show',
517 558 'required' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ? 'required' : 'optional',
518 559 ],
@@ -538,9 +579,8 @@
538 579 'id' => 'billing_address_2_label',
539 580 'label' => esc_html__( 'Address 2 label', 'shopbuilder' ),
540 581 'type' => 'text',
541 582 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
542 - // 'tab' => 'address',
543 583 'dependency' => [
544 584 'rules' => [
545 585 [
546 586 'item' => 'general.billing_form.billing_address_1',
@@ -559,9 +599,8 @@
559 599 'id' => 'billing_address_2_placeholder',
560 600 'label' => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ),
561 601 'type' => 'text',
562 602 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
563 - // 'tab' => 'address',
564 603 'dependency' => [
565 604 'rules' => [
566 605 [
567 606 'item' => 'general.billing_form.billing_address_1',
@@ -579,9 +618,8 @@
579 618 'billing_city_heading' => [
580 619 'id' => 'billing_city_heading',
581 620 'type' => 'title',
582 621 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
583 - // 'tab' => 'city',
584 622 ],
585 623 'billing_city' => [
586 624 'id' => 'billing_city',
587 625 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
@@ -587,9 +625,8 @@
587 625 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
588 626 'type' => 'checkbox',
589 627 'orientation' => 'vertical',
590 628 'value' => [ 'show', 'required' ],
591 - // 'tab' => 'city',
592 629 'options' => [
593 630 [
594 631 'value' => 'show',
595 632 'label' => 'Show Town / City?',
@@ -605,9 +642,8 @@
605 642 'id' => 'billing_city_label',
606 643 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
607 644 'type' => 'text',
608 645 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
609 - // 'tab' => 'city',
610 646 'dependency' => [
611 647 'rules' => [
612 648 [
613 649 'item' => 'general.billing_form.billing_city',
@@ -621,9 +657,8 @@
621 657 'id' => 'billing_city_placeholder',
622 658 'label' => esc_html__( 'City placeholder', 'shopbuilder' ),
623 659 'type' => 'text',
624 660 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
625 - // 'tab' => 'city',
626 661 'dependency' => [
627 662 'rules' => [
628 663 [
629 664 'item' => 'general.billing_form.billing_city',
@@ -636,9 +671,8 @@
636 671 'billing_state_heading' => [
637 672 'id' => 'billing_city_heading',
638 673 'type' => 'title',
639 674 'label' => esc_html__( 'State', 'shopbuilder' ),
640 - // 'tab' => 'state',
641 675 ],
642 676 'billing_state' => [
643 677 'id' => 'billing_state',
644 678 'label' => esc_html__( 'State', 'shopbuilder' ),
@@ -654,9 +688,8 @@
654 688 'value' => 'required',
655 689 'label' => 'Required Field',
656 690 ],
657 691 ],
658 - // 'tab' => 'state',
659 692 ],
660 693
661 694 'billing_state_label' => [
662 695 'id' => 'billing_state_label',
@@ -662,10 +695,8 @@
662 695 'id' => 'billing_state_label',
663 696 'label' => esc_html__( 'State label', 'shopbuilder' ),
664 697 'type' => 'text',
665 698 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
666 - // 'help' => esc_html__( 'Leave empty to set default. If the Shipping Form is enabled, the State field is mandatory.', 'shopbuilder' ),
667 - // 'tab' => 'state',
668 699 'dependency' => [
669 700 'rules' => [
670 701 [
671 702 'item' => 'general.billing_form.billing_state',
@@ -678,9 +709,8 @@
678 709 'billing_postcode_heading' => [
679 710 'id' => 'billing_postcode_heading',
680 711 'type' => 'title',
681 712 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
682 - // 'tab' => 'postcode',
683 713 ],
684 714 'billing_postcode' => [
685 715 'id' => 'billing_postcode',
686 716 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
@@ -696,9 +726,8 @@
696 726 'value' => 'required',
697 727 'label' => 'Required Field',
698 728 ],
699 729 ],
700 - // 'tab' => 'postcode',
701 730 ],
702 731 'billing_postcode_label' => [
703 732 'id' => 'billing_postcode_label',
704 733 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
@@ -703,9 +732,8 @@
703 732 'id' => 'billing_postcode_label',
704 733 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
705 734 'type' => 'text',
706 735 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
707 - // 'tab' => 'postcode',
708 736 'dependency' => [
709 737 'rules' => [
710 738 [
711 739 'item' => 'general.billing_form.billing_postcode',
@@ -719,9 +747,8 @@
719 747 'id' => 'billing_postcode_placeholder',
720 748 'label' => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ),
721 749 'type' => 'text',
722 750 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
723 - // 'tab' => 'postcode',
724 751 'dependency' => [
725 752 'rules' => [
726 753 [
727 754 'item' => 'general.billing_form.billing_postcode',
@@ -734,9 +761,8 @@
734 761 'billing_phone_heading' => [
735 762 'id' => 'billing_phone_heading',
736 763 'type' => 'title',
737 764 'label' => esc_html__( 'Phone', 'shopbuilder' ),
738 - // 'tab' => 'phone',
739 765 ],
740 766 'billing_phone' => [
741 767 'id' => 'billing_phone',
742 768 'label' => esc_html__( 'Phone', 'shopbuilder' ),
@@ -741,9 +767,8 @@
741 767 'id' => 'billing_phone',
742 768 'label' => esc_html__( 'Phone', 'shopbuilder' ),
743 769 'type' => 'checkbox',
744 770 'orientation' => 'vertical',
745 - // 'tab' => 'phone',
746 771 'value' => [
747 772 'show',
748 773 'required' === get_option( 'woocommerce_checkout_phone_field', 'required' ) ? 'required' : 'optional',
749 774 ],
@@ -763,9 +788,8 @@
763 788 'id' => 'billing_phone_label',
764 789 'label' => esc_html__( 'Phone field label', 'shopbuilder' ),
765 790 'type' => 'text',
766 791 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
767 - // 'tab' => 'phone',
768 792 'dependency' => [
769 793 'rules' => [
770 794 [
771 795 'item' => 'general.billing_form.billing_phone',
@@ -779,9 +803,8 @@
779 803 'id' => 'billing_phone_placeholder',
780 804 'label' => esc_html__( 'Phone field placeholder', 'shopbuilder' ),
781 805 'type' => 'text',
782 806 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
783 - // 'tab' => 'phone',
784 807 'dependency' => [
785 808 'rules' => [
786 809 [
787 810 'item' => 'general.billing_form.billing_phone',
@@ -794,9 +817,8 @@
794 817 'billing_email_heading' => [
795 818 'id' => 'billing_email_heading',
796 819 'type' => 'title',
797 820 'label' => esc_html__( 'Email', 'shopbuilder' ),
798 - // 'tab' => 'email',
799 821 ],
800 822 'billing_email' => [
801 823 'id' => 'billing_email',
802 824 'label' => esc_html__( 'Email address', 'shopbuilder' ),
@@ -801,9 +823,8 @@
801 823 'id' => 'billing_email',
802 824 'label' => esc_html__( 'Email address', 'shopbuilder' ),
803 825 'type' => 'checkbox',
804 826 'orientation' => 'vertical',
805 - // 'tab' => 'email',
806 827 'value' => [ 'show', 'required' ],
807 828 'options' => [
808 829 [
809 830 'value' => 'show',
@@ -819,9 +840,8 @@
819 840 'id' => 'billing_email_label',
820 841 'label' => esc_html__( 'Email address field label', 'shopbuilder' ),
821 842 'type' => 'text',
822 843 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
823 - // 'tab' => 'email',
824 844 'dependency' => [
825 845 'rules' => [
826 846 [
827 847 'item' => 'general.billing_form.billing_email',
@@ -835,9 +855,8 @@
835 855 'id' => 'billing_email_placeholder',
836 856 'label' => esc_html__( 'Email address field placeholder', 'shopbuilder' ),
837 857 'type' => 'text',
838 858 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
839 - // 'tab' => 'email',
840 859 'dependency' => [
841 860 'rules' => [
842 861 [
843 862 'item' => 'general.billing_form.billing_email',
@@ -858,17 +877,22 @@
858 877 'category' => 'checkout',
859 878 'title' => esc_html__( 'Shipping Form Settings', 'shopbuilder' ),
860 879 'package' => 'free',
861 880 'active_field' => [
862 - 'label' => esc_html__( 'Enable Shipping form settings?', 'shopbuilder' ),
863 - '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' ),
864 883 ],
865 884 'fields' => [
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 + ],
866 891 'shipping_first_name_heading' => [
867 892 'id' => 'shipping_first_name_heading',
868 893 'type' => 'title',
869 894 'label' => esc_html__( 'First Name', 'shopbuilder' ),
870 - // 'tab' => 'name',
871 895 ],
872 896 'shipping_first_name' => [
873 897 'id' => 'shipping_first_name',
874 898 'label' => esc_html__( 'First name', 'shopbuilder' ),
@@ -884,9 +908,8 @@
884 908 'value' => 'required',
885 909 'label' => 'Required Field',
886 910 ],
887 911 ],
888 - // 'tab' => 'name',
889 912 ],
890 913 'shipping_first_name_label' => [
891 914 'id' => 'shipping_first_name_label',
892 915 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
@@ -891,9 +914,8 @@
891 914 'id' => 'shipping_first_name_label',
892 915 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
893 916 'type' => 'text',
894 917 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
895 - // 'tab' => 'name',
896 918 'dependency' => [
897 919 'rules' => [
898 920 [
899 921 'item' => 'general.shipping_form.shipping_first_name',
@@ -907,9 +929,8 @@
907 929 'id' => 'shipping_first_name_placeholder',
908 930 'label' => esc_html__( 'First name Placeholder', 'shopbuilder' ),
909 931 'type' => 'text',
910 932 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
911 - // 'tab' => 'country',
912 933 'dependency' => [
913 934 'rules' => [
914 935 [
915 936 'item' => 'general.shipping_form.shipping_first_name',
@@ -922,9 +943,8 @@
922 943 'shipping_first_last_heading' => [
923 944 'id' => 'shipping_first_last_heading',
924 945 'type' => 'title',
925 946 'label' => esc_html__( 'Last Name', 'shopbuilder' ),
926 - // 'tab' => 'name',
927 947 ],
928 948 'shipping_last_name' => [
929 949 'id' => 'shipping_last_name',
930 950 'label' => esc_html__( 'Last name', 'shopbuilder' ),
@@ -940,9 +960,8 @@
940 960 'value' => 'required',
941 961 'label' => 'Required Field',
942 962 ],
943 963 ],
944 - // 'tab' => 'name',
945 964 ],
946 965
947 966 'shipping_last_name_label' => [
948 967 'id' => 'shipping_last_name_label',
@@ -948,9 +967,8 @@
948 967 'id' => 'shipping_last_name_label',
949 968 'label' => esc_html__( 'Last name label', 'shopbuilder' ),
950 969 'type' => 'text',
951 970 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
952 - // 'tab' => 'name',
953 971 'dependency' => [
954 972 'rules' => [
955 973 [
956 974 'item' => 'general.shipping_form.shipping_last_name',
@@ -964,9 +982,8 @@
964 982 'id' => 'shipping_last_name_placeholder',
965 983 'label' => esc_html__( 'Last name Placeholder', 'shopbuilder' ),
966 984 'type' => 'text',
967 985 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
968 - // 'tab' => 'country',
969 986 'dependency' => [
970 987 'rules' => [
971 988 [
972 989 'item' => 'general.shipping_form.shipping_last_name',
@@ -979,9 +996,8 @@
979 996 'shipping_company_heading' => [
980 997 'id' => 'shipping_company_heading',
981 998 'type' => 'title',
982 999 'label' => esc_html__( 'Company', 'shopbuilder' ),
983 - // 'tab' => 'name',
984 1000 ],
985 1001 'shipping_company' => [
986 1002 'id' => 'shipping_company',
987 1003 'label' => esc_html__( 'Company name', 'shopbuilder' ),
@@ -997,9 +1013,8 @@
997 1013 'value' => 'required',
998 1014 'label' => 'Required Field',
999 1015 ],
1000 1016 ],
1001 - // 'tab' => 'company',
1002 1017 ],
1003 1018
1004 1019 'shipping_company_label' => [
1005 1020 'id' => 'shipping_company_label',
@@ -1005,9 +1020,8 @@
1005 1020 'id' => 'shipping_company_label',
1006 1021 'label' => esc_html__( 'Company label', 'shopbuilder' ),
1007 1022 'type' => 'text',
1008 1023 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1009 - // 'tab' => 'company',
1010 1024 'dependency' => [
1011 1025 'rules' => [
1012 1026 [
1013 1027 'item' => 'general.shipping_form.shipping_company',
@@ -1021,9 +1035,8 @@
1021 1035 'id' => 'shipping_company_placeholder',
1022 1036 'label' => esc_html__( 'Shipping company Placeholder', 'shopbuilder' ),
1023 1037 'type' => 'text',
1024 1038 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1025 - // 'tab' => 'country',
1026 1039 'dependency' => [
1027 1040 'rules' => [
1028 1041 [
1029 1042 'item' => 'general.shipping_form.shipping_company',
@@ -1036,9 +1049,8 @@
1036 1049 'shipping_country_heading' => [
1037 1050 'id' => 'shipping_country_heading',
1038 1051 'type' => 'title',
1039 1052 'label' => esc_html__( 'Country', 'shopbuilder' ),
1040 - // 'tab' => 'name',
1041 1053 ],
1042 1054 'shipping_country' => [
1043 1055 'id' => 'shipping_country',
1044 1056 'label' => esc_html__( 'Country', 'shopbuilder' ),
@@ -1048,17 +1060,14 @@
1048 1060 'options' => [
1049 1061 [
1050 1062 'value' => 'show',
1051 1063 'label' => 'Show Country?',
1052 - // 'disabled' => true,
1053 1064 ],
1054 1065 [
1055 1066 'value' => 'required',
1056 1067 'label' => 'Required Field',
1057 - // 'disabled' => true,
1058 1068 ],
1059 1069 ],
1060 - // 'tab' => 'country',
1061 1070 ],
1062 1071
1063 1072 'shipping_country_label' => [
1064 1073 'id' => 'shipping_country_label',
@@ -1078,9 +1087,8 @@
1078 1087 'shipping_address_1_heading' => [
1079 1088 'id' => 'shipping_address_1_heading',
1080 1089 'type' => 'title',
1081 1090 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
1082 - // 'tab' => 'name',
1083 1091 ],
1084 1092 'shipping_address_1' => [
1085 1093 'id' => 'shipping_address_1',
1086 1094 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
@@ -1096,9 +1104,8 @@
1096 1104 'value' => 'required',
1097 1105 'label' => 'Required Field',
1098 1106 ],
1099 1107 ],
1100 - // 'tab' => 'country',
1101 1108 ],
1102 1109
1103 1110 'shipping_address_1_label' => [
1104 1111 'id' => 'shipping_address_1_label',
@@ -1104,9 +1111,8 @@
1104 1111 'id' => 'shipping_address_1_label',
1105 1112 'label' => esc_html__( 'Address 1 label', 'shopbuilder' ),
1106 1113 'type' => 'text',
1107 1114 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1108 - // 'tab' => 'country',
1109 1115 'dependency' => [
1110 1116 'rules' => [
1111 1117 [
1112 1118 'item' => 'general.shipping_form.shipping_address_1',
@@ -1120,9 +1126,8 @@
1120 1126 'id' => 'shipping_address_1_placeholder',
1121 1127 'label' => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ),
1122 1128 'type' => 'text',
1123 1129 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1124 - // 'tab' => 'country',
1125 1130 'dependency' => [
1126 1131 'rules' => [
1127 1132 [
1128 1133 'item' => 'general.shipping_form.shipping_address_1',
@@ -1135,9 +1140,8 @@
1135 1140 'shipping_address_2_heading' => [
1136 1141 'id' => 'shipping_address_2_heading',
1137 1142 'type' => 'title',
1138 1143 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
1139 - // 'tab' => 'name',
1140 1144 'dependency' => [
1141 1145 'rules' => [
1142 1146 [
1143 1147 'item' => 'general.shipping_form.shipping_address_1',
@@ -1159,9 +1163,8 @@
1159 1163 'label' => 'Show Address field?',
1160 1164 ],
1161 1165 ],
1162 1166 'help' => esc_html__( 'if "Address 1" is hidden then this field also hides.', 'shopbuilder' ),
1163 - // 'tab' => 'country',
1164 1167 'dependency' => [
1165 1168 'rules' => [
1166 1169 [
1167 1170 'item' => 'general.shipping_form.shipping_address_1',
@@ -1176,9 +1179,8 @@
1176 1179 'id' => 'shipping_address_2_label',
1177 1180 'label' => esc_html__( 'Address 2 label', 'shopbuilder' ),
1178 1181 'type' => 'text',
1179 1182 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1180 - // 'tab' => 'country',
1181 1183 'dependency' => [
1182 1184 'rules' => [
1183 1185 [
1184 1186 'item' => 'general.shipping_form.shipping_address_1',
@@ -1197,9 +1199,8 @@
1197 1199 'id' => 'shipping_address_2_placeholder',
1198 1200 'label' => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ),
1199 1201 'type' => 'text',
1200 1202 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1201 - // 'tab' => 'country',
1202 1203 'dependency' => [
1203 1204 'rules' => [
1204 1205 [
1205 1206 'item' => 'general.shipping_form.shipping_address_1',
@@ -1217,9 +1218,8 @@
1217 1218 'shipping_city_heading' => [
1218 1219 'id' => 'shipping_city_heading',
1219 1220 'type' => 'title',
1220 1221 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
1221 - // 'tab' => 'name',
1222 1222 ],
1223 1223 'shipping_city' => [
1224 1224 'id' => 'shipping_city',
1225 1225 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
@@ -1235,9 +1235,8 @@
1235 1235 'value' => 'required',
1236 1236 'label' => 'Required Field',
1237 1237 ],
1238 1238 ],
1239 - // 'tab' => 'country',
1240 1239 ],
1241 1240 'shipping_city_label' => [
1242 1241 'id' => 'shipping_city_label',
1243 1242 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
@@ -1242,9 +1241,8 @@
1242 1241 'id' => 'shipping_city_label',
1243 1242 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
1244 1243 'type' => 'text',
1245 1244 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1246 - // 'tab' => 'country',
1247 1245 'dependency' => [
1248 1246 'rules' => [
1249 1247 [
1250 1248 'item' => 'general.shipping_form.shipping_city',
@@ -1258,9 +1256,8 @@
1258 1256 'id' => 'shipping_city_placeholder',
1259 1257 'label' => esc_html__( 'Shipping city placeholder', 'shopbuilder' ),
1260 1258 'type' => 'text',
1261 1259 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1262 - // 'tab' => 'country',
1263 1260 'dependency' => [
1264 1261 'rules' => [
1265 1262 [
1266 1263 'item' => 'general.shipping_form.shipping_city',
@@ -1273,9 +1270,8 @@
1273 1270 'shipping_state_heading' => [
1274 1271 'id' => 'shipping_state_heading',
1275 1272 'type' => 'title',
1276 1273 'label' => esc_html__( 'Others', 'shopbuilder' ),
1277 - // 'tab' => 'name',
1278 1274 ],
1279 1275 'shipping_state' => [
1280 1276 'id' => 'shipping_state',
1281 1277 'label' => esc_html__( 'State', 'shopbuilder' ),
@@ -1291,33 +1287,9 @@
1291 1287 'value' => 'required',
1292 1288 'label' => 'Required Field',
1293 1289 ],
1294 1290 ],
1295 - // 'tab' => 'country',
1296 1291 ],
1297 - //
1298 - // 'shipping_state_label' => [
1299 - // 'id' => 'shipping_state_label',
1300 - // 'label' => esc_html__( 'State label', 'shopbuilder' ),
1301 - // 'type' => 'text',
1302 - // 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1303 - // 'tab' => 'country',
1304 - // 'dependency' => [
1305 - // 'rules' => [
1306 - // [
1307 - // 'item' => 'general.shipping_form.shipping_state',
1308 - // 'value' => 'show',
1309 - // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1310 - // ],
1311 - // ],
1312 - // ],
1313 - // ],
1314 - // 'shipping_postcode_heading' => [
1315 - // 'id' => 'shipping_postcode_heading',
1316 - // 'type' => 'title',
1317 - // 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
1318 - // 'tab' => 'name',
1319 - // ],
1320 1292 'shipping_postcode' => [
1321 1293 'id' => 'shipping_postcode',
1322 1294 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
1323 1295 'type' => 'checkbox',
@@ -1328,47 +1300,18 @@
1328 1300 'value' => 'show',
1329 1301 'label' => 'Show Postcode / ZIP?',
1330 1302 ],
1331 1303 ],
1332 - // 'tab' => 'country',
1333 1304 ],
1334 - // 'shipping_postcode_label' => [
1335 - // 'id' => 'shipping_postcode_label',
1336 - // 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
1337 - // 'type' => 'text',
1338 - // 'help' => esc_html__( 'Leave empty to set default. ', 'shopbuilder' ),
1339 - // 'tab' => 'country',
1340 - // 'dependency' => [
1341 - // 'rules' => [
1342 - // [
1343 - // 'item' => 'general.shipping_form.shipping_postcode',
1344 - // 'value' => 'show',
1345 - // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1346 - // ],
1347 - // ],
1348 - // ],
1349 - // ],
1350 - // 'shipping_postcode_placeholder' => [
1351 - // 'id' => 'shipping_postcode_placeholder',
1352 - // 'label' => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ),
1353 - // 'type' => 'text',
1354 - // 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1355 - // 'tab' => 'country',
1356 - // 'dependency' => [
1357 - // 'rules' => [
1358 - // [
1359 - // 'item' => 'general.shipping_form.shipping_postcode',
1360 - // 'value' => 'show',
1361 - // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1362 - // ],
1363 - // ],
1364 - // ],
1365 - // ],
1366 1305
1367 1306 ],
1368 1307 ]
1369 1308 ),
1370 1309 ];
1310 +
1311 + if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
1312 + unset( $list['optimization']['fields']['load_elementor_scripts'] );
1313 + }
1371 1314
1372 1315 return apply_filters( 'rtsb/core/general_settings/raw_list', $list );
1373 1316 }
1374 1317 }