| @@ -62,13 +62,8 @@ | ||
| 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 | - ], | |
| 71 | 66 | 'notification_position' => [ |
| 72 | 67 | 'id' => 'notification_position', |
| 73 | 68 | 'value' => 'center-center', |
| 74 | 69 | 'type' => 'select', |
| @@ -73,15 +68,17 @@ | ||
| 73 | 68 | 'value' => 'center-center', |
| 74 | 69 | 'type' => 'select', |
| 75 | 70 | 'label' => esc_html__( 'Notification Position', 'shopbuilder' ), |
| 76 | 71 | 'options' => [ |
| 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' ), | |
| 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' ), | |
| 84 | 81 | ], |
| 85 | 82 | ], |
| 86 | 83 | 'notification_color' => [ |
| 87 | 84 | 'id' => 'notification_color', |
| @@ -100,14 +97,9 @@ | ||
| 100 | 97 | 'label' => esc_html__( 'Background Color', 'shopbuilder' ), |
| 101 | 98 | 'type' => 'color', |
| 102 | 99 | 'tab' => 'floating_button', |
| 103 | 100 | ], |
| 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 | - ], | |
| 101 | + | |
| 110 | 102 | ], |
| 111 | 103 | ], |
| 112 | 104 | ), |
| 113 | 105 | 'social_share' => apply_filters( |
| @@ -120,13 +112,8 @@ | ||
| 120 | 112 | 'active_field' => [ |
| 121 | 113 | 'disable' => true, |
| 122 | 114 | ], |
| 123 | 115 | '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 | - ], | |
| 129 | 116 | 'share_platforms' => [ |
| 130 | 117 | 'id' => 'share_platforms', |
| 131 | 118 | 'label' => esc_html__( 'Select Social Sharing Platforms', 'shopbuilder' ), |
| 132 | 119 | 'type' => 'checkbox', |
| @@ -177,20 +164,8 @@ | ||
| 177 | 164 | ], |
| 178 | 165 | ], |
| 179 | 166 | ], |
| 180 | 167 | ), |
| 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 | - ), | |
| 193 | 168 | 'tooltip' => apply_filters( |
| 194 | 169 | 'rtsb/settings/tooltip/options', |
| 195 | 170 | [ |
| 196 | 171 | 'id' => 'tooltip', |
| @@ -209,13 +184,13 @@ | ||
| 209 | 184 | 'category' => 'checkout', |
| 210 | 185 | 'title' => esc_html__( 'Billing Form Settings', 'shopbuilder' ), |
| 211 | 186 | 'package' => 'free', |
| 212 | 187 | 'active_field' => [ |
| 213 | - 'label' => esc_html__( 'Customize Billing Form Fields?', 'shopbuilder' ), | |
| 214 | - 'help' => esc_html__( 'Switch on to customize billing form fields.', 'shopbuilder' ), | |
| 188 | + 'label' => esc_html__( 'Enable Billing form settings?', 'shopbuilder' ), | |
| 189 | + 'help' => esc_html__( 'Switch on to Billing form settings.', 'shopbuilder' ), | |
| 215 | 190 | ], |
| 216 | 191 | 'fields' => [ |
| 217 | - 'billing_first_name_heading' => [ | |
| 192 | + 'billing_first_name_heading' => [ | |
| 218 | 193 | 'id' => 'billing_first_name_heading', |
| 219 | 194 | 'type' => 'title', |
| 220 | 195 | 'label' => esc_html__( 'First Name', 'shopbuilder' ), |
| 221 | 196 | // 'tab' => 'name', |
| @@ -242,9 +217,9 @@ | ||
| 242 | 217 | 'id' => 'billing_first_name_label', |
| 243 | 218 | 'label' => esc_html__( 'First name Label', 'shopbuilder' ), |
| 244 | 219 | 'type' => 'text', |
| 245 | 220 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 246 | - // 'tab' => 'name', | |
| 221 | + // 'tab' => 'name', | |
| 247 | 222 | 'dependency' => [ |
| 248 | 223 | 'rules' => [ |
| 249 | 224 | [ |
| 250 | 225 | 'item' => 'general.billing_form.billing_first_name', |
| @@ -258,9 +233,9 @@ | ||
| 258 | 233 | 'id' => 'billing_first_name_placeholder', |
| 259 | 234 | 'label' => esc_html__( 'First name Placeholder', 'shopbuilder' ), |
| 260 | 235 | 'type' => 'text', |
| 261 | 236 | 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), |
| 262 | - // 'tab' => 'name', | |
| 237 | + // 'tab' => 'name', | |
| 263 | 238 | 'dependency' => [ |
| 264 | 239 | 'rules' => [ |
| 265 | 240 | [ |
| 266 | 241 | 'item' => 'general.billing_form.billing_first_name', |
| @@ -270,13 +245,13 @@ | ||
| 270 | 245 | ], |
| 271 | 246 | ], |
| 272 | 247 | ], |
| 273 | 248 | |
| 274 | - 'billing_last_name_heading' => [ | |
| 249 | + 'billing_last_name_heading' => [ | |
| 275 | 250 | 'id' => 'billing_last_name_heading', |
| 276 | 251 | 'type' => 'title', |
| 277 | 252 | 'label' => esc_html__( 'Last Name', 'shopbuilder' ), |
| 278 | - // 'tab' => 'name', | |
| 253 | + //'tab' => 'name', | |
| 279 | 254 | ], |
| 280 | 255 | 'billing_last_name' => [ |
| 281 | 256 | 'id' => 'billing_last_name', |
| 282 | 257 | 'label' => esc_html__( 'Last name', 'shopbuilder' ), |
| @@ -328,13 +303,13 @@ | ||
| 328 | 303 | ], |
| 329 | 304 | ], |
| 330 | 305 | ], |
| 331 | 306 | |
| 332 | - 'billing_company_heading' => [ | |
| 307 | + 'billing_company_heading' => [ | |
| 333 | 308 | 'id' => 'billing_company_heading', |
| 334 | 309 | 'type' => 'title', |
| 335 | 310 | 'label' => esc_html__( 'Company', 'shopbuilder' ), |
| 336 | - // 'tab' => 'company', | |
| 311 | + //'tab' => 'company', | |
| 337 | 312 | ], |
| 338 | 313 | 'billing_company' => [ |
| 339 | 314 | 'id' => 'billing_company', |
| 340 | 315 | 'label' => esc_html__( 'Company name', 'shopbuilder' ), |
| @@ -389,13 +364,13 @@ | ||
| 389 | 364 | ], |
| 390 | 365 | ], |
| 391 | 366 | ], |
| 392 | 367 | |
| 393 | - 'billing_country_heading' => [ | |
| 368 | + 'billing_country_heading' => [ | |
| 394 | 369 | 'id' => 'billing_country_heading', |
| 395 | 370 | 'type' => 'title', |
| 396 | 371 | 'label' => esc_html__( 'Country', 'shopbuilder' ), |
| 397 | - // 'tab' => 'country', | |
| 372 | + //'tab' => 'country', | |
| 398 | 373 | ], |
| 399 | 374 | 'billing_country' => [ |
| 400 | 375 | 'id' => 'billing_country', |
| 401 | 376 | 'label' => esc_html__( 'Country', 'shopbuilder' ), |
| @@ -401,9 +376,8 @@ | ||
| 401 | 376 | 'label' => esc_html__( 'Country', 'shopbuilder' ), |
| 402 | 377 | 'type' => 'checkbox', |
| 403 | 378 | 'orientation' => 'vertical', |
| 404 | 379 | 'value' => [ 'show', 'required' ], |
| 405 | - // 'help' => esc_html__( 'If the Shipping Form is enabled, the Country field is mandatory.', 'shopbuilder' ), | |
| 406 | 380 | 'options' => [ |
| 407 | 381 | [ |
| 408 | 382 | 'value' => 'show', |
| 409 | 383 | 'label' => 'Show Country?', |
| @@ -433,13 +407,13 @@ | ||
| 433 | 407 | ], |
| 434 | 408 | ], |
| 435 | 409 | ], |
| 436 | 410 | ], |
| 437 | - 'billing_address_1_heading' => [ | |
| 411 | + 'billing_address_1_heading' => [ | |
| 438 | 412 | 'id' => 'billing_address_1_heading', |
| 439 | 413 | 'type' => 'title', |
| 440 | 414 | 'label' => esc_html__( 'Address 1', 'shopbuilder' ), |
| 441 | - // 'tab' => 'address', | |
| 415 | + //'tab' => 'address', | |
| 442 | 416 | ], |
| 443 | 417 | 'billing_address_1' => [ |
| 444 | 418 | 'id' => 'billing_address_1', |
| 445 | 419 | 'label' => esc_html__( 'Address 1', 'shopbuilder' ), |
| @@ -490,14 +464,14 @@ | ||
| 490 | 464 | ], |
| 491 | 465 | ], |
| 492 | 466 | ], |
| 493 | 467 | ], |
| 494 | - 'billing_address_2_heading' => [ | |
| 495 | - 'id' => 'billing_address_2_heading', | |
| 496 | - 'type' => 'title', | |
| 497 | - 'label' => esc_html__( 'Address 2', 'shopbuilder' ), | |
| 498 | - // 'tab' => 'address', | |
| 499 | - 'dependency' => [ | |
| 468 | + 'billing_address_2_heading' => [ | |
| 469 | + 'id' => 'billing_address_2_heading', | |
| 470 | + 'type' => 'title', | |
| 471 | + 'label' => esc_html__( 'Address 2', 'shopbuilder' ), | |
| 472 | + //'tab' => 'address', | |
| 473 | + 'dependency' => [ | |
| 500 | 474 | 'rules' => [ |
| 501 | 475 | [ |
| 502 | 476 | 'item' => 'general.billing_form.billing_address_1', |
| 503 | 477 | 'value' => 'show', |
| @@ -511,11 +485,10 @@ | ||
| 511 | 485 | 'label' => esc_html__( 'Address 2', 'shopbuilder' ), |
| 512 | 486 | 'type' => 'checkbox', |
| 513 | 487 | 'orientation' => 'vertical', |
| 514 | 488 | // 'tab' => 'address', |
| 515 | - 'value' => [ | |
| 516 | - 'show', | |
| 517 | - 'required' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ? 'required' : 'optional', | |
| 489 | + 'value' => [ 'show', | |
| 490 | + 'required' === get_option( 'woocommerce_checkout_address_2_field', 'optional' ) ? 'required' : 'optional', | |
| 518 | 491 | ], |
| 519 | 492 | 'options' => [ |
| 520 | 493 | [ |
| 521 | 494 | 'value' => 'show', |
| @@ -575,9 +548,9 @@ | ||
| 575 | 548 | ], |
| 576 | 549 | ], |
| 577 | 550 | ], |
| 578 | 551 | ], |
| 579 | - 'billing_city_heading' => [ | |
| 552 | + 'billing_city_heading' => [ | |
| 580 | 553 | 'id' => 'billing_city_heading', |
| 581 | 554 | 'type' => 'title', |
| 582 | 555 | 'label' => esc_html__( 'Town / City', 'shopbuilder' ), |
| 583 | 556 | // 'tab' => 'city', |
| @@ -632,9 +605,9 @@ | ||
| 632 | 605 | ], |
| 633 | 606 | ], |
| 634 | 607 | ], |
| 635 | 608 | ], |
| 636 | - 'billing_state_heading' => [ | |
| 609 | + 'billing_state_heading' => [ | |
| 637 | 610 | 'id' => 'billing_city_heading', |
| 638 | 611 | 'type' => 'title', |
| 639 | 612 | 'label' => esc_html__( 'State', 'shopbuilder' ), |
| 640 | 613 | // 'tab' => 'state', |
| @@ -662,9 +635,8 @@ | ||
| 662 | 635 | 'id' => 'billing_state_label', |
| 663 | 636 | 'label' => esc_html__( 'State label', 'shopbuilder' ), |
| 664 | 637 | 'type' => 'text', |
| 665 | 638 | '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 | 639 | // 'tab' => 'state', |
| 668 | 640 | 'dependency' => [ |
| 669 | 641 | 'rules' => [ |
| 670 | 642 | [ |
| @@ -674,9 +646,9 @@ | ||
| 674 | 646 | ], |
| 675 | 647 | ], |
| 676 | 648 | ], |
| 677 | 649 | ], |
| 678 | - 'billing_postcode_heading' => [ | |
| 650 | + 'billing_postcode_heading' => [ | |
| 679 | 651 | 'id' => 'billing_postcode_heading', |
| 680 | 652 | 'type' => 'title', |
| 681 | 653 | 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ), |
| 682 | 654 | // 'tab' => 'postcode', |
| @@ -730,9 +702,9 @@ | ||
| 730 | 702 | ], |
| 731 | 703 | ], |
| 732 | 704 | ], |
| 733 | 705 | ], |
| 734 | - 'billing_phone_heading' => [ | |
| 706 | + 'billing_phone_heading' => [ | |
| 735 | 707 | 'id' => 'billing_phone_heading', |
| 736 | 708 | 'type' => 'title', |
| 737 | 709 | 'label' => esc_html__( 'Phone', 'shopbuilder' ), |
| 738 | 710 | // 'tab' => 'phone', |
| @@ -790,9 +762,9 @@ | ||
| 790 | 762 | ], |
| 791 | 763 | ], |
| 792 | 764 | ], |
| 793 | 765 | ], |
| 794 | - 'billing_email_heading' => [ | |
| 766 | + 'billing_email_heading' => [ | |
| 795 | 767 | 'id' => 'billing_email_heading', |
| 796 | 768 | 'type' => 'title', |
| 797 | 769 | 'label' => esc_html__( 'Email', 'shopbuilder' ), |
| 798 | 770 | // 'tab' => 'email', |
| @@ -858,13 +830,13 @@ | ||
| 858 | 830 | 'category' => 'checkout', |
| 859 | 831 | 'title' => esc_html__( 'Shipping Form Settings', 'shopbuilder' ), |
| 860 | 832 | 'package' => 'free', |
| 861 | 833 | 'active_field' => [ |
| 862 | - 'label' => esc_html__( 'Customize Shipping form Fields?', 'shopbuilder' ), | |
| 863 | - 'help' => esc_html__( 'Switch on to customize shipping form fields.', 'shopbuilder' ), | |
| 834 | + 'label' => esc_html__( 'Enable Shipping form settings?', 'shopbuilder' ), | |
| 835 | + 'help' => esc_html__( 'Switch on to Shipping form settings.', 'shopbuilder' ), | |
| 864 | 836 | ], |
| 865 | 837 | 'fields' => [ |
| 866 | - 'shipping_first_name_heading' => [ | |
| 838 | + 'shipping_first_name_heading' => [ | |
| 867 | 839 | 'id' => 'shipping_first_name_heading', |
| 868 | 840 | 'type' => 'title', |
| 869 | 841 | 'label' => esc_html__( 'First Name', 'shopbuilder' ), |
| 870 | 842 | // 'tab' => 'name', |
| @@ -918,9 +890,9 @@ | ||
| 918 | 890 | ], |
| 919 | 891 | ], |
| 920 | 892 | ], |
| 921 | 893 | ], |
| 922 | - 'shipping_first_last_heading' => [ | |
| 894 | + 'shipping_first_last_heading' => [ | |
| 923 | 895 | 'id' => 'shipping_first_last_heading', |
| 924 | 896 | 'type' => 'title', |
| 925 | 897 | 'label' => esc_html__( 'Last Name', 'shopbuilder' ), |
| 926 | 898 | // 'tab' => 'name', |
| @@ -975,9 +947,9 @@ | ||
| 975 | 947 | ], |
| 976 | 948 | ], |
| 977 | 949 | ], |
| 978 | 950 | ], |
| 979 | - 'shipping_company_heading' => [ | |
| 951 | + 'shipping_company_heading' => [ | |
| 980 | 952 | 'id' => 'shipping_company_heading', |
| 981 | 953 | 'type' => 'title', |
| 982 | 954 | 'label' => esc_html__( 'Company', 'shopbuilder' ), |
| 983 | 955 | // 'tab' => 'name', |
| @@ -1032,9 +1004,9 @@ | ||
| 1032 | 1004 | ], |
| 1033 | 1005 | ], |
| 1034 | 1006 | ], |
| 1035 | 1007 | ], |
| 1036 | - 'shipping_country_heading' => [ | |
| 1008 | + 'shipping_country_heading' => [ | |
| 1037 | 1009 | 'id' => 'shipping_country_heading', |
| 1038 | 1010 | 'type' => 'title', |
| 1039 | 1011 | 'label' => esc_html__( 'Country', 'shopbuilder' ), |
| 1040 | 1012 | // 'tab' => 'name', |
| @@ -1074,9 +1046,9 @@ | ||
| 1074 | 1046 | ], |
| 1075 | 1047 | ], |
| 1076 | 1048 | ], |
| 1077 | 1049 | ], |
| 1078 | - 'shipping_address_1_heading' => [ | |
| 1050 | + 'shipping_address_1_heading' => [ | |
| 1079 | 1051 | 'id' => 'shipping_address_1_heading', |
| 1080 | 1052 | 'type' => 'title', |
| 1081 | 1053 | 'label' => esc_html__( 'Address 1', 'shopbuilder' ), |
| 1082 | 1054 | // 'tab' => 'name', |
| @@ -1131,14 +1103,14 @@ | ||
| 1131 | 1103 | ], |
| 1132 | 1104 | ], |
| 1133 | 1105 | ], |
| 1134 | 1106 | ], |
| 1135 | - 'shipping_address_2_heading' => [ | |
| 1136 | - 'id' => 'shipping_address_2_heading', | |
| 1137 | - 'type' => 'title', | |
| 1138 | - 'label' => esc_html__( 'Address 2', 'shopbuilder' ), | |
| 1107 | + 'shipping_address_2_heading' => [ | |
| 1108 | + 'id' => 'shipping_address_2_heading', | |
| 1109 | + 'type' => 'title', | |
| 1110 | + 'label' => esc_html__( 'Address 2', 'shopbuilder' ), | |
| 1139 | 1111 | // 'tab' => 'name', |
| 1140 | - 'dependency' => [ | |
| 1112 | + 'dependency' => [ | |
| 1141 | 1113 | 'rules' => [ |
| 1142 | 1114 | [ |
| 1143 | 1115 | 'item' => 'general.shipping_form.shipping_address_1', |
| 1144 | 1116 | 'value' => 'show', |
| @@ -1151,9 +1123,9 @@ | ||
| 1151 | 1123 | 'id' => 'shipping_address_2', |
| 1152 | 1124 | 'label' => esc_html__( 'Address 2', 'shopbuilder' ), |
| 1153 | 1125 | 'type' => 'checkbox', |
| 1154 | 1126 | 'orientation' => 'vertical', |
| 1155 | - 'value' => [ 'show' ], | |
| 1127 | + 'value' => [ 'show', 'required' ], | |
| 1156 | 1128 | 'options' => [ |
| 1157 | 1129 | [ |
| 1158 | 1130 | 'value' => 'show', |
| 1159 | 1131 | 'label' => 'Show Address field?', |
| @@ -1213,9 +1185,9 @@ | ||
| 1213 | 1185 | ], |
| 1214 | 1186 | ], |
| 1215 | 1187 | ], |
| 1216 | 1188 | ], |
| 1217 | - 'shipping_city_heading' => [ | |
| 1189 | + 'shipping_city_heading' => [ | |
| 1218 | 1190 | 'id' => 'shipping_city_heading', |
| 1219 | 1191 | 'type' => 'title', |
| 1220 | 1192 | 'label' => esc_html__( 'Town / City', 'shopbuilder' ), |
| 1221 | 1193 | // 'tab' => 'name', |
| @@ -1269,12 +1241,12 @@ | ||
| 1269 | 1241 | ], |
| 1270 | 1242 | ], |
| 1271 | 1243 | ], |
| 1272 | 1244 | ], |
| 1273 | - 'shipping_state_heading' => [ | |
| 1245 | + 'shipping_state_heading' => [ | |
| 1274 | 1246 | 'id' => 'shipping_state_heading', |
| 1275 | 1247 | 'type' => 'title', |
| 1276 | - 'label' => esc_html__( 'Others', 'shopbuilder' ), | |
| 1248 | + 'label' => esc_html__( 'State', 'shopbuilder' ), | |
| 1277 | 1249 | // 'tab' => 'name', |
| 1278 | 1250 | ], |
| 1279 | 1251 | 'shipping_state' => [ |
| 1280 | 1252 | 'id' => 'shipping_state', |
| @@ -1293,31 +1265,31 @@ | ||
| 1293 | 1265 | ], |
| 1294 | 1266 | ], |
| 1295 | 1267 | // 'tab' => 'country', |
| 1296 | 1268 | ], |
| 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 | - // ], | |
| 1269 | + | |
| 1270 | + 'shipping_state_label' => [ | |
| 1271 | + 'id' => 'shipping_state_label', | |
| 1272 | + 'label' => esc_html__( 'State label', 'shopbuilder' ), | |
| 1273 | + 'type' => 'text', | |
| 1274 | + 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), | |
| 1275 | + // 'tab' => 'country', | |
| 1276 | + 'dependency' => [ | |
| 1277 | + 'rules' => [ | |
| 1278 | + [ | |
| 1279 | + 'item' => 'general.shipping_form.shipping_state', | |
| 1280 | + 'value' => 'show', | |
| 1281 | + 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value // | |
| 1282 | + ], | |
| 1283 | + ], | |
| 1284 | + ], | |
| 1285 | + ], | |
| 1286 | + 'shipping_postcode_heading' => [ | |
| 1287 | + 'id' => 'shipping_postcode_heading', | |
| 1288 | + 'type' => 'title', | |
| 1289 | + 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ), | |
| 1290 | + // 'tab' => 'name', | |
| 1291 | + ], | |
| 1320 | 1292 | 'shipping_postcode' => [ |
| 1321 | 1293 | 'id' => 'shipping_postcode', |
| 1322 | 1294 | 'label' => esc_html__( 'Postcode / ZIP', 'shopbuilder' ), |
| 1323 | 1295 | 'type' => 'checkbox', |
| @@ -1327,43 +1299,47 @@ | ||
| 1327 | 1299 | [ |
| 1328 | 1300 | 'value' => 'show', |
| 1329 | 1301 | 'label' => 'Show Postcode / ZIP?', |
| 1330 | 1302 | ], |
| 1303 | + [ | |
| 1304 | + 'value' => 'required', | |
| 1305 | + 'label' => 'Required Field', | |
| 1306 | + ], | |
| 1331 | 1307 | ], |
| 1332 | 1308 | // 'tab' => 'country', |
| 1333 | 1309 | ], |
| 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 | - // ], | |
| 1310 | + 'shipping_postcode_label' => [ | |
| 1311 | + 'id' => 'shipping_postcode_label', | |
| 1312 | + 'label' => esc_html__( 'Postcode / ZIP label', 'shopbuilder' ), | |
| 1313 | + 'type' => 'text', | |
| 1314 | + 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), | |
| 1315 | + // 'tab' => 'country', | |
| 1316 | + 'dependency' => [ | |
| 1317 | + 'rules' => [ | |
| 1318 | + [ | |
| 1319 | + 'item' => 'general.shipping_form.shipping_postcode', | |
| 1320 | + 'value' => 'show', | |
| 1321 | + 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value // | |
| 1322 | + ], | |
| 1323 | + ], | |
| 1324 | + ], | |
| 1325 | + ], | |
| 1326 | + 'shipping_postcode_placeholder' => [ | |
| 1327 | + 'id' => 'shipping_postcode_placeholder', | |
| 1328 | + 'label' => esc_html__( 'Postcode / ZIP placeholder', 'shopbuilder' ), | |
| 1329 | + 'type' => 'text', | |
| 1330 | + 'help' => esc_html__( 'Leave empty to set default.', 'shopbuilder' ), | |
| 1331 | + // 'tab' => 'country', | |
| 1332 | + 'dependency' => [ | |
| 1333 | + 'rules' => [ | |
| 1334 | + [ | |
| 1335 | + 'item' => 'general.shipping_form.shipping_postcode', | |
| 1336 | + 'value' => 'show', | |
| 1337 | + 'operator' => '==', // 'operator' => 'any','in', !in' only valid for multiple value // | |
| 1338 | + ], | |
| 1339 | + ], | |
| 1340 | + ], | |
| 1341 | + ], | |
| 1366 | 1342 | |
| 1367 | 1343 | ], |
| 1368 | 1344 | ] |
| 1369 | 1345 | ), |