PluginProbe
ShopBuilder – WooCommerce Builder For Elementor / 2.6.4
ShopBuilder – WooCommerce Builder For Elementor v2.6.4
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 +135 -172 2.0.32.6.4 View file →
@@ -62,8 +62,13 @@
62 62 'active_field' => [
63 63 'disable' => true,
64 64 ],
65 65 'fields' => [
66 + 'notification_intro' => [
67 + 'id' => 'notification_intro',
68 + 'type' => 'description',
69 + 'text' => esc_html__( 'Customize notifications for user actions such as adding items to cart, adding to wishlist, or comparing products.', 'shopbuilder' ),
70 + ],
66 71 'notification_position' => [
67 72 'id' => 'notification_position',
68 73 'value' => 'center-center',
69 74 'type' => 'select',
@@ -68,17 +73,15 @@
68 73 'value' => 'center-center',
69 74 'type' => 'select',
70 75 'label' => esc_html__( 'Notification Position', 'shopbuilder' ),
71 76 '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' ),
77 + 'center-center' => esc_html__( 'Center Center', 'shopbuilder' ),
78 + 'top-right' => esc_html__( 'Top Right', 'shopbuilder' ),
79 + 'bottom-right' => esc_html__( 'Bottom Right', 'shopbuilder' ),
80 + 'bottom-left' => esc_html__( 'Bottom Left', 'shopbuilder' ),
81 + 'top-left' => esc_html__( 'Top Left', 'shopbuilder' ),
82 + 'top-center' => esc_html__( 'Top center', 'shopbuilder' ),
83 + 'bottom-center' => esc_html__( 'Bottom center', 'shopbuilder' ),
81 84 ],
82 85 ],
83 86 'notification_color' => [
84 87 'id' => 'notification_color',
@@ -97,9 +100,14 @@
97 100 'label' => esc_html__( 'Background Color', 'shopbuilder' ),
98 101 'type' => 'color',
99 102 'tab' => 'floating_button',
100 103 ],
101 -
104 + 'hide_notification' => [
105 + 'id' => 'hide_notification',
106 + 'type' => 'switch',
107 + 'label' => esc_html__( 'Hide Notifications', 'shopbuilder' ),
108 + 'help' => esc_html__( 'Enable this option if you don\'t want the notifications to show.', 'shopbuilder' ),
109 + ],
102 110 ],
103 111 ],
104 112 ),
105 113 'social_share' => apply_filters(
@@ -112,8 +120,13 @@
112 120 'active_field' => [
113 121 'disable' => true,
114 122 ],
115 123 'fields' => [
124 + 'social_share_intro' => [
125 + 'id' => 'social_share_intro',
126 + 'type' => 'description',
127 + 'text' => esc_html__( 'Configure social sharing platforms for products sharing.', 'shopbuilder' ),
128 + ],
116 129 'share_platforms' => [
117 130 'id' => 'share_platforms',
118 131 'label' => esc_html__( 'Select Social Sharing Platforms', 'shopbuilder' ),
119 132 'type' => 'checkbox',
@@ -164,8 +177,20 @@
164 177 ],
165 178 ],
166 179 ],
167 180 ),
181 + 'guest_user' => apply_filters(
182 + 'rtsb/settings/guest_user/options',
183 + [
184 + 'id' => 'guest_user',
185 + 'category' => 'general',
186 + 'title' => esc_html__( 'Guest User Controls', 'shopbuilder' ),
187 + 'package' => $this->pro_package(),
188 + 'active_field' => [
189 + 'disable' => true,
190 + ],
191 + ],
192 + ),
168 193 'tooltip' => apply_filters(
169 194 'rtsb/settings/tooltip/options',
170 195 [
171 196 'id' => 'tooltip',
@@ -184,17 +209,22 @@
184 209 'category' => 'checkout',
185 210 'title' => esc_html__( 'Billing Form Settings', 'shopbuilder' ),
186 211 'package' => 'free',
187 212 'active_field' => [
188 - 'label' => esc_html__( 'Enable Billing form settings?', 'shopbuilder' ),
189 - 'help' => esc_html__( 'Switch on to Billing form settings.', 'shopbuilder' ),
213 + 'label' => esc_html__( 'Customize Billing Form Fields?', 'shopbuilder' ),
214 + 'help' => esc_html__( 'Switch on to customize billing form fields.', 'shopbuilder' ),
190 215 ],
191 216 'fields' => [
192 - 'billing_first_name_heading' => [
217 + 'checkout_billing_info' => [
218 + 'id' => 'checkout_billing_info',
219 + 'type' => 'title',
220 + 'label' => __( 'The below form fields customization will be disabled when the <strong><u>Checkout Fields Editor</u></strong> module is activated.', 'shopbuilder' ),
221 + 'customClass' => 'checkout-notice',
222 + ],
223 + 'billing_first_name_heading' => [
193 224 'id' => 'billing_first_name_heading',
194 225 'type' => 'title',
195 226 'label' => esc_html__( 'First Name', 'shopbuilder' ),
196 - // 'tab' => 'name',
197 227 ],
198 228 'billing_first_name' => [
199 229 'id' => 'billing_first_name',
200 230 'label' => esc_html__( 'First name', 'shopbuilder' ),
@@ -210,9 +240,8 @@
210 240 'value' => 'required',
211 241 'label' => 'Required Field',
212 242 ],
213 243 ],
214 - // 'tab' => 'name',
215 244 ],
216 245 'billing_first_name_label' => [
217 246 'id' => 'billing_first_name_label',
218 247 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
@@ -217,15 +246,14 @@
217 246 'id' => 'billing_first_name_label',
218 247 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
219 248 'type' => 'text',
220 249 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
221 - // 'tab' => 'name',
222 250 'dependency' => [
223 251 'rules' => [
224 252 [
225 253 'item' => 'general.billing_form.billing_first_name',
226 254 'value' => 'show',
227 - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
255 + 'operator' => '==',
228 256 ],
229 257 ],
230 258 ],
231 259 ],
@@ -233,25 +261,23 @@
233 261 'id' => 'billing_first_name_placeholder',
234 262 'label' => esc_html__( 'First name Placeholder', 'shopbuilder' ),
235 263 'type' => 'text',
236 264 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
237 - // 'tab' => 'name',
238 265 'dependency' => [
239 266 'rules' => [
240 267 [
241 268 'item' => 'general.billing_form.billing_first_name',
242 269 'value' => 'show',
243 - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
270 + 'operator' => '==',
244 271 ],
245 272 ],
246 273 ],
247 274 ],
248 275
249 - 'billing_last_name_heading' => [
276 + 'billing_last_name_heading' => [
250 277 'id' => 'billing_last_name_heading',
251 278 'type' => 'title',
252 279 'label' => esc_html__( 'Last Name', 'shopbuilder' ),
253 - //'tab' => 'name',
254 280 ],
255 281 'billing_last_name' => [
256 282 'id' => 'billing_last_name',
257 283 'label' => esc_html__( 'Last name', 'shopbuilder' ),
@@ -267,9 +293,8 @@
267 293 'value' => 'required',
268 294 'label' => 'Required Field',
269 295 ],
270 296 ],
271 - // 'tab' => 'name',
272 297 ],
273 298
274 299 'billing_last_name_label' => [
275 300 'id' => 'billing_last_name_label',
@@ -275,9 +300,8 @@
275 300 'id' => 'billing_last_name_label',
276 301 'label' => esc_html__( 'Last name label', 'shopbuilder' ),
277 302 'type' => 'text',
278 303 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
279 - // 'tab' => 'name',
280 304 'dependency' => [
281 305 'rules' => [
282 306 [
283 307 'item' => 'general.billing_form.billing_last_name',
@@ -291,9 +315,8 @@
291 315 'id' => 'billing_last_name_placeholder',
292 316 'label' => esc_html__( 'Last name Placeholder', 'shopbuilder' ),
293 317 'type' => 'text',
294 318 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
295 - // 'tab' => 'name',
296 319 'dependency' => [
297 320 'rules' => [
298 321 [
299 322 'item' => 'general.billing_form.billing_last_name',
@@ -303,13 +326,12 @@
303 326 ],
304 327 ],
305 328 ],
306 329
307 - 'billing_company_heading' => [
330 + 'billing_company_heading' => [
308 331 'id' => 'billing_company_heading',
309 332 'type' => 'title',
310 333 'label' => esc_html__( 'Company', 'shopbuilder' ),
311 - //'tab' => 'company',
312 334 ],
313 335 'billing_company' => [
314 336 'id' => 'billing_company',
315 337 'label' => esc_html__( 'Company name', 'shopbuilder' ),
@@ -328,9 +350,8 @@
328 350 'value' => 'required',
329 351 'label' => 'Required Field',
330 352 ],
331 353 ],
332 - // 'tab' => 'company',
333 354 ],
334 355
335 356 'billing_company_label' => [
336 357 'id' => 'billing_company_label',
@@ -336,9 +357,8 @@
336 357 'id' => 'billing_company_label',
337 358 'label' => esc_html__( 'Company label', 'shopbuilder' ),
338 359 'type' => 'text',
339 360 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
340 - // 'tab' => 'company',
341 361 'dependency' => [
342 362 'rules' => [
343 363 [
344 364 'item' => 'general.billing_form.billing_company',
@@ -352,9 +372,8 @@
352 372 'id' => 'billing_company_placeholder',
353 373 'label' => esc_html__( 'Company Placeholder', 'shopbuilder' ),
354 374 'type' => 'text',
355 375 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
356 - // 'tab' => 'company',
357 376 'dependency' => [
358 377 'rules' => [
359 378 [
360 379 'item' => 'general.billing_form.billing_company',
@@ -364,13 +383,12 @@
364 383 ],
365 384 ],
366 385 ],
367 386
368 - 'billing_country_heading' => [
387 + 'billing_country_heading' => [
369 388 'id' => 'billing_country_heading',
370 389 'type' => 'title',
371 390 'label' => esc_html__( 'Country', 'shopbuilder' ),
372 - //'tab' => 'country',
373 391 ],
374 392 'billing_country' => [
375 393 'id' => 'billing_country',
376 394 'label' => esc_html__( 'Country', 'shopbuilder' ),
@@ -389,9 +407,8 @@
389 407 'label' => 'Required Field',
390 408 // 'disabled' => true,
391 409 ],
392 410 ],
393 - // 'tab' => 'country',
394 411 ],
395 412
396 413 'billing_country_label' => [
397 414 'id' => 'billing_country_label',
@@ -397,9 +414,8 @@
397 414 'id' => 'billing_country_label',
398 415 'label' => esc_html__( 'Country label', 'shopbuilder' ),
399 416 'type' => 'text',
400 417 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
401 - // 'tab' => 'country',
402 418 'dependency' => [
403 419 'rules' => [
404 420 [
405 421 'item' => 'general.billing_form.billing_country',
@@ -408,13 +424,12 @@
408 424 ],
409 425 ],
410 426 ],
411 427 ],
412 - 'billing_address_1_heading' => [
428 + 'billing_address_1_heading' => [
413 429 'id' => 'billing_address_1_heading',
414 430 'type' => 'title',
415 431 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
416 - //'tab' => 'address',
417 432 ],
418 433 'billing_address_1' => [
419 434 'id' => 'billing_address_1',
420 435 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
@@ -430,9 +445,8 @@
430 445 'value' => 'required',
431 446 'label' => 'Required Field',
432 447 ],
433 448 ],
434 - // 'tab' => 'address',
435 449 ],
436 450
437 451 'billing_address_1_label' => [
438 452 'id' => 'billing_address_1_label',
@@ -438,9 +452,8 @@
438 452 'id' => 'billing_address_1_label',
439 453 'label' => esc_html__( 'Address 1 label', 'shopbuilder' ),
440 454 'type' => 'text',
441 455 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
442 - // 'tab' => 'address',
443 456 'dependency' => [
444 457 'rules' => [
445 458 [
446 459 'item' => 'general.billing_form.billing_address_1',
@@ -454,9 +467,8 @@
454 467 'id' => 'billing_address_1_placeholder',
455 468 'label' => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ),
456 469 'type' => 'text',
457 470 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
458 - // 'tab' => 'address',
459 471 'dependency' => [
460 472 'rules' => [
461 473 [
462 474 'item' => 'general.billing_form.billing_address_1',
@@ -465,14 +477,13 @@
465 477 ],
466 478 ],
467 479 ],
468 480 ],
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' => [
481 + 'billing_address_2_heading' => [
482 + 'id' => 'billing_address_2_heading',
483 + 'type' => 'title',
484 + 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
485 + 'dependency' => [
475 486 'rules' => [
476 487 [
477 488 'item' => 'general.billing_form.billing_address_1',
478 489 'value' => 'show',
@@ -485,11 +496,11 @@
485 496 'id' => 'billing_address_2',
486 497 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
487 498 'type' => 'checkbox',
488 499 'orientation' => 'vertical',
489 - // 'tab' => 'address',
490 - 'value' => [ 'show',
491 - 'required' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ? 'required' : 'optional',
500 + 'value' => [
501 + 'show',
502 + 'required' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ? 'required' : 'optional',
492 503 ],
493 504 'options' => [
494 505 [
495 506 'value' => 'show',
@@ -512,9 +523,8 @@
512 523 'id' => 'billing_address_2_label',
513 524 'label' => esc_html__( 'Address 2 label', 'shopbuilder' ),
514 525 'type' => 'text',
515 526 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
516 - // 'tab' => 'address',
517 527 'dependency' => [
518 528 'rules' => [
519 529 [
520 530 'item' => 'general.billing_form.billing_address_1',
@@ -533,9 +543,8 @@
533 543 'id' => 'billing_address_2_placeholder',
534 544 'label' => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ),
535 545 'type' => 'text',
536 546 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
537 - // 'tab' => 'address',
538 547 'dependency' => [
539 548 'rules' => [
540 549 [
541 550 'item' => 'general.billing_form.billing_address_1',
@@ -549,13 +558,12 @@
549 558 ],
550 559 ],
551 560 ],
552 561 ],
553 - 'billing_city_heading' => [
562 + 'billing_city_heading' => [
554 563 'id' => 'billing_city_heading',
555 564 'type' => 'title',
556 565 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
557 - // 'tab' => 'city',
558 566 ],
559 567 'billing_city' => [
560 568 'id' => 'billing_city',
561 569 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
@@ -561,9 +569,8 @@
561 569 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
562 570 'type' => 'checkbox',
563 571 'orientation' => 'vertical',
564 572 'value' => [ 'show', 'required' ],
565 - // 'tab' => 'city',
566 573 'options' => [
567 574 [
568 575 'value' => 'show',
569 576 'label' => 'Show Town / City?',
@@ -579,9 +586,8 @@
579 586 'id' => 'billing_city_label',
580 587 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
581 588 'type' => 'text',
582 589 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
583 - // 'tab' => 'city',
584 590 'dependency' => [
585 591 'rules' => [
586 592 [
587 593 'item' => 'general.billing_form.billing_city',
@@ -595,9 +601,8 @@
595 601 'id' => 'billing_city_placeholder',
596 602 'label' => esc_html__( 'City placeholder', 'shopbuilder' ),
597 603 'type' => 'text',
598 604 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
599 - // 'tab' => 'city',
600 605 'dependency' => [
601 606 'rules' => [
602 607 [
603 608 'item' => 'general.billing_form.billing_city',
@@ -606,13 +611,12 @@
606 611 ],
607 612 ],
608 613 ],
609 614 ],
610 - 'billing_state_heading' => [
615 + 'billing_state_heading' => [
611 616 'id' => 'billing_city_heading',
612 617 'type' => 'title',
613 618 'label' => esc_html__( 'State', 'shopbuilder' ),
614 - // 'tab' => 'state',
615 619 ],
616 620 'billing_state' => [
617 621 'id' => 'billing_state',
618 622 'label' => esc_html__( 'State', 'shopbuilder' ),
@@ -628,9 +632,8 @@
628 632 'value' => 'required',
629 633 'label' => 'Required Field',
630 634 ],
631 635 ],
632 - // 'tab' => 'state',
633 636 ],
634 637
635 638 'billing_state_label' => [
636 639 'id' => 'billing_state_label',
@@ -636,10 +639,9 @@
636 639 'id' => 'billing_state_label',
637 640 'label' => esc_html__( 'State label', 'shopbuilder' ),
638 641 'type' => 'text',
639 642 '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',
643 + // 'help' => esc_html__( 'Leave empty to set default. If the Shipping Form is enabled, the State field is mandatory.', 'shopbuilder' ),
642 644 'dependency' => [
643 645 'rules' => [
644 646 [
645 647 'item' => 'general.billing_form.billing_state',
@@ -648,13 +650,12 @@
648 650 ],
649 651 ],
650 652 ],
651 653 ],
652 - 'billing_postcode_heading' => [
654 + 'billing_postcode_heading' => [
653 655 'id' => 'billing_postcode_heading',
654 656 'type' => 'title',
655 657 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
656 - // 'tab' => 'postcode',
657 658 ],
658 659 'billing_postcode' => [
659 660 'id' => 'billing_postcode',
660 661 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
@@ -670,9 +671,8 @@
670 671 'value' => 'required',
671 672 'label' => 'Required Field',
672 673 ],
673 674 ],
674 - // 'tab' => 'postcode',
675 675 ],
676 676 'billing_postcode_label' => [
677 677 'id' => 'billing_postcode_label',
678 678 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
@@ -677,9 +677,8 @@
677 677 'id' => 'billing_postcode_label',
678 678 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
679 679 'type' => 'text',
680 680 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
681 - // 'tab' => 'postcode',
682 681 'dependency' => [
683 682 'rules' => [
684 683 [
685 684 'item' => 'general.billing_form.billing_postcode',
@@ -693,9 +692,8 @@
693 692 'id' => 'billing_postcode_placeholder',
694 693 'label' => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ),
695 694 'type' => 'text',
696 695 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
697 - // 'tab' => 'postcode',
698 696 'dependency' => [
699 697 'rules' => [
700 698 [
701 699 'item' => 'general.billing_form.billing_postcode',
@@ -704,13 +702,12 @@
704 702 ],
705 703 ],
706 704 ],
707 705 ],
708 - 'billing_phone_heading' => [
706 + 'billing_phone_heading' => [
709 707 'id' => 'billing_phone_heading',
710 708 'type' => 'title',
711 709 'label' => esc_html__( 'Phone', 'shopbuilder' ),
712 - // 'tab' => 'phone',
713 710 ],
714 711 'billing_phone' => [
715 712 'id' => 'billing_phone',
716 713 'label' => esc_html__( 'Phone', 'shopbuilder' ),
@@ -715,9 +712,8 @@
715 712 'id' => 'billing_phone',
716 713 'label' => esc_html__( 'Phone', 'shopbuilder' ),
717 714 'type' => 'checkbox',
718 715 'orientation' => 'vertical',
719 - // 'tab' => 'phone',
720 716 'value' => [
721 717 'show',
722 718 'required' === get_option( 'woocommerce_checkout_phone_field', 'required' ) ? 'required' : 'optional',
723 719 ],
@@ -737,9 +733,8 @@
737 733 'id' => 'billing_phone_label',
738 734 'label' => esc_html__( 'Phone field label', 'shopbuilder' ),
739 735 'type' => 'text',
740 736 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
741 - // 'tab' => 'phone',
742 737 'dependency' => [
743 738 'rules' => [
744 739 [
745 740 'item' => 'general.billing_form.billing_phone',
@@ -753,9 +748,8 @@
753 748 'id' => 'billing_phone_placeholder',
754 749 'label' => esc_html__( 'Phone field placeholder', 'shopbuilder' ),
755 750 'type' => 'text',
756 751 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
757 - // 'tab' => 'phone',
758 752 'dependency' => [
759 753 'rules' => [
760 754 [
761 755 'item' => 'general.billing_form.billing_phone',
@@ -764,13 +758,12 @@
764 758 ],
765 759 ],
766 760 ],
767 761 ],
768 - 'billing_email_heading' => [
762 + 'billing_email_heading' => [
769 763 'id' => 'billing_email_heading',
770 764 'type' => 'title',
771 765 'label' => esc_html__( 'Email', 'shopbuilder' ),
772 - // 'tab' => 'email',
773 766 ],
774 767 'billing_email' => [
775 768 'id' => 'billing_email',
776 769 'label' => esc_html__( 'Email address', 'shopbuilder' ),
@@ -775,9 +768,8 @@
775 768 'id' => 'billing_email',
776 769 'label' => esc_html__( 'Email address', 'shopbuilder' ),
777 770 'type' => 'checkbox',
778 771 'orientation' => 'vertical',
779 - // 'tab' => 'email',
780 772 'value' => [ 'show', 'required' ],
781 773 'options' => [
782 774 [
783 775 'value' => 'show',
@@ -793,9 +785,8 @@
793 785 'id' => 'billing_email_label',
794 786 'label' => esc_html__( 'Email address field label', 'shopbuilder' ),
795 787 'type' => 'text',
796 788 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
797 - // 'tab' => 'email',
798 789 'dependency' => [
799 790 'rules' => [
800 791 [
801 792 'item' => 'general.billing_form.billing_email',
@@ -809,9 +800,8 @@
809 800 'id' => 'billing_email_placeholder',
810 801 'label' => esc_html__( 'Email address field placeholder', 'shopbuilder' ),
811 802 'type' => 'text',
812 803 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
813 - // 'tab' => 'email',
814 804 'dependency' => [
815 805 'rules' => [
816 806 [
817 807 'item' => 'general.billing_form.billing_email',
@@ -832,17 +822,22 @@
832 822 'category' => 'checkout',
833 823 'title' => esc_html__( 'Shipping Form Settings', 'shopbuilder' ),
834 824 'package' => 'free',
835 825 'active_field' => [
836 - 'label' => esc_html__( 'Enable Shipping form settings?', 'shopbuilder' ),
837 - 'help' => esc_html__( 'Switch on to Shipping form settings.', 'shopbuilder' ),
826 + 'label' => esc_html__( 'Customize Shipping form Fields?', 'shopbuilder' ),
827 + 'help' => esc_html__( 'Switch on to customize shipping form fields.', 'shopbuilder' ),
838 828 ],
839 829 'fields' => [
840 - 'shipping_first_name_heading' => [
830 + 'checkout_shipping_info' => [
831 + 'id' => 'checkout_shipping_info',
832 + 'type' => 'title',
833 + 'label' => __( 'The below form fields customization will be disabled when the <strong><u>Checkout Fields Editor</u></strong> module is activated.', 'shopbuilder' ),
834 + 'customClass' => 'checkout-notice',
835 + ],
836 + 'shipping_first_name_heading' => [
841 837 'id' => 'shipping_first_name_heading',
842 838 'type' => 'title',
843 839 'label' => esc_html__( 'First Name', 'shopbuilder' ),
844 - // 'tab' => 'name',
845 840 ],
846 841 'shipping_first_name' => [
847 842 'id' => 'shipping_first_name',
848 843 'label' => esc_html__( 'First name', 'shopbuilder' ),
@@ -858,9 +853,8 @@
858 853 'value' => 'required',
859 854 'label' => 'Required Field',
860 855 ],
861 856 ],
862 - // 'tab' => 'name',
863 857 ],
864 858 'shipping_first_name_label' => [
865 859 'id' => 'shipping_first_name_label',
866 860 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
@@ -865,9 +859,8 @@
865 859 'id' => 'shipping_first_name_label',
866 860 'label' => esc_html__( 'First name Label', 'shopbuilder' ),
867 861 'type' => 'text',
868 862 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
869 - // 'tab' => 'name',
870 863 'dependency' => [
871 864 'rules' => [
872 865 [
873 866 'item' => 'general.shipping_form.shipping_first_name',
@@ -881,9 +874,8 @@
881 874 'id' => 'shipping_first_name_placeholder',
882 875 'label' => esc_html__( 'First name Placeholder', 'shopbuilder' ),
883 876 'type' => 'text',
884 877 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
885 - // 'tab' => 'country',
886 878 'dependency' => [
887 879 'rules' => [
888 880 [
889 881 'item' => 'general.shipping_form.shipping_first_name',
@@ -892,13 +884,12 @@
892 884 ],
893 885 ],
894 886 ],
895 887 ],
896 - 'shipping_first_last_heading' => [
888 + 'shipping_first_last_heading' => [
897 889 'id' => 'shipping_first_last_heading',
898 890 'type' => 'title',
899 891 'label' => esc_html__( 'Last Name', 'shopbuilder' ),
900 - // 'tab' => 'name',
901 892 ],
902 893 'shipping_last_name' => [
903 894 'id' => 'shipping_last_name',
904 895 'label' => esc_html__( 'Last name', 'shopbuilder' ),
@@ -914,9 +905,8 @@
914 905 'value' => 'required',
915 906 'label' => 'Required Field',
916 907 ],
917 908 ],
918 - // 'tab' => 'name',
919 909 ],
920 910
921 911 'shipping_last_name_label' => [
922 912 'id' => 'shipping_last_name_label',
@@ -922,9 +912,8 @@
922 912 'id' => 'shipping_last_name_label',
923 913 'label' => esc_html__( 'Last name label', 'shopbuilder' ),
924 914 'type' => 'text',
925 915 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
926 - // 'tab' => 'name',
927 916 'dependency' => [
928 917 'rules' => [
929 918 [
930 919 'item' => 'general.shipping_form.shipping_last_name',
@@ -938,9 +927,8 @@
938 927 'id' => 'shipping_last_name_placeholder',
939 928 'label' => esc_html__( 'Last name Placeholder', 'shopbuilder' ),
940 929 'type' => 'text',
941 930 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
942 - // 'tab' => 'country',
943 931 'dependency' => [
944 932 'rules' => [
945 933 [
946 934 'item' => 'general.shipping_form.shipping_last_name',
@@ -949,13 +937,12 @@
949 937 ],
950 938 ],
951 939 ],
952 940 ],
953 - 'shipping_company_heading' => [
941 + 'shipping_company_heading' => [
954 942 'id' => 'shipping_company_heading',
955 943 'type' => 'title',
956 944 'label' => esc_html__( 'Company', 'shopbuilder' ),
957 - // 'tab' => 'name',
958 945 ],
959 946 'shipping_company' => [
960 947 'id' => 'shipping_company',
961 948 'label' => esc_html__( 'Company name', 'shopbuilder' ),
@@ -971,9 +958,8 @@
971 958 'value' => 'required',
972 959 'label' => 'Required Field',
973 960 ],
974 961 ],
975 - // 'tab' => 'company',
976 962 ],
977 963
978 964 'shipping_company_label' => [
979 965 'id' => 'shipping_company_label',
@@ -979,9 +965,8 @@
979 965 'id' => 'shipping_company_label',
980 966 'label' => esc_html__( 'Company label', 'shopbuilder' ),
981 967 'type' => 'text',
982 968 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
983 - // 'tab' => 'company',
984 969 'dependency' => [
985 970 'rules' => [
986 971 [
987 972 'item' => 'general.shipping_form.shipping_company',
@@ -995,9 +980,8 @@
995 980 'id' => 'shipping_company_placeholder',
996 981 'label' => esc_html__( 'Shipping company Placeholder', 'shopbuilder' ),
997 982 'type' => 'text',
998 983 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
999 - // 'tab' => 'country',
1000 984 'dependency' => [
1001 985 'rules' => [
1002 986 [
1003 987 'item' => 'general.shipping_form.shipping_company',
@@ -1006,13 +990,12 @@
1006 990 ],
1007 991 ],
1008 992 ],
1009 993 ],
1010 - 'shipping_country_heading' => [
994 + 'shipping_country_heading' => [
1011 995 'id' => 'shipping_country_heading',
1012 996 'type' => 'title',
1013 997 'label' => esc_html__( 'Country', 'shopbuilder' ),
1014 - // 'tab' => 'name',
1015 998 ],
1016 999 'shipping_country' => [
1017 1000 'id' => 'shipping_country',
1018 1001 'label' => esc_html__( 'Country', 'shopbuilder' ),
@@ -1030,9 +1013,8 @@
1030 1013 'label' => 'Required Field',
1031 1014 // 'disabled' => true,
1032 1015 ],
1033 1016 ],
1034 - // 'tab' => 'country',
1035 1017 ],
1036 1018
1037 1019 'shipping_country_label' => [
1038 1020 'id' => 'shipping_country_label',
@@ -1048,13 +1030,12 @@
1048 1030 ],
1049 1031 ],
1050 1032 ],
1051 1033 ],
1052 - 'shipping_address_1_heading' => [
1034 + 'shipping_address_1_heading' => [
1053 1035 'id' => 'shipping_address_1_heading',
1054 1036 'type' => 'title',
1055 1037 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
1056 - // 'tab' => 'name',
1057 1038 ],
1058 1039 'shipping_address_1' => [
1059 1040 'id' => 'shipping_address_1',
1060 1041 'label' => esc_html__( 'Address 1', 'shopbuilder' ),
@@ -1070,9 +1051,8 @@
1070 1051 'value' => 'required',
1071 1052 'label' => 'Required Field',
1072 1053 ],
1073 1054 ],
1074 - // 'tab' => 'country',
1075 1055 ],
1076 1056
1077 1057 'shipping_address_1_label' => [
1078 1058 'id' => 'shipping_address_1_label',
@@ -1078,9 +1058,8 @@
1078 1058 'id' => 'shipping_address_1_label',
1079 1059 'label' => esc_html__( 'Address 1 label', 'shopbuilder' ),
1080 1060 'type' => 'text',
1081 1061 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1082 - // 'tab' => 'country',
1083 1062 'dependency' => [
1084 1063 'rules' => [
1085 1064 [
1086 1065 'item' => 'general.shipping_form.shipping_address_1',
@@ -1094,9 +1073,8 @@
1094 1073 'id' => 'shipping_address_1_placeholder',
1095 1074 'label' => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ),
1096 1075 'type' => 'text',
1097 1076 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1098 - // 'tab' => 'country',
1099 1077 'dependency' => [
1100 1078 'rules' => [
1101 1079 [
1102 1080 'item' => 'general.shipping_form.shipping_address_1',
@@ -1105,14 +1083,13 @@
1105 1083 ],
1106 1084 ],
1107 1085 ],
1108 1086 ],
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' => [
1087 + 'shipping_address_2_heading' => [
1088 + 'id' => 'shipping_address_2_heading',
1089 + 'type' => 'title',
1090 + 'label' => esc_html__( 'Address 2', 'shopbuilder' ),
1091 + 'dependency' => [
1115 1092 'rules' => [
1116 1093 [
1117 1094 'item' => 'general.shipping_form.shipping_address_1',
1118 1095 'value' => 'show',
@@ -1133,9 +1110,8 @@
1133 1110 'label' => 'Show Address field?',
1134 1111 ],
1135 1112 ],
1136 1113 'help' => esc_html__( 'if "Address 1" is hidden then this field also hides.', 'shopbuilder' ),
1137 - // 'tab' => 'country',
1138 1114 'dependency' => [
1139 1115 'rules' => [
1140 1116 [
1141 1117 'item' => 'general.shipping_form.shipping_address_1',
@@ -1150,9 +1126,8 @@
1150 1126 'id' => 'shipping_address_2_label',
1151 1127 'label' => esc_html__( 'Address 2 label', 'shopbuilder' ),
1152 1128 'type' => 'text',
1153 1129 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1154 - // 'tab' => 'country',
1155 1130 'dependency' => [
1156 1131 'rules' => [
1157 1132 [
1158 1133 'item' => 'general.shipping_form.shipping_address_1',
@@ -1171,9 +1146,8 @@
1171 1146 'id' => 'shipping_address_2_placeholder',
1172 1147 'label' => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ),
1173 1148 'type' => 'text',
1174 1149 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1175 - // 'tab' => 'country',
1176 1150 'dependency' => [
1177 1151 'rules' => [
1178 1152 [
1179 1153 'item' => 'general.shipping_form.shipping_address_1',
@@ -1187,13 +1161,12 @@
1187 1161 ],
1188 1162 ],
1189 1163 ],
1190 1164 ],
1191 - 'shipping_city_heading' => [
1165 + 'shipping_city_heading' => [
1192 1166 'id' => 'shipping_city_heading',
1193 1167 'type' => 'title',
1194 1168 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
1195 - // 'tab' => 'name',
1196 1169 ],
1197 1170 'shipping_city' => [
1198 1171 'id' => 'shipping_city',
1199 1172 'label' => esc_html__( 'Town / City', 'shopbuilder' ),
@@ -1209,9 +1182,8 @@
1209 1182 'value' => 'required',
1210 1183 'label' => 'Required Field',
1211 1184 ],
1212 1185 ],
1213 - // 'tab' => 'country',
1214 1186 ],
1215 1187 'shipping_city_label' => [
1216 1188 'id' => 'shipping_city_label',
1217 1189 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
@@ -1216,9 +1188,8 @@
1216 1188 'id' => 'shipping_city_label',
1217 1189 'label' => esc_html__( 'Town / City label', 'shopbuilder' ),
1218 1190 'type' => 'text',
1219 1191 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1220 - // 'tab' => 'country',
1221 1192 'dependency' => [
1222 1193 'rules' => [
1223 1194 [
1224 1195 'item' => 'general.shipping_form.shipping_city',
@@ -1232,9 +1203,8 @@
1232 1203 'id' => 'shipping_city_placeholder',
1233 1204 'label' => esc_html__( 'Shipping city placeholder', 'shopbuilder' ),
1234 1205 'type' => 'text',
1235 1206 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1236 - // 'tab' => 'country',
1237 1207 'dependency' => [
1238 1208 'rules' => [
1239 1209 [
1240 1210 'item' => 'general.shipping_form.shipping_city',
@@ -1243,13 +1213,12 @@
1243 1213 ],
1244 1214 ],
1245 1215 ],
1246 1216 ],
1247 - 'shipping_state_heading' => [
1217 + 'shipping_state_heading' => [
1248 1218 'id' => 'shipping_state_heading',
1249 1219 'type' => 'title',
1250 1220 'label' => esc_html__( 'Others', 'shopbuilder' ),
1251 - // 'tab' => 'name',
1252 1221 ],
1253 1222 'shipping_state' => [
1254 1223 'id' => 'shipping_state',
1255 1224 'label' => esc_html__( 'State', 'shopbuilder' ),
@@ -1265,33 +1234,30 @@
1265 1234 'value' => 'required',
1266 1235 'label' => 'Required Field',
1267 1236 ],
1268 1237 ],
1269 - // 'tab' => 'country',
1270 1238 ],
1271 1239 //
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 - //],
1240 + // 'shipping_state_label' => [
1241 + // 'id' => 'shipping_state_label',
1242 + // 'label' => esc_html__( 'State label', 'shopbuilder' ),
1243 + // 'type' => 'text',
1244 + // 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1245 + // 'dependency' => [
1246 + // 'rules' => [
1247 + // [
1248 + // 'item' => 'general.shipping_form.shipping_state',
1249 + // 'value' => 'show',
1250 + // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1251 + // ],
1252 + // ],
1253 + // ],
1254 + // ],
1255 + // 'shipping_postcode_heading' => [
1256 + // 'id' => 'shipping_postcode_heading',
1257 + // 'type' => 'title',
1258 + // 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
1259 + // ],
1294 1260 'shipping_postcode' => [
1295 1261 'id' => 'shipping_postcode',
1296 1262 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ),
1297 1263 'type' => 'checkbox',
@@ -1300,44 +1266,41 @@
1300 1266 'options' => [
1301 1267 [
1302 1268 'value' => 'show',
1303 1269 'label' => 'Show Postcode / ZIP?',
1304 - ]
1270 + ],
1305 1271 ],
1306 - // 'tab' => 'country',
1307 1272 ],
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 - // ],
1273 + // 'shipping_postcode_label' => [
1274 + // 'id' => 'shipping_postcode_label',
1275 + // 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ),
1276 + // 'type' => 'text',
1277 + // 'help' => esc_html__( 'Leave empty to set default. ', 'shopbuilder' ),
1278 + // 'dependency' => [
1279 + // 'rules' => [
1280 + // [
1281 + // 'item' => 'general.shipping_form.shipping_postcode',
1282 + // 'value' => 'show',
1283 + // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1284 + // ],
1285 + // ],
1286 + // ],
1287 + // ],
1288 + // 'shipping_postcode_placeholder' => [
1289 + // 'id' => 'shipping_postcode_placeholder',
1290 + // 'label' => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ),
1291 + // 'type' => 'text',
1292 + // 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ),
1293 + // 'dependency' => [
1294 + // 'rules' => [
1295 + // [
1296 + // 'item' => 'general.shipping_form.shipping_postcode',
1297 + // 'value' => 'show',
1298 + // 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value //
1299 + // ],
1300 + // ],
1301 + // ],
1302 + // ],
1340 1303
1341 1304 ],
1342 1305 ]
1343 1306 ),