| @@ -8,8 +8,10 @@ | ||
| 8 | 8 | namespace RadiusTheme\SB\Models; |
| 9 | 9 | |
| 10 | 10 | use RadiusTheme\SB\Helpers\Fns; |
| 11 | 11 | use RadiusTheme\SB\Models\Base\ListModel; |
| 12 | +use RadiusTheme\SB\Modules\CheckoutEditor\CheckoutEditorInit; | |
| 13 | +use RadiusTheme\SB\Modules\CheckoutEditor\CheckoutFns; | |
| 12 | 14 | use RadiusTheme\SB\Traits\SingletonTrait; |
| 13 | 15 | use RadiusTheme\SB\Modules\Compare\Compare; |
| 14 | 16 | use RadiusTheme\SB\Modules\WishList\Wishlist; |
| 15 | 17 | use RadiusTheme\SB\Modules\Compare\CompareFns; |
| @@ -47,9 +49,9 @@ | ||
| 47 | 49 | * @return mixed|null |
| 48 | 50 | */ |
| 49 | 51 | protected function raw_list() { |
| 50 | 52 | $list = [ |
| 51 | - 'quick_view' => apply_filters( | |
| 53 | + 'quick_view' => apply_filters( | |
| 52 | 54 | 'rtsb/module/quick_view/options', |
| 53 | 55 | [ |
| 54 | 56 | 'id' => 'quick_view', |
| 55 | 57 | 'title' => esc_html__( 'Quick View', 'shopbuilder' ), |
| @@ -112,9 +114,9 @@ | ||
| 112 | 114 | 'label' => esc_html__( 'Enter Hook Name', 'shopbuilder' ), |
| 113 | 115 | 'help' => sprintf( |
| 114 | 116 | /* translators: 1: The shortcode.*/ |
| 115 | 117 | esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ), |
| 116 | - "<code><?php do_action( 'rtsb/modules/quick_view/frontend/display' ); ?></code>" | |
| 118 | + "<br /><code><?php do_action( 'rtsb/modules/quick_view/frontend/display' ); ?></code><br />" | |
| 117 | 119 | ), |
| 118 | 120 | 'tab' => 'general', |
| 119 | 121 | 'dependency' => [ |
| 120 | 122 | 'rules' => [ |
| @@ -211,9 +213,9 @@ | ||
| 211 | 213 | ] |
| 212 | 214 | ), |
| 213 | 215 | ] |
| 214 | 216 | ), |
| 215 | - 'wishlist' => apply_filters( | |
| 217 | + 'wishlist' => apply_filters( | |
| 216 | 218 | 'rtsb/module/wishlist/options', |
| 217 | 219 | [ |
| 218 | 220 | 'id' => 'wishlist', |
| 219 | 221 | 'title' => esc_html__( 'Wishlist', 'shopbuilder' ), |
| @@ -318,9 +320,9 @@ | ||
| 318 | 320 | 'tab' => 'button', |
| 319 | 321 | 'help' => sprintf( |
| 320 | 322 | /* translators: 1: The shortcode.*/ |
| 321 | 323 | esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ), |
| 322 | - "<code><?php do_action('rtsb/modules/wishlist/frontend/display' ); ?></code>" | |
| 324 | + "<br /><code><?php do_action('rtsb/modules/wishlist/frontend/display' ); ?></code><br />" | |
| 323 | 325 | ), |
| 324 | 326 | 'dependency' => [ |
| 325 | 327 | 'rules' => [ |
| 326 | 328 | [ |
| @@ -430,9 +432,9 @@ | ||
| 430 | 432 | 'tab' => 'button', |
| 431 | 433 | 'help' => sprintf( |
| 432 | 434 | /* translators: 1: The shortcode.*/ |
| 433 | 435 | esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ), |
| 434 | - "<code><?php do_action('rtsb/modules/wishlist/frontend/display' ); ?></code>" | |
| 436 | + "<br /><code><?php do_action('rtsb/modules/wishlist/frontend/display' ); ?></code><br />" | |
| 435 | 437 | ), |
| 436 | 438 | 'dependency' => [ |
| 437 | 439 | 'rules' => [ |
| 438 | 440 | [ |
| @@ -526,9 +528,8 @@ | ||
| 526 | 528 | 'label' => esc_html__( 'Remove if Added to Cart', 'shopbuilder' ), |
| 527 | 529 | 'tab' => 'page', |
| 528 | 530 | ), |
| 529 | 531 | */ |
| 530 | - | |
| 531 | 532 | 'page' => [ |
| 532 | 533 | 'id' => 'page', |
| 533 | 534 | 'type' => 'select', |
| 534 | 535 | 'label' => esc_html__( 'Select Wishlist Page', 'shopbuilder' ), |
| @@ -539,9 +540,8 @@ | ||
| 539 | 540 | ), |
| 540 | 541 | 'options' => Fns::get_pages(), |
| 541 | 542 | 'tab' => 'page', |
| 542 | 543 | ], |
| 543 | - | |
| 544 | 544 | 'page_show_fields' => [ |
| 545 | 545 | 'value' => WishlistFns::instance()->get_field_ids(), |
| 546 | 546 | 'id' => 'page_show_fields', |
| 547 | 547 | 'multiple' => true, |
| @@ -567,9 +567,9 @@ | ||
| 567 | 567 | ], |
| 568 | 568 | ], |
| 569 | 569 | ] |
| 570 | 570 | ), |
| 571 | - 'compare' => apply_filters( | |
| 571 | + 'compare' => apply_filters( | |
| 572 | 572 | 'rtsb/module/compare/options', |
| 573 | 573 | [ |
| 574 | 574 | 'id' => 'compare', |
| 575 | 575 | 'base_class' => Compare::class, |
| @@ -651,9 +651,9 @@ | ||
| 651 | 651 | 'tab' => 'button', |
| 652 | 652 | 'help' => sprintf( |
| 653 | 653 | /* translators: 1: The shortcode.*/ |
| 654 | 654 | esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ), |
| 655 | - "<code><?php do_action('rtsb/modules/compare/frontend/display' ); ?></code>" | |
| 655 | + "<br /><code><?php do_action('rtsb/modules/compare/frontend/display' ); ?></code><br />" | |
| 656 | 656 | ), |
| 657 | 657 | 'dependency' => [ |
| 658 | 658 | 'rules' => [ |
| 659 | 659 | [ |
| @@ -763,9 +763,9 @@ | ||
| 763 | 763 | 'tab' => 'button', |
| 764 | 764 | 'help' => sprintf( |
| 765 | 765 | /* translators: 1: The shortcode.*/ |
| 766 | 766 | esc_html__( 'Or Copy the php code %1$s and paste it in your product query where you want to show the button.', 'shopbuilder' ), |
| 767 | - "<code><?php do_action('rtsb/modules/compare/frontend/display' ); ?></code>" | |
| 767 | + "<br /><code><?php do_action('rtsb/modules/compare/frontend/display' ); ?></code><br />" | |
| 768 | 768 | ), |
| 769 | 769 | 'dependency' => [ |
| 770 | 770 | 'rules' => [ |
| 771 | 771 | [ |
| @@ -891,27 +891,27 @@ | ||
| 891 | 891 | |
| 892 | 892 | ], |
| 893 | 893 | ] |
| 894 | 894 | ), |
| 895 | - 'variation_gallery' => apply_filters( | |
| 896 | - 'rtsb/module/variation_gallery/options', | |
| 895 | + 'variation_swatches' => apply_filters( | |
| 896 | + 'rtsb/module/variation_swatches/options', | |
| 897 | 897 | [ |
| 898 | - 'id' => 'variation_gallery', | |
| 898 | + 'id' => 'variation_swatches', | |
| 899 | 899 | 'external' => true, |
| 900 | 900 | 'category' => 'general', |
| 901 | - 'title' => esc_html__( 'Variation Gallery', 'shopbuilder' ), | |
| 902 | - 'pluginSlug' => 'woo-product-variation-gallery', | |
| 903 | - 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 904 | - 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 901 | + 'title' => esc_html__( 'Variation Swatches', 'shopbuilder' ), | |
| 902 | + 'pluginSlug' => 'woo-product-variation-swatches', | |
| 903 | + 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 904 | + 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 905 | 905 | 'pluginActiveUrl' => add_query_arg( |
| 906 | 906 | [ |
| 907 | - '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 907 | + '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 908 | 908 | 'action' => 'activate', |
| 909 | - 'plugin' => 'woo-product-variation-gallery/woo-product-variation-gallery.php', | |
| 909 | + 'plugin' => 'woo-product-variation-swatches/woo-product-variation-swatches.php', | |
| 910 | 910 | ], |
| 911 | 911 | admin_url( 'plugins.php' ) |
| 912 | 912 | ), |
| 913 | - 'help' => esc_html__( 'This module requires: Variation Images Gallery for WooCommerce Plugin', 'shopbuilder' ), | |
| 913 | + 'help' => esc_html__( 'This module requires: Variation Swatches for WooCommerce Plugin.', 'shopbuilder' ), | |
| 914 | 914 | 'package' => 'free', |
| 915 | 915 | 'active_field' => [ |
| 916 | 916 | 'disable' => false, |
| 917 | 917 | ], |
| @@ -917,27 +917,27 @@ | ||
| 917 | 917 | ], |
| 918 | 918 | 'fields' => [], |
| 919 | 919 | ] |
| 920 | 920 | ), |
| 921 | - 'variation_swatches' => apply_filters( | |
| 922 | - 'rtsb/module/variation_swatches/options', | |
| 921 | + 'variation_gallery' => apply_filters( | |
| 922 | + 'rtsb/module/variation_gallery/options', | |
| 923 | 923 | [ |
| 924 | - 'id' => 'variation_swatches', | |
| 924 | + 'id' => 'variation_gallery', | |
| 925 | 925 | 'external' => true, |
| 926 | 926 | 'category' => 'general', |
| 927 | - 'title' => esc_html__( 'Variation Swatches', 'shopbuilder' ), | |
| 928 | - 'pluginSlug' => 'woo-product-variation-swatches', | |
| 929 | - 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 930 | - 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 927 | + 'title' => esc_html__( 'Variation Gallery', 'shopbuilder' ), | |
| 928 | + 'pluginSlug' => 'woo-product-variation-gallery', | |
| 929 | + 'pluginIsInstalled' => Fns::check_plugin_installed( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 930 | + 'pluginIsActive' => Fns::check_plugin_active( 'woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 931 | 931 | 'pluginActiveUrl' => add_query_arg( |
| 932 | 932 | [ |
| 933 | - '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-swatches/woo-product-variation-swatches.php' ), | |
| 933 | + '_wpnonce' => wp_create_nonce( 'activate-plugin_woo-product-variation-gallery/woo-product-variation-gallery.php' ), | |
| 934 | 934 | 'action' => 'activate', |
| 935 | - 'plugin' => 'woo-product-variation-swatches/woo-product-variation-swatches.php', | |
| 935 | + 'plugin' => 'woo-product-variation-gallery/woo-product-variation-gallery.php', | |
| 936 | 936 | ], |
| 937 | 937 | admin_url( 'plugins.php' ) |
| 938 | 938 | ), |
| 939 | - 'help' => esc_html__( 'This module requires: Variation Swatches for WooCommerce Plugin.', 'shopbuilder' ), | |
| 939 | + 'help' => esc_html__( 'This module requires: Variation Images Gallery for WooCommerce Plugin', 'shopbuilder' ), | |
| 940 | 940 | 'package' => 'free', |
| 941 | 941 | 'active_field' => [ |
| 942 | 942 | 'disable' => false, |
| 943 | 943 | ], |
| @@ -943,9 +943,38 @@ | ||
| 943 | 943 | ], |
| 944 | 944 | 'fields' => [], |
| 945 | 945 | ] |
| 946 | 946 | ), |
| 947 | - 'product_badges' => apply_filters( | |
| 947 | + 'mini_cart' => apply_filters( | |
| 948 | + 'rtsb/module/mini_cart/options', | |
| 949 | + [ | |
| 950 | + 'id' => 'mini_cart', | |
| 951 | + 'active' => '', | |
| 952 | + 'title' => esc_html__( 'Mini Cart', 'shopbuilder' ), | |
| 953 | + 'package' => $this->pro_package(), | |
| 954 | + 'active_field' => [ | |
| 955 | + 'label' => esc_html__( 'Enable Mini Cart?', 'shopbuilder' ), | |
| 956 | + 'help' => esc_html__( 'Switch on to enable mini cart module.', 'shopbuilder' ), | |
| 957 | + ], | |
| 958 | + 'is_active' => true, | |
| 959 | + 'fields' => [], | |
| 960 | + ] | |
| 961 | + ), | |
| 962 | + 'product_size_chart' => apply_filters( | |
| 963 | + 'rtsb/module/product_size_chart/options', | |
| 964 | + [ | |
| 965 | + 'id' => 'product_size_chart', | |
| 966 | + 'active' => '', | |
| 967 | + 'title' => esc_html__( 'Product Size Chart', 'shopbuilder' ), | |
| 968 | + 'package' => $this->pro_package(), | |
| 969 | + 'active_field' => [ | |
| 970 | + 'label' => esc_html__( 'Enable Product Size Chart?', 'shopbuilder' ), | |
| 971 | + 'help' => esc_html__( 'Switch on to enable Product Size Chart module.', 'shopbuilder' ), | |
| 972 | + ], | |
| 973 | + 'fields' => [], | |
| 974 | + ] | |
| 975 | + ), | |
| 976 | + 'product_badges' => apply_filters( | |
| 948 | 977 | 'rtsb/module/product_badges/options', |
| 949 | 978 | [ |
| 950 | 979 | 'id' => 'product_badges', |
| 951 | 980 | 'active' => '', |
| @@ -957,51 +986,227 @@ | ||
| 957 | 986 | ], |
| 958 | 987 | 'fields' => [], |
| 959 | 988 | ] |
| 960 | 989 | ), |
| 961 | - 'product_size_chart' => apply_filters( | |
| 962 | - 'rtsb/module/product_size_chart/options', | |
| 990 | + 'customize_my_account' => apply_filters( | |
| 991 | + 'rtsb/module/customize_my_account/options', | |
| 963 | 992 | [ |
| 964 | - 'id' => 'product_size_chart', | |
| 993 | + 'id' => 'customize_my_account', | |
| 965 | 994 | 'active' => '', |
| 966 | - 'title' => esc_html__( 'Product Size Chart', 'shopbuilder' ), | |
| 995 | + 'title' => esc_html__( 'Customize My Account', 'shopbuilder' ), | |
| 967 | 996 | 'package' => $this->pro_package(), |
| 968 | 997 | 'active_field' => [ |
| 969 | - 'label' => esc_html__( 'Enable Product Size Chart?', 'shopbuilder' ), | |
| 970 | - 'help' => esc_html__( 'Switch on to enable Product Size Chart module.', 'shopbuilder' ), | |
| 998 | + 'label' => esc_html__( 'Enable Customize My Account?', 'shopbuilder' ), | |
| 999 | + 'help' => esc_html__( 'Switch on to enable customize my account module.', 'shopbuilder' ), | |
| 971 | 1000 | ], |
| 972 | 1001 | 'fields' => [], |
| 973 | 1002 | ] |
| 974 | 1003 | ), |
| 975 | - 'back_order' => apply_filters( | |
| 976 | - 'rtsb/module/back_order/options', | |
| 1004 | + 'pre_order' => apply_filters( | |
| 1005 | + 'rtsb/module/pre_order/options', | |
| 977 | 1006 | [ |
| 978 | - 'id' => 'back_order', | |
| 1007 | + 'id' => 'pre_order', | |
| 979 | 1008 | 'active' => '', |
| 980 | - 'title' => esc_html__( 'Back-Order', 'shopbuilder' ), | |
| 1009 | + 'title' => esc_html__( 'Pre-Order', 'shopbuilder' ), | |
| 981 | 1010 | 'package' => $this->pro_package(), |
| 982 | 1011 | 'active_field' => [ |
| 983 | - 'label' => esc_html__( 'Enable Back-Order?', 'shopbuilder' ), | |
| 984 | - 'help' => esc_html__( 'Switch on to enable back-order module.', 'shopbuilder' ), | |
| 1012 | + 'label' => esc_html__( 'Enable Pre-Order?', 'shopbuilder' ), | |
| 1013 | + 'help' => esc_html__( 'Switch on to enable pre-order module.', 'shopbuilder' ), | |
| 985 | 1014 | ], |
| 986 | 1015 | 'fields' => [], |
| 987 | 1016 | ] |
| 988 | 1017 | ), |
| 989 | - 'flash_sale_countdown' => apply_filters( | |
| 990 | - 'rtsb/module/flash_sale_countdown/options', | |
| 1018 | + 'currency_switcher' => apply_filters( | |
| 1019 | + 'rtsb/module/currency_switcher/options', | |
| 991 | 1020 | [ |
| 992 | - 'id' => 'flash_sale_countdown', | |
| 1021 | + 'id' => 'currency_switcher', | |
| 993 | 1022 | 'active' => '', |
| 994 | - 'title' => esc_html__( 'Flash Sale Countdown', 'shopbuilder' ), | |
| 1023 | + 'title' => esc_html__( 'Currency Switcher', 'shopbuilder' ), | |
| 995 | 1024 | 'package' => $this->pro_package(), |
| 996 | 1025 | 'active_field' => [ |
| 997 | - 'label' => esc_html__( 'Enable Flash Sale Countdown?', 'shopbuilder' ), | |
| 998 | - 'help' => esc_html__( 'Switch on to enable Flash Sale Countdown module.', 'shopbuilder' ), | |
| 1026 | + 'label' => esc_html__( 'Enable Currency Switcher?', 'shopbuilder' ), | |
| 1027 | + 'help' => esc_html__( 'Switch on to enable currency switcher module.', 'shopbuilder' ), | |
| 999 | 1028 | ], |
| 1029 | + 'is_active' => true, | |
| 1000 | 1030 | 'fields' => [], |
| 1001 | 1031 | ] |
| 1002 | 1032 | ), |
| 1003 | - 'sales_notification' => apply_filters( | |
| 1033 | + 'product_add_ons' => apply_filters( | |
| 1034 | + 'rtsb/module/product_add_ons/options', | |
| 1035 | + [ | |
| 1036 | + 'id' => 'product_add_ons', | |
| 1037 | + 'active' => '', | |
| 1038 | + 'title' => esc_html__( 'Product Add-Ons', 'shopbuilder' ), | |
| 1039 | + 'package' => $this->pro_package(), | |
| 1040 | + 'active_field' => [ | |
| 1041 | + 'label' => esc_html__( 'Enable Product Add-Ons?', 'shopbuilder' ), | |
| 1042 | + 'help' => esc_html__( 'Switch on to enable product add-ons module.', 'shopbuilder' ), | |
| 1043 | + ], | |
| 1044 | + 'is_active' => true, | |
| 1045 | + 'fields' => [], | |
| 1046 | + ] | |
| 1047 | + ), | |
| 1048 | + // Checkout Fields Manager. | |
| 1049 | + 'checkout_fields_editor' => apply_filters( | |
| 1050 | + 'rtsb/module/checkout_fields_editor/options', | |
| 1051 | + [ | |
| 1052 | + 'id' => 'checkout_fields_editor', | |
| 1053 | + 'active' => '', | |
| 1054 | + 'title' => esc_html__( 'Checkout Fields Editor', 'shopbuilder' ), | |
| 1055 | + 'base_class' => CheckoutEditorInit::class, | |
| 1056 | + 'active_field' => [ | |
| 1057 | + 'label' => esc_html__( 'Enable Checkout Fields Editor?', 'shopbuilder' ), | |
| 1058 | + 'help' => esc_html__( 'Switch on to enable Checkout Fields Editor module.', 'shopbuilder' ), | |
| 1059 | + ], | |
| 1060 | + 'fields' => [ | |
| 1061 | + 'checkout_billing_intro' => [ | |
| 1062 | + 'id' => 'checkout_billing_intro', | |
| 1063 | + 'type' => 'description', | |
| 1064 | + 'text' => esc_html__( 'Billing Fields Editor allows you to customize the default billing fields on your checkout page.', 'shopbuilder' ), | |
| 1065 | + 'tab' => 'billing_fields', | |
| 1066 | + ], | |
| 1067 | + 'modify_billing_form' => [ | |
| 1068 | + 'id' => 'modify_billing_form', | |
| 1069 | + 'type' => 'switch', | |
| 1070 | + 'label' => esc_html__( 'Customize Billing Form?', 'shopbuilder' ), | |
| 1071 | + 'help' => esc_html__( 'Enable this option to edit billing Form.', 'shopbuilder' ), | |
| 1072 | + 'tab' => 'billing_fields', | |
| 1073 | + ], | |
| 1074 | + | |
| 1075 | + 'checkout_billing_fields_info' => [ | |
| 1076 | + 'id' => 'checkout_billing_fields_info', | |
| 1077 | + 'type' => 'title', | |
| 1078 | + 'label' => esc_html__( 'Billing Fields', 'shopbuilder' ), | |
| 1079 | + 'tab' => 'billing_fields', | |
| 1080 | + 'dependency' => [ | |
| 1081 | + 'rules' => [ | |
| 1082 | + [ | |
| 1083 | + 'item' => 'modules.checkout_fields_editor.modify_billing_form', | |
| 1084 | + 'value' => 'on', | |
| 1085 | + 'operator' => '==', | |
| 1086 | + ], | |
| 1087 | + ], | |
| 1088 | + ], | |
| 1089 | + ], | |
| 1090 | + 'checkout_billing_fields' => [ | |
| 1091 | + 'id' => 'checkout_billing_fields', | |
| 1092 | + 'type' => 'checkout_fields', | |
| 1093 | + 'tab' => 'billing_fields', | |
| 1094 | + 'value' => wp_json_encode( CheckoutFns::default_billing_fields() ), | |
| 1095 | + 'dependency' => [ | |
| 1096 | + 'rules' => [ | |
| 1097 | + [ | |
| 1098 | + 'item' => 'modules.checkout_fields_editor.modify_billing_form', | |
| 1099 | + 'value' => 'on', | |
| 1100 | + 'operator' => '==', | |
| 1101 | + ], | |
| 1102 | + ], | |
| 1103 | + ], | |
| 1104 | + ], | |
| 1105 | + 'checkout_shipping_intro' => [ | |
| 1106 | + 'id' => 'checkout_shipping_intro', | |
| 1107 | + 'type' => 'description', | |
| 1108 | + 'text' => esc_html__( 'Shipping Fields Editor allows you to customize the default shipping fields on your checkout page.', 'shopbuilder' ), | |
| 1109 | + 'tab' => 'shipping_fields', | |
| 1110 | + ], | |
| 1111 | + 'modify_shipping_form' => [ | |
| 1112 | + 'id' => 'modify_billing_form', | |
| 1113 | + 'type' => 'switch', | |
| 1114 | + 'label' => esc_html__( 'Modify Shipping Form?', 'shopbuilder' ), | |
| 1115 | + 'help' => esc_html__( 'Enable this option to edit shipping Form.', 'shopbuilder' ), | |
| 1116 | + 'tab' => 'shipping_fields', | |
| 1117 | + ], | |
| 1118 | + 'checkout_shipping_fields_info' => [ | |
| 1119 | + 'id' => 'checkout_shipping_fields_info', | |
| 1120 | + 'type' => 'title', | |
| 1121 | + 'label' => esc_html__( 'Shipping Fields', 'shopbuilder' ), | |
| 1122 | + 'tab' => 'shipping_fields', | |
| 1123 | + 'dependency' => [ | |
| 1124 | + 'rules' => [ | |
| 1125 | + [ | |
| 1126 | + 'item' => 'modules.checkout_fields_editor.modify_shipping_form', | |
| 1127 | + 'value' => 'on', | |
| 1128 | + 'operator' => '==', | |
| 1129 | + ], | |
| 1130 | + ], | |
| 1131 | + ], | |
| 1132 | + ], | |
| 1133 | + 'checkout_shipping_fields' => [ | |
| 1134 | + 'id' => 'checkout_shipping_fields', | |
| 1135 | + 'type' => 'checkout_fields', | |
| 1136 | + 'tab' => 'shipping_fields', | |
| 1137 | + 'value' => wp_json_encode( CheckoutFns::default_shipping_fields() ), | |
| 1138 | + 'dependency' => [ | |
| 1139 | + 'rules' => [ | |
| 1140 | + [ | |
| 1141 | + 'item' => 'modules.checkout_fields_editor.modify_shipping_form', | |
| 1142 | + 'value' => 'on', | |
| 1143 | + 'operator' => '==', | |
| 1144 | + ], | |
| 1145 | + ], | |
| 1146 | + ], | |
| 1147 | + ], | |
| 1148 | + 'checkout_additional_intro' => [ | |
| 1149 | + 'id' => 'checkout_additional_intro', | |
| 1150 | + 'type' => 'description', | |
| 1151 | + 'text' => esc_html__( 'Additional Fields Editor allows you to customize the extra fields on your checkout page.', 'shopbuilder' ), | |
| 1152 | + 'tab' => 'additional_fields', | |
| 1153 | + ], | |
| 1154 | + 'modify_additional_form' => [ | |
| 1155 | + 'id' => 'modify_additional_form', | |
| 1156 | + 'type' => 'switch', | |
| 1157 | + 'label' => esc_html__( 'Modify Additional Form Field?', 'shopbuilder' ), | |
| 1158 | + 'help' => esc_html__( 'Enable this option to edit Additional Form.', 'shopbuilder' ), | |
| 1159 | + 'tab' => 'additional_fields', | |
| 1160 | + ], | |
| 1161 | + 'checkout_additional_fields_info' => [ | |
| 1162 | + 'id' => 'checkout_additional_fields_info', | |
| 1163 | + 'type' => 'title', | |
| 1164 | + 'label' => esc_html__( 'Additional Fields', 'shopbuilder' ), | |
| 1165 | + 'tab' => 'additional_fields', | |
| 1166 | + 'dependency' => [ | |
| 1167 | + 'rules' => [ | |
| 1168 | + [ | |
| 1169 | + 'item' => 'modules.checkout_fields_editor.modify_additional_form', | |
| 1170 | + 'value' => 'on', | |
| 1171 | + 'operator' => '==', | |
| 1172 | + ], | |
| 1173 | + ], | |
| 1174 | + ], | |
| 1175 | + ], | |
| 1176 | + 'checkout_additional_fields' => [ | |
| 1177 | + 'id' => 'checkout_additional_fields', | |
| 1178 | + 'type' => 'checkout_fields', | |
| 1179 | + 'tab' => 'additional_fields', | |
| 1180 | + 'value' => wp_json_encode( CheckoutFns::checkout_additional_fields() ), | |
| 1181 | + 'dependency' => [ | |
| 1182 | + 'rules' => [ | |
| 1183 | + [ | |
| 1184 | + 'item' => 'modules.checkout_fields_editor.modify_additional_form', | |
| 1185 | + 'value' => 'on', | |
| 1186 | + 'operator' => '==', | |
| 1187 | + ], | |
| 1188 | + ], | |
| 1189 | + ], | |
| 1190 | + ], | |
| 1191 | + ], | |
| 1192 | + 'tabs' => [ | |
| 1193 | + 'general' => [ | |
| 1194 | + 'title' => esc_html__( 'General', 'shopbuilder' ), | |
| 1195 | + ], | |
| 1196 | + 'billing_fields' => [ | |
| 1197 | + 'title' => esc_html__( 'Billing Fields', 'shopbuilder' ), | |
| 1198 | + ], | |
| 1199 | + 'shipping_fields' => [ | |
| 1200 | + 'title' => esc_html__( 'Shipping Fields', 'shopbuilder' ), | |
| 1201 | + ], | |
| 1202 | + 'additional_fields' => [ | |
| 1203 | + 'title' => esc_html__( 'Additional Fields', 'shopbuilder' ), | |
| 1204 | + ], | |
| 1205 | + ], | |
| 1206 | + ] | |
| 1207 | + ), | |
| 1208 | + 'sales_notification' => apply_filters( | |
| 1004 | 1209 | 'rtsb/module/sales_notification/options', |
| 1005 | 1210 | [ |
| 1006 | 1211 | 'id' => 'sales_notification', |
| 1007 | 1212 | 'active' => '', |
| @@ -1013,9 +1218,23 @@ | ||
| 1013 | 1218 | ], |
| 1014 | 1219 | 'fields' => [], |
| 1015 | 1220 | ] |
| 1016 | 1221 | ), |
| 1017 | - 'quick_checkout' => apply_filters( | |
| 1222 | + 'flash_sale_countdown' => apply_filters( | |
| 1223 | + 'rtsb/module/flash_sale_countdown/options', | |
| 1224 | + [ | |
| 1225 | + 'id' => 'flash_sale_countdown', | |
| 1226 | + 'active' => '', | |
| 1227 | + 'title' => esc_html__( 'Flash Sale Countdown', 'shopbuilder' ), | |
| 1228 | + 'package' => $this->pro_package(), | |
| 1229 | + 'active_field' => [ | |
| 1230 | + 'label' => esc_html__( 'Enable Flash Sale Countdown?', 'shopbuilder' ), | |
| 1231 | + 'help' => esc_html__( 'Switch on to enable Flash Sale Countdown module.', 'shopbuilder' ), | |
| 1232 | + ], | |
| 1233 | + 'fields' => [], | |
| 1234 | + ] | |
| 1235 | + ), | |
| 1236 | + 'quick_checkout' => apply_filters( | |
| 1018 | 1237 | 'rtsb/module/quick_checkout/options', |
| 1019 | 1238 | [ |
| 1020 | 1239 | 'id' => 'quick_checkout', |
| 1021 | 1240 | 'active' => '', |
| @@ -1027,9 +1246,9 @@ | ||
| 1027 | 1246 | ], |
| 1028 | 1247 | 'fields' => [], |
| 1029 | 1248 | ] |
| 1030 | 1249 | ), |
| 1031 | - 'multi_step_checkout' => apply_filters( | |
| 1250 | + 'multi_step_checkout' => apply_filters( | |
| 1032 | 1251 | 'rtsb/module/multi_step_checkout/options', |
| 1033 | 1252 | [ |
| 1034 | 1253 | 'id' => 'multi_step_checkout', |
| 1035 | 1254 | 'active' => '', |
| @@ -1041,20 +1260,33 @@ | ||
| 1041 | 1260 | ], |
| 1042 | 1261 | 'fields' => [], |
| 1043 | 1262 | ] |
| 1044 | 1263 | ), |
| 1045 | - 'mini_cart' => apply_filters( | |
| 1046 | - 'rtsb/module/mini_cart/options', | |
| 1264 | + 'back_order' => apply_filters( | |
| 1265 | + 'rtsb/module/back_order/options', | |
| 1047 | 1266 | [ |
| 1048 | - 'id' => 'mini_cart', | |
| 1267 | + 'id' => 'back_order', | |
| 1049 | 1268 | 'active' => '', |
| 1050 | - 'title' => esc_html__( 'Mini Cart', 'shopbuilder' ), | |
| 1269 | + 'title' => esc_html__( 'Back-Order', 'shopbuilder' ), | |
| 1051 | 1270 | 'package' => $this->pro_package(), |
| 1052 | 1271 | 'active_field' => [ |
| 1053 | - 'label' => esc_html__( 'Enable Mini Cart?', 'shopbuilder' ), | |
| 1054 | - 'help' => esc_html__( 'Switch on to enable mini cart module.', 'shopbuilder' ), | |
| 1272 | + 'label' => esc_html__( 'Enable Back-Order?', 'shopbuilder' ), | |
| 1273 | + 'help' => esc_html__( 'Switch on to enable back-order module.', 'shopbuilder' ), | |
| 1055 | 1274 | ], |
| 1056 | - 'is_active' => true, | |
| 1275 | + 'fields' => [], | |
| 1276 | + ] | |
| 1277 | + ), | |
| 1278 | + 'sticky_add_to_cart' => apply_filters( | |
| 1279 | + 'rtsb/module/sticky_add_to_cart/options', | |
| 1280 | + [ | |
| 1281 | + 'id' => 'sticky_add_to_cart', | |
| 1282 | + 'active' => '', | |
| 1283 | + 'title' => esc_html__( 'Sticky Add-To-Cart', 'shopbuilder' ), | |
| 1284 | + 'package' => $this->pro_package(), | |
| 1285 | + 'active_field' => [ | |
| 1286 | + 'label' => esc_html__( 'Enable Sticky Add-To-Cart?', 'shopbuilder' ), | |
| 1287 | + 'help' => esc_html__( 'Switch on to enable sticky add-to-cart module.', 'shopbuilder' ), | |
| 1288 | + ], | |
| 1057 | 1289 | 'fields' => [], |
| 1058 | 1290 | ] |
| 1059 | 1291 | ), |
| 1060 | 1292 | ]; |