| @@ -213,13 +213,18 @@ | ||
| 213 | 213 | 'label' => esc_html__( 'Customize Billing Form Fields?', 'shopbuilder' ), |
| 214 | 214 | 'help' => esc_html__( 'Switch on to customize billing form fields.', 'shopbuilder' ), |
| 215 | 215 | ], |
| 216 | 216 | 'fields' => [ |
| 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 | + ], | |
| 217 | 223 | 'billing_first_name_heading' => [ |
| 218 | 224 | 'id' => 'billing_first_name_heading', |
| 219 | 225 | 'type' => 'title', |
| 220 | 226 | 'label' => esc_html__( 'First Name', 'shopbuilder' ), |
| 221 | - // 'tab' => 'name', | |
| 222 | 227 | ], |
| 223 | 228 | 'billing_first_name' => [ |
| 224 | 229 | 'id' => 'billing_first_name', |
| 225 | 230 | 'label' => esc_html__( 'First name', 'shopbuilder' ), |
| @@ -235,9 +240,8 @@ | ||
| 235 | 240 | 'value' => 'required', |
| 236 | 241 | 'label' => 'Required Field', |
| 237 | 242 | ], |
| 238 | 243 | ], |
| 239 | - // 'tab' => 'name', | |
| 240 | 244 | ], |
| 241 | 245 | 'billing_first_name_label' => [ |
| 242 | 246 | 'id' => 'billing_first_name_label', |
| 243 | 247 | 'label' => esc_html__( 'First name Label', 'shopbuilder' ), |
| @@ -242,15 +246,14 @@ | ||
| 242 | 246 | 'id' => 'billing_first_name_label', |
| 243 | 247 | 'label' => esc_html__( 'First name Label', 'shopbuilder' ), |
| 244 | 248 | 'type' => 'text', |
| 245 | 249 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 246 | - // 'tab' => 'name', | |
| 247 | 250 | 'dependency' => [ |
| 248 | 251 | 'rules' => [ |
| 249 | 252 | [ |
| 250 | 253 | 'item' => 'general.billing_form.billing_first_name', |
| 251 | 254 | 'value' => 'show', |
| 252 | - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value // | |
| 255 | + 'operator' => '==', | |
| 253 | 256 | ], |
| 254 | 257 | ], |
| 255 | 258 | ], |
| 256 | 259 | ], |
| @@ -258,15 +261,14 @@ | ||
| 258 | 261 | 'id' => 'billing_first_name_placeholder', |
| 259 | 262 | 'label' => esc_html__( 'First name Placeholder', 'shopbuilder' ), |
| 260 | 263 | 'type' => 'text', |
| 261 | 264 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 262 | - // 'tab' => 'name', | |
| 263 | 265 | 'dependency' => [ |
| 264 | 266 | 'rules' => [ |
| 265 | 267 | [ |
| 266 | 268 | 'item' => 'general.billing_form.billing_first_name', |
| 267 | 269 | 'value' => 'show', |
| 268 | - 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value // | |
| 270 | + 'operator' => '==', | |
| 269 | 271 | ], |
| 270 | 272 | ], |
| 271 | 273 | ], |
| 272 | 274 | ], |
| @@ -274,9 +276,8 @@ | ||
| 274 | 276 | 'billing_last_name_heading' => [ |
| 275 | 277 | 'id' => 'billing_last_name_heading', |
| 276 | 278 | 'type' => 'title', |
| 277 | 279 | 'label' => esc_html__( 'Last Name', 'shopbuilder' ), |
| 278 | - // 'tab' => 'name', | |
| 279 | 280 | ], |
| 280 | 281 | 'billing_last_name' => [ |
| 281 | 282 | 'id' => 'billing_last_name', |
| 282 | 283 | 'label' => esc_html__( 'Last name', 'shopbuilder' ), |
| @@ -292,9 +293,8 @@ | ||
| 292 | 293 | 'value' => 'required', |
| 293 | 294 | 'label' => 'Required Field', |
| 294 | 295 | ], |
| 295 | 296 | ], |
| 296 | - // 'tab' => 'name', | |
| 297 | 297 | ], |
| 298 | 298 | |
| 299 | 299 | 'billing_last_name_label' => [ |
| 300 | 300 | 'id' => 'billing_last_name_label', |
| @@ -300,9 +300,8 @@ | ||
| 300 | 300 | 'id' => 'billing_last_name_label', |
| 301 | 301 | 'label' => esc_html__( 'Last name label', 'shopbuilder' ), |
| 302 | 302 | 'type' => 'text', |
| 303 | 303 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 304 | - // 'tab' => 'name', | |
| 305 | 304 | 'dependency' => [ |
| 306 | 305 | 'rules' => [ |
| 307 | 306 | [ |
| 308 | 307 | 'item' => 'general.billing_form.billing_last_name', |
| @@ -316,9 +315,8 @@ | ||
| 316 | 315 | 'id' => 'billing_last_name_placeholder', |
| 317 | 316 | 'label' => esc_html__( 'Last name Placeholder', 'shopbuilder' ), |
| 318 | 317 | 'type' => 'text', |
| 319 | 318 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 320 | - // 'tab' => 'name', | |
| 321 | 319 | 'dependency' => [ |
| 322 | 320 | 'rules' => [ |
| 323 | 321 | [ |
| 324 | 322 | 'item' => 'general.billing_form.billing_last_name', |
| @@ -332,9 +330,8 @@ | ||
| 332 | 330 | 'billing_company_heading' => [ |
| 333 | 331 | 'id' => 'billing_company_heading', |
| 334 | 332 | 'type' => 'title', |
| 335 | 333 | 'label' => esc_html__( 'Company', 'shopbuilder' ), |
| 336 | - // 'tab' => 'company', | |
| 337 | 334 | ], |
| 338 | 335 | 'billing_company' => [ |
| 339 | 336 | 'id' => 'billing_company', |
| 340 | 337 | 'label' => esc_html__( 'Company name', 'shopbuilder' ), |
| @@ -353,9 +350,8 @@ | ||
| 353 | 350 | 'value' => 'required', |
| 354 | 351 | 'label' => 'Required Field', |
| 355 | 352 | ], |
| 356 | 353 | ], |
| 357 | - // 'tab' => 'company', | |
| 358 | 354 | ], |
| 359 | 355 | |
| 360 | 356 | 'billing_company_label' => [ |
| 361 | 357 | 'id' => 'billing_company_label', |
| @@ -361,9 +357,8 @@ | ||
| 361 | 357 | 'id' => 'billing_company_label', |
| 362 | 358 | 'label' => esc_html__( 'Company label', 'shopbuilder' ), |
| 363 | 359 | 'type' => 'text', |
| 364 | 360 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 365 | - // 'tab' => 'company', | |
| 366 | 361 | 'dependency' => [ |
| 367 | 362 | 'rules' => [ |
| 368 | 363 | [ |
| 369 | 364 | 'item' => 'general.billing_form.billing_company', |
| @@ -377,9 +372,8 @@ | ||
| 377 | 372 | 'id' => 'billing_company_placeholder', |
| 378 | 373 | 'label' => esc_html__( 'Company Placeholder', 'shopbuilder' ), |
| 379 | 374 | 'type' => 'text', |
| 380 | 375 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 381 | - // 'tab' => 'company', | |
| 382 | 376 | 'dependency' => [ |
| 383 | 377 | 'rules' => [ |
| 384 | 378 | [ |
| 385 | 379 | 'item' => 'general.billing_form.billing_company', |
| @@ -393,9 +387,8 @@ | ||
| 393 | 387 | 'billing_country_heading' => [ |
| 394 | 388 | 'id' => 'billing_country_heading', |
| 395 | 389 | 'type' => 'title', |
| 396 | 390 | 'label' => esc_html__( 'Country', 'shopbuilder' ), |
| 397 | - // 'tab' => 'country', | |
| 398 | 391 | ], |
| 399 | 392 | 'billing_country' => [ |
| 400 | 393 | 'id' => 'billing_country', |
| 401 | 394 | 'label' => esc_html__( 'Country', 'shopbuilder' ), |
| @@ -414,9 +407,8 @@ | ||
| 414 | 407 | 'label' => 'Required Field', |
| 415 | 408 | // 'disabled' => true, |
| 416 | 409 | ], |
| 417 | 410 | ], |
| 418 | - // 'tab' => 'country', | |
| 419 | 411 | ], |
| 420 | 412 | |
| 421 | 413 | 'billing_country_label' => [ |
| 422 | 414 | 'id' => 'billing_country_label', |
| @@ -422,9 +414,8 @@ | ||
| 422 | 414 | 'id' => 'billing_country_label', |
| 423 | 415 | 'label' => esc_html__( 'Country label', 'shopbuilder' ), |
| 424 | 416 | 'type' => 'text', |
| 425 | 417 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 426 | - // 'tab' => 'country', | |
| 427 | 418 | 'dependency' => [ |
| 428 | 419 | 'rules' => [ |
| 429 | 420 | [ |
| 430 | 421 | 'item' => 'general.billing_form.billing_country', |
| @@ -437,9 +428,8 @@ | ||
| 437 | 428 | 'billing_address_1_heading' => [ |
| 438 | 429 | 'id' => 'billing_address_1_heading', |
| 439 | 430 | 'type' => 'title', |
| 440 | 431 | 'label' => esc_html__( 'Address 1', 'shopbuilder' ), |
| 441 | - // 'tab' => 'address', | |
| 442 | 432 | ], |
| 443 | 433 | 'billing_address_1' => [ |
| 444 | 434 | 'id' => 'billing_address_1', |
| 445 | 435 | 'label' => esc_html__( 'Address 1', 'shopbuilder' ), |
| @@ -455,9 +445,8 @@ | ||
| 455 | 445 | 'value' => 'required', |
| 456 | 446 | 'label' => 'Required Field', |
| 457 | 447 | ], |
| 458 | 448 | ], |
| 459 | - // 'tab' => 'address', | |
| 460 | 449 | ], |
| 461 | 450 | |
| 462 | 451 | 'billing_address_1_label' => [ |
| 463 | 452 | 'id' => 'billing_address_1_label', |
| @@ -463,9 +452,8 @@ | ||
| 463 | 452 | 'id' => 'billing_address_1_label', |
| 464 | 453 | 'label' => esc_html__( 'Address 1 label', 'shopbuilder' ), |
| 465 | 454 | 'type' => 'text', |
| 466 | 455 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 467 | - // 'tab' => 'address', | |
| 468 | 456 | 'dependency' => [ |
| 469 | 457 | 'rules' => [ |
| 470 | 458 | [ |
| 471 | 459 | 'item' => 'general.billing_form.billing_address_1', |
| @@ -479,9 +467,8 @@ | ||
| 479 | 467 | 'id' => 'billing_address_1_placeholder', |
| 480 | 468 | 'label' => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ), |
| 481 | 469 | 'type' => 'text', |
| 482 | 470 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 483 | - // 'tab' => 'address', | |
| 484 | 471 | 'dependency' => [ |
| 485 | 472 | 'rules' => [ |
| 486 | 473 | [ |
| 487 | 474 | 'item' => 'general.billing_form.billing_address_1', |
| @@ -494,9 +481,8 @@ | ||
| 494 | 481 | 'billing_address_2_heading' => [ |
| 495 | 482 | 'id' => 'billing_address_2_heading', |
| 496 | 483 | 'type' => 'title', |
| 497 | 484 | 'label' => esc_html__( 'Address 2', 'shopbuilder' ), |
| 498 | - // 'tab' => 'address', | |
| 499 | 485 | 'dependency' => [ |
| 500 | 486 | 'rules' => [ |
| 501 | 487 | [ |
| 502 | 488 | 'item' => 'general.billing_form.billing_address_1', |
| @@ -510,9 +496,8 @@ | ||
| 510 | 496 | 'id' => 'billing_address_2', |
| 511 | 497 | 'label' => esc_html__( 'Address 2', 'shopbuilder' ), |
| 512 | 498 | 'type' => 'checkbox', |
| 513 | 499 | 'orientation' => 'vertical', |
| 514 | - // 'tab' => 'address', | |
| 515 | 500 | 'value' => [ |
| 516 | 501 | 'show', |
| 517 | 502 | 'required' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ? 'required' : 'optional', |
| 518 | 503 | ], |
| @@ -538,9 +523,8 @@ | ||
| 538 | 523 | 'id' => 'billing_address_2_label', |
| 539 | 524 | 'label' => esc_html__( 'Address 2 label', 'shopbuilder' ), |
| 540 | 525 | 'type' => 'text', |
| 541 | 526 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 542 | - // 'tab' => 'address', | |
| 543 | 527 | 'dependency' => [ |
| 544 | 528 | 'rules' => [ |
| 545 | 529 | [ |
| 546 | 530 | 'item' => 'general.billing_form.billing_address_1', |
| @@ -559,9 +543,8 @@ | ||
| 559 | 543 | 'id' => 'billing_address_2_placeholder', |
| 560 | 544 | 'label' => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ), |
| 561 | 545 | 'type' => 'text', |
| 562 | 546 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 563 | - // 'tab' => 'address', | |
| 564 | 547 | 'dependency' => [ |
| 565 | 548 | 'rules' => [ |
| 566 | 549 | [ |
| 567 | 550 | 'item' => 'general.billing_form.billing_address_1', |
| @@ -579,9 +562,8 @@ | ||
| 579 | 562 | 'billing_city_heading' => [ |
| 580 | 563 | 'id' => 'billing_city_heading', |
| 581 | 564 | 'type' => 'title', |
| 582 | 565 | 'label' => esc_html__( 'Town / City', 'shopbuilder' ), |
| 583 | - // 'tab' => 'city', | |
| 584 | 566 | ], |
| 585 | 567 | 'billing_city' => [ |
| 586 | 568 | 'id' => 'billing_city', |
| 587 | 569 | 'label' => esc_html__( 'Town / City', 'shopbuilder' ), |
| @@ -587,9 +569,8 @@ | ||
| 587 | 569 | 'label' => esc_html__( 'Town / City', 'shopbuilder' ), |
| 588 | 570 | 'type' => 'checkbox', |
| 589 | 571 | 'orientation' => 'vertical', |
| 590 | 572 | 'value' => [ 'show', 'required' ], |
| 591 | - // 'tab' => 'city', | |
| 592 | 573 | 'options' => [ |
| 593 | 574 | [ |
| 594 | 575 | 'value' => 'show', |
| 595 | 576 | 'label' => 'Show Town / City?', |
| @@ -605,9 +586,8 @@ | ||
| 605 | 586 | 'id' => 'billing_city_label', |
| 606 | 587 | 'label' => esc_html__( 'Town / City label', 'shopbuilder' ), |
| 607 | 588 | 'type' => 'text', |
| 608 | 589 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 609 | - // 'tab' => 'city', | |
| 610 | 590 | 'dependency' => [ |
| 611 | 591 | 'rules' => [ |
| 612 | 592 | [ |
| 613 | 593 | 'item' => 'general.billing_form.billing_city', |
| @@ -621,9 +601,8 @@ | ||
| 621 | 601 | 'id' => 'billing_city_placeholder', |
| 622 | 602 | 'label' => esc_html__( 'City placeholder', 'shopbuilder' ), |
| 623 | 603 | 'type' => 'text', |
| 624 | 604 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 625 | - // 'tab' => 'city', | |
| 626 | 605 | 'dependency' => [ |
| 627 | 606 | 'rules' => [ |
| 628 | 607 | [ |
| 629 | 608 | 'item' => 'general.billing_form.billing_city', |
| @@ -636,9 +615,8 @@ | ||
| 636 | 615 | 'billing_state_heading' => [ |
| 637 | 616 | 'id' => 'billing_city_heading', |
| 638 | 617 | 'type' => 'title', |
| 639 | 618 | 'label' => esc_html__( 'State', 'shopbuilder' ), |
| 640 | - // 'tab' => 'state', | |
| 641 | 619 | ], |
| 642 | 620 | 'billing_state' => [ |
| 643 | 621 | 'id' => 'billing_state', |
| 644 | 622 | 'label' => esc_html__( 'State', 'shopbuilder' ), |
| @@ -654,9 +632,8 @@ | ||
| 654 | 632 | 'value' => 'required', |
| 655 | 633 | 'label' => 'Required Field', |
| 656 | 634 | ], |
| 657 | 635 | ], |
| 658 | - // 'tab' => 'state', | |
| 659 | 636 | ], |
| 660 | 637 | |
| 661 | 638 | 'billing_state_label' => [ |
| 662 | 639 | 'id' => 'billing_state_label', |
| @@ -663,9 +640,8 @@ | ||
| 663 | 640 | 'label' => esc_html__( 'State label', 'shopbuilder' ), |
| 664 | 641 | 'type' => 'text', |
| 665 | 642 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 666 | 643 | // 'help' => esc_html__( 'Leave empty to set default. If the Shipping Form is enabled, the State field is mandatory.', 'shopbuilder' ), |
| 667 | - // 'tab' => 'state', | |
| 668 | 644 | 'dependency' => [ |
| 669 | 645 | 'rules' => [ |
| 670 | 646 | [ |
| 671 | 647 | 'item' => 'general.billing_form.billing_state', |
| @@ -678,9 +654,8 @@ | ||
| 678 | 654 | 'billing_postcode_heading' => [ |
| 679 | 655 | 'id' => 'billing_postcode_heading', |
| 680 | 656 | 'type' => 'title', |
| 681 | 657 | 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ), |
| 682 | - // 'tab' => 'postcode', | |
| 683 | 658 | ], |
| 684 | 659 | 'billing_postcode' => [ |
| 685 | 660 | 'id' => 'billing_postcode', |
| 686 | 661 | 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ), |
| @@ -696,9 +671,8 @@ | ||
| 696 | 671 | 'value' => 'required', |
| 697 | 672 | 'label' => 'Required Field', |
| 698 | 673 | ], |
| 699 | 674 | ], |
| 700 | - // 'tab' => 'postcode', | |
| 701 | 675 | ], |
| 702 | 676 | 'billing_postcode_label' => [ |
| 703 | 677 | 'id' => 'billing_postcode_label', |
| 704 | 678 | 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ), |
| @@ -703,9 +677,8 @@ | ||
| 703 | 677 | 'id' => 'billing_postcode_label', |
| 704 | 678 | 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ), |
| 705 | 679 | 'type' => 'text', |
| 706 | 680 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 707 | - // 'tab' => 'postcode', | |
| 708 | 681 | 'dependency' => [ |
| 709 | 682 | 'rules' => [ |
| 710 | 683 | [ |
| 711 | 684 | 'item' => 'general.billing_form.billing_postcode', |
| @@ -719,9 +692,8 @@ | ||
| 719 | 692 | 'id' => 'billing_postcode_placeholder', |
| 720 | 693 | 'label' => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ), |
| 721 | 694 | 'type' => 'text', |
| 722 | 695 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 723 | - // 'tab' => 'postcode', | |
| 724 | 696 | 'dependency' => [ |
| 725 | 697 | 'rules' => [ |
| 726 | 698 | [ |
| 727 | 699 | 'item' => 'general.billing_form.billing_postcode', |
| @@ -734,9 +706,8 @@ | ||
| 734 | 706 | 'billing_phone_heading' => [ |
| 735 | 707 | 'id' => 'billing_phone_heading', |
| 736 | 708 | 'type' => 'title', |
| 737 | 709 | 'label' => esc_html__( 'Phone', 'shopbuilder' ), |
| 738 | - // 'tab' => 'phone', | |
| 739 | 710 | ], |
| 740 | 711 | 'billing_phone' => [ |
| 741 | 712 | 'id' => 'billing_phone', |
| 742 | 713 | 'label' => esc_html__( 'Phone', 'shopbuilder' ), |
| @@ -741,9 +712,8 @@ | ||
| 741 | 712 | 'id' => 'billing_phone', |
| 742 | 713 | 'label' => esc_html__( 'Phone', 'shopbuilder' ), |
| 743 | 714 | 'type' => 'checkbox', |
| 744 | 715 | 'orientation' => 'vertical', |
| 745 | - // 'tab' => 'phone', | |
| 746 | 716 | 'value' => [ |
| 747 | 717 | 'show', |
| 748 | 718 | 'required' === get_option( 'woocommerce_checkout_phone_field', 'required' ) ? 'required' : 'optional', |
| 749 | 719 | ], |
| @@ -763,9 +733,8 @@ | ||
| 763 | 733 | 'id' => 'billing_phone_label', |
| 764 | 734 | 'label' => esc_html__( 'Phone field label', 'shopbuilder' ), |
| 765 | 735 | 'type' => 'text', |
| 766 | 736 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 767 | - // 'tab' => 'phone', | |
| 768 | 737 | 'dependency' => [ |
| 769 | 738 | 'rules' => [ |
| 770 | 739 | [ |
| 771 | 740 | 'item' => 'general.billing_form.billing_phone', |
| @@ -779,9 +748,8 @@ | ||
| 779 | 748 | 'id' => 'billing_phone_placeholder', |
| 780 | 749 | 'label' => esc_html__( 'Phone field placeholder', 'shopbuilder' ), |
| 781 | 750 | 'type' => 'text', |
| 782 | 751 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 783 | - // 'tab' => 'phone', | |
| 784 | 752 | 'dependency' => [ |
| 785 | 753 | 'rules' => [ |
| 786 | 754 | [ |
| 787 | 755 | 'item' => 'general.billing_form.billing_phone', |
| @@ -794,9 +762,8 @@ | ||
| 794 | 762 | 'billing_email_heading' => [ |
| 795 | 763 | 'id' => 'billing_email_heading', |
| 796 | 764 | 'type' => 'title', |
| 797 | 765 | 'label' => esc_html__( 'Email', 'shopbuilder' ), |
| 798 | - // 'tab' => 'email', | |
| 799 | 766 | ], |
| 800 | 767 | 'billing_email' => [ |
| 801 | 768 | 'id' => 'billing_email', |
| 802 | 769 | 'label' => esc_html__( 'Email address', 'shopbuilder' ), |
| @@ -801,9 +768,8 @@ | ||
| 801 | 768 | 'id' => 'billing_email', |
| 802 | 769 | 'label' => esc_html__( 'Email address', 'shopbuilder' ), |
| 803 | 770 | 'type' => 'checkbox', |
| 804 | 771 | 'orientation' => 'vertical', |
| 805 | - // 'tab' => 'email', | |
| 806 | 772 | 'value' => [ 'show', 'required' ], |
| 807 | 773 | 'options' => [ |
| 808 | 774 | [ |
| 809 | 775 | 'value' => 'show', |
| @@ -819,9 +785,8 @@ | ||
| 819 | 785 | 'id' => 'billing_email_label', |
| 820 | 786 | 'label' => esc_html__( 'Email address field label', 'shopbuilder' ), |
| 821 | 787 | 'type' => 'text', |
| 822 | 788 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 823 | - // 'tab' => 'email', | |
| 824 | 789 | 'dependency' => [ |
| 825 | 790 | 'rules' => [ |
| 826 | 791 | [ |
| 827 | 792 | 'item' => 'general.billing_form.billing_email', |
| @@ -835,9 +800,8 @@ | ||
| 835 | 800 | 'id' => 'billing_email_placeholder', |
| 836 | 801 | 'label' => esc_html__( 'Email address field placeholder', 'shopbuilder' ), |
| 837 | 802 | 'type' => 'text', |
| 838 | 803 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 839 | - // 'tab' => 'email', | |
| 840 | 804 | 'dependency' => [ |
| 841 | 805 | 'rules' => [ |
| 842 | 806 | [ |
| 843 | 807 | 'item' => 'general.billing_form.billing_email', |
| @@ -862,13 +826,18 @@ | ||
| 862 | 826 | 'label' => esc_html__( 'Customize Shipping form Fields?', 'shopbuilder' ), |
| 863 | 827 | 'help' => esc_html__( 'Switch on to customize shipping form fields.', 'shopbuilder' ), |
| 864 | 828 | ], |
| 865 | 829 | 'fields' => [ |
| 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 | + ], | |
| 866 | 836 | 'shipping_first_name_heading' => [ |
| 867 | 837 | 'id' => 'shipping_first_name_heading', |
| 868 | 838 | 'type' => 'title', |
| 869 | 839 | 'label' => esc_html__( 'First Name', 'shopbuilder' ), |
| 870 | - // 'tab' => 'name', | |
| 871 | 840 | ], |
| 872 | 841 | 'shipping_first_name' => [ |
| 873 | 842 | 'id' => 'shipping_first_name', |
| 874 | 843 | 'label' => esc_html__( 'First name', 'shopbuilder' ), |
| @@ -884,9 +853,8 @@ | ||
| 884 | 853 | 'value' => 'required', |
| 885 | 854 | 'label' => 'Required Field', |
| 886 | 855 | ], |
| 887 | 856 | ], |
| 888 | - // 'tab' => 'name', | |
| 889 | 857 | ], |
| 890 | 858 | 'shipping_first_name_label' => [ |
| 891 | 859 | 'id' => 'shipping_first_name_label', |
| 892 | 860 | 'label' => esc_html__( 'First name Label', 'shopbuilder' ), |
| @@ -891,9 +859,8 @@ | ||
| 891 | 859 | 'id' => 'shipping_first_name_label', |
| 892 | 860 | 'label' => esc_html__( 'First name Label', 'shopbuilder' ), |
| 893 | 861 | 'type' => 'text', |
| 894 | 862 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 895 | - // 'tab' => 'name', | |
| 896 | 863 | 'dependency' => [ |
| 897 | 864 | 'rules' => [ |
| 898 | 865 | [ |
| 899 | 866 | 'item' => 'general.shipping_form.shipping_first_name', |
| @@ -907,9 +874,8 @@ | ||
| 907 | 874 | 'id' => 'shipping_first_name_placeholder', |
| 908 | 875 | 'label' => esc_html__( 'First name Placeholder', 'shopbuilder' ), |
| 909 | 876 | 'type' => 'text', |
| 910 | 877 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 911 | - // 'tab' => 'country', | |
| 912 | 878 | 'dependency' => [ |
| 913 | 879 | 'rules' => [ |
| 914 | 880 | [ |
| 915 | 881 | 'item' => 'general.shipping_form.shipping_first_name', |
| @@ -922,9 +888,8 @@ | ||
| 922 | 888 | 'shipping_first_last_heading' => [ |
| 923 | 889 | 'id' => 'shipping_first_last_heading', |
| 924 | 890 | 'type' => 'title', |
| 925 | 891 | 'label' => esc_html__( 'Last Name', 'shopbuilder' ), |
| 926 | - // 'tab' => 'name', | |
| 927 | 892 | ], |
| 928 | 893 | 'shipping_last_name' => [ |
| 929 | 894 | 'id' => 'shipping_last_name', |
| 930 | 895 | 'label' => esc_html__( 'Last name', 'shopbuilder' ), |
| @@ -940,9 +905,8 @@ | ||
| 940 | 905 | 'value' => 'required', |
| 941 | 906 | 'label' => 'Required Field', |
| 942 | 907 | ], |
| 943 | 908 | ], |
| 944 | - // 'tab' => 'name', | |
| 945 | 909 | ], |
| 946 | 910 | |
| 947 | 911 | 'shipping_last_name_label' => [ |
| 948 | 912 | 'id' => 'shipping_last_name_label', |
| @@ -948,9 +912,8 @@ | ||
| 948 | 912 | 'id' => 'shipping_last_name_label', |
| 949 | 913 | 'label' => esc_html__( 'Last name label', 'shopbuilder' ), |
| 950 | 914 | 'type' => 'text', |
| 951 | 915 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 952 | - // 'tab' => 'name', | |
| 953 | 916 | 'dependency' => [ |
| 954 | 917 | 'rules' => [ |
| 955 | 918 | [ |
| 956 | 919 | 'item' => 'general.shipping_form.shipping_last_name', |
| @@ -964,9 +927,8 @@ | ||
| 964 | 927 | 'id' => 'shipping_last_name_placeholder', |
| 965 | 928 | 'label' => esc_html__( 'Last name Placeholder', 'shopbuilder' ), |
| 966 | 929 | 'type' => 'text', |
| 967 | 930 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 968 | - // 'tab' => 'country', | |
| 969 | 931 | 'dependency' => [ |
| 970 | 932 | 'rules' => [ |
| 971 | 933 | [ |
| 972 | 934 | 'item' => 'general.shipping_form.shipping_last_name', |
| @@ -979,9 +941,8 @@ | ||
| 979 | 941 | 'shipping_company_heading' => [ |
| 980 | 942 | 'id' => 'shipping_company_heading', |
| 981 | 943 | 'type' => 'title', |
| 982 | 944 | 'label' => esc_html__( 'Company', 'shopbuilder' ), |
| 983 | - // 'tab' => 'name', | |
| 984 | 945 | ], |
| 985 | 946 | 'shipping_company' => [ |
| 986 | 947 | 'id' => 'shipping_company', |
| 987 | 948 | 'label' => esc_html__( 'Company name', 'shopbuilder' ), |
| @@ -997,9 +958,8 @@ | ||
| 997 | 958 | 'value' => 'required', |
| 998 | 959 | 'label' => 'Required Field', |
| 999 | 960 | ], |
| 1000 | 961 | ], |
| 1001 | - // 'tab' => 'company', | |
| 1002 | 962 | ], |
| 1003 | 963 | |
| 1004 | 964 | 'shipping_company_label' => [ |
| 1005 | 965 | 'id' => 'shipping_company_label', |
| @@ -1005,9 +965,8 @@ | ||
| 1005 | 965 | 'id' => 'shipping_company_label', |
| 1006 | 966 | 'label' => esc_html__( 'Company label', 'shopbuilder' ), |
| 1007 | 967 | 'type' => 'text', |
| 1008 | 968 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 1009 | - // 'tab' => 'company', | |
| 1010 | 969 | 'dependency' => [ |
| 1011 | 970 | 'rules' => [ |
| 1012 | 971 | [ |
| 1013 | 972 | 'item' => 'general.shipping_form.shipping_company', |
| @@ -1021,9 +980,8 @@ | ||
| 1021 | 980 | 'id' => 'shipping_company_placeholder', |
| 1022 | 981 | 'label' => esc_html__( 'Shipping company Placeholder', 'shopbuilder' ), |
| 1023 | 982 | 'type' => 'text', |
| 1024 | 983 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 1025 | - // 'tab' => 'country', | |
| 1026 | 984 | 'dependency' => [ |
| 1027 | 985 | 'rules' => [ |
| 1028 | 986 | [ |
| 1029 | 987 | 'item' => 'general.shipping_form.shipping_company', |
| @@ -1036,9 +994,8 @@ | ||
| 1036 | 994 | 'shipping_country_heading' => [ |
| 1037 | 995 | 'id' => 'shipping_country_heading', |
| 1038 | 996 | 'type' => 'title', |
| 1039 | 997 | 'label' => esc_html__( 'Country', 'shopbuilder' ), |
| 1040 | - // 'tab' => 'name', | |
| 1041 | 998 | ], |
| 1042 | 999 | 'shipping_country' => [ |
| 1043 | 1000 | 'id' => 'shipping_country', |
| 1044 | 1001 | 'label' => esc_html__( 'Country', 'shopbuilder' ), |
| @@ -1056,9 +1013,8 @@ | ||
| 1056 | 1013 | 'label' => 'Required Field', |
| 1057 | 1014 | // 'disabled' => true, |
| 1058 | 1015 | ], |
| 1059 | 1016 | ], |
| 1060 | - // 'tab' => 'country', | |
| 1061 | 1017 | ], |
| 1062 | 1018 | |
| 1063 | 1019 | 'shipping_country_label' => [ |
| 1064 | 1020 | 'id' => 'shipping_country_label', |
| @@ -1078,9 +1034,8 @@ | ||
| 1078 | 1034 | 'shipping_address_1_heading' => [ |
| 1079 | 1035 | 'id' => 'shipping_address_1_heading', |
| 1080 | 1036 | 'type' => 'title', |
| 1081 | 1037 | 'label' => esc_html__( 'Address 1', 'shopbuilder' ), |
| 1082 | - // 'tab' => 'name', | |
| 1083 | 1038 | ], |
| 1084 | 1039 | 'shipping_address_1' => [ |
| 1085 | 1040 | 'id' => 'shipping_address_1', |
| 1086 | 1041 | 'label' => esc_html__( 'Address 1', 'shopbuilder' ), |
| @@ -1096,9 +1051,8 @@ | ||
| 1096 | 1051 | 'value' => 'required', |
| 1097 | 1052 | 'label' => 'Required Field', |
| 1098 | 1053 | ], |
| 1099 | 1054 | ], |
| 1100 | - // 'tab' => 'country', | |
| 1101 | 1055 | ], |
| 1102 | 1056 | |
| 1103 | 1057 | 'shipping_address_1_label' => [ |
| 1104 | 1058 | 'id' => 'shipping_address_1_label', |
| @@ -1104,9 +1058,8 @@ | ||
| 1104 | 1058 | 'id' => 'shipping_address_1_label', |
| 1105 | 1059 | 'label' => esc_html__( 'Address 1 label', 'shopbuilder' ), |
| 1106 | 1060 | 'type' => 'text', |
| 1107 | 1061 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 1108 | - // 'tab' => 'country', | |
| 1109 | 1062 | 'dependency' => [ |
| 1110 | 1063 | 'rules' => [ |
| 1111 | 1064 | [ |
| 1112 | 1065 | 'item' => 'general.shipping_form.shipping_address_1', |
| @@ -1120,9 +1073,8 @@ | ||
| 1120 | 1073 | 'id' => 'shipping_address_1_placeholder', |
| 1121 | 1074 | 'label' => esc_html__( 'Address 1 Placeholder', 'shopbuilder' ), |
| 1122 | 1075 | 'type' => 'text', |
| 1123 | 1076 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 1124 | - // 'tab' => 'country', | |
| 1125 | 1077 | 'dependency' => [ |
| 1126 | 1078 | 'rules' => [ |
| 1127 | 1079 | [ |
| 1128 | 1080 | 'item' => 'general.shipping_form.shipping_address_1', |
| @@ -1135,9 +1087,8 @@ | ||
| 1135 | 1087 | 'shipping_address_2_heading' => [ |
| 1136 | 1088 | 'id' => 'shipping_address_2_heading', |
| 1137 | 1089 | 'type' => 'title', |
| 1138 | 1090 | 'label' => esc_html__( 'Address 2', 'shopbuilder' ), |
| 1139 | - // 'tab' => 'name', | |
| 1140 | 1091 | 'dependency' => [ |
| 1141 | 1092 | 'rules' => [ |
| 1142 | 1093 | [ |
| 1143 | 1094 | 'item' => 'general.shipping_form.shipping_address_1', |
| @@ -1159,9 +1110,8 @@ | ||
| 1159 | 1110 | 'label' => 'Show Address field?', |
| 1160 | 1111 | ], |
| 1161 | 1112 | ], |
| 1162 | 1113 | 'help' => esc_html__( 'if "Address 1" is hidden then this field also hides.', 'shopbuilder' ), |
| 1163 | - // 'tab' => 'country', | |
| 1164 | 1114 | 'dependency' => [ |
| 1165 | 1115 | 'rules' => [ |
| 1166 | 1116 | [ |
| 1167 | 1117 | 'item' => 'general.shipping_form.shipping_address_1', |
| @@ -1176,9 +1126,8 @@ | ||
| 1176 | 1126 | 'id' => 'shipping_address_2_label', |
| 1177 | 1127 | 'label' => esc_html__( 'Address 2 label', 'shopbuilder' ), |
| 1178 | 1128 | 'type' => 'text', |
| 1179 | 1129 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 1180 | - // 'tab' => 'country', | |
| 1181 | 1130 | 'dependency' => [ |
| 1182 | 1131 | 'rules' => [ |
| 1183 | 1132 | [ |
| 1184 | 1133 | 'item' => 'general.shipping_form.shipping_address_1', |
| @@ -1197,9 +1146,8 @@ | ||
| 1197 | 1146 | 'id' => 'shipping_address_2_placeholder', |
| 1198 | 1147 | 'label' => esc_html__( 'Address 2 Placeholder', 'shopbuilder' ), |
| 1199 | 1148 | 'type' => 'text', |
| 1200 | 1149 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 1201 | - // 'tab' => 'country', | |
| 1202 | 1150 | 'dependency' => [ |
| 1203 | 1151 | 'rules' => [ |
| 1204 | 1152 | [ |
| 1205 | 1153 | 'item' => 'general.shipping_form.shipping_address_1', |
| @@ -1217,9 +1165,8 @@ | ||
| 1217 | 1165 | 'shipping_city_heading' => [ |
| 1218 | 1166 | 'id' => 'shipping_city_heading', |
| 1219 | 1167 | 'type' => 'title', |
| 1220 | 1168 | 'label' => esc_html__( 'Town / City', 'shopbuilder' ), |
| 1221 | - // 'tab' => 'name', | |
| 1222 | 1169 | ], |
| 1223 | 1170 | 'shipping_city' => [ |
| 1224 | 1171 | 'id' => 'shipping_city', |
| 1225 | 1172 | 'label' => esc_html__( 'Town / City', 'shopbuilder' ), |
| @@ -1235,9 +1182,8 @@ | ||
| 1235 | 1182 | 'value' => 'required', |
| 1236 | 1183 | 'label' => 'Required Field', |
| 1237 | 1184 | ], |
| 1238 | 1185 | ], |
| 1239 | - // 'tab' => 'country', | |
| 1240 | 1186 | ], |
| 1241 | 1187 | 'shipping_city_label' => [ |
| 1242 | 1188 | 'id' => 'shipping_city_label', |
| 1243 | 1189 | 'label' => esc_html__( 'Town / City label', 'shopbuilder' ), |
| @@ -1242,9 +1188,8 @@ | ||
| 1242 | 1188 | 'id' => 'shipping_city_label', |
| 1243 | 1189 | 'label' => esc_html__( 'Town / City label', 'shopbuilder' ), |
| 1244 | 1190 | 'type' => 'text', |
| 1245 | 1191 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 1246 | - // 'tab' => 'country', | |
| 1247 | 1192 | 'dependency' => [ |
| 1248 | 1193 | 'rules' => [ |
| 1249 | 1194 | [ |
| 1250 | 1195 | 'item' => 'general.shipping_form.shipping_city', |
| @@ -1258,9 +1203,8 @@ | ||
| 1258 | 1203 | 'id' => 'shipping_city_placeholder', |
| 1259 | 1204 | 'label' => esc_html__( 'Shipping city placeholder', 'shopbuilder' ), |
| 1260 | 1205 | 'type' => 'text', |
| 1261 | 1206 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 1262 | - // 'tab' => 'country', | |
| 1263 | 1207 | 'dependency' => [ |
| 1264 | 1208 | 'rules' => [ |
| 1265 | 1209 | [ |
| 1266 | 1210 | 'item' => 'general.shipping_form.shipping_city', |
| @@ -1273,9 +1217,8 @@ | ||
| 1273 | 1217 | 'shipping_state_heading' => [ |
| 1274 | 1218 | 'id' => 'shipping_state_heading', |
| 1275 | 1219 | 'type' => 'title', |
| 1276 | 1220 | 'label' => esc_html__( 'Others', 'shopbuilder' ), |
| 1277 | - // 'tab' => 'name', | |
| 1278 | 1221 | ], |
| 1279 | 1222 | 'shipping_state' => [ |
| 1280 | 1223 | 'id' => 'shipping_state', |
| 1281 | 1224 | 'label' => esc_html__( 'State', 'shopbuilder' ), |
| @@ -1291,9 +1234,8 @@ | ||
| 1291 | 1234 | 'value' => 'required', |
| 1292 | 1235 | 'label' => 'Required Field', |
| 1293 | 1236 | ], |
| 1294 | 1237 | ], |
| 1295 | - // 'tab' => 'country', | |
| 1296 | 1238 | ], |
| 1297 | 1239 | // |
| 1298 | 1240 | // 'shipping_state_label' => [ |
| 1299 | 1241 | // 'id' => 'shipping_state_label', |
| @@ -1299,9 +1241,8 @@ | ||
| 1299 | 1241 | // 'id' => 'shipping_state_label', |
| 1300 | 1242 | // 'label' => esc_html__( 'State label', 'shopbuilder' ), |
| 1301 | 1243 | // 'type' => 'text', |
| 1302 | 1244 | // 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 1303 | - // 'tab' => 'country', | |
| 1304 | 1245 | // 'dependency' => [ |
| 1305 | 1246 | // 'rules' => [ |
| 1306 | 1247 | // [ |
| 1307 | 1248 | // 'item' => 'general.shipping_form.shipping_state', |
| @@ -1314,9 +1255,8 @@ | ||
| 1314 | 1255 | // 'shipping_postcode_heading' => [ |
| 1315 | 1256 | // 'id' => 'shipping_postcode_heading', |
| 1316 | 1257 | // 'type' => 'title', |
| 1317 | 1258 | // 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ), |
| 1318 | - // 'tab' => 'name', | |
| 1319 | 1259 | // ], |
| 1320 | 1260 | 'shipping_postcode' => [ |
| 1321 | 1261 | 'id' => 'shipping_postcode', |
| 1322 | 1262 | 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ), |
| @@ -1328,9 +1268,8 @@ | ||
| 1328 | 1268 | 'value' => 'show', |
| 1329 | 1269 | 'label' => 'Show Postcode / ZIP?', |
| 1330 | 1270 | ], |
| 1331 | 1271 | ], |
| 1332 | - // 'tab' => 'country', | |
| 1333 | 1272 | ], |
| 1334 | 1273 | // 'shipping_postcode_label' => [ |
| 1335 | 1274 | // 'id' => 'shipping_postcode_label', |
| 1336 | 1275 | // 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ), |
| @@ -1335,9 +1274,8 @@ | ||
| 1335 | 1274 | // 'id' => 'shipping_postcode_label', |
| 1336 | 1275 | // 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ), |
| 1337 | 1276 | // 'type' => 'text', |
| 1338 | 1277 | // 'help' => esc_html__( 'Leave empty to set default. ', 'shopbuilder' ), |
| 1339 | - // 'tab' => 'country', | |
| 1340 | 1278 | // 'dependency' => [ |
| 1341 | 1279 | // 'rules' => [ |
| 1342 | 1280 | // [ |
| 1343 | 1281 | // 'item' => 'general.shipping_form.shipping_postcode', |
| @@ -1351,9 +1289,8 @@ | ||
| 1351 | 1289 | // 'id' => 'shipping_postcode_placeholder', |
| 1352 | 1290 | // 'label' => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ), |
| 1353 | 1291 | // 'type' => 'text', |
| 1354 | 1292 | // 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 1355 | - // 'tab' => 'country', | |
| 1356 | 1293 | // 'dependency' => [ |
| 1357 | 1294 | // 'rules' => [ |
| 1358 | 1295 | // [ |
| 1359 | 1296 | // 'item' => 'general.shipping_form.shipping_postcode', |