PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.3.2
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.3.2
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
← All changes | admin/pages/page-settings.php +40 -22 1.10.22.3.2 View file →
@@ -52,8 +52,10 @@
52 52 </div>
53 53
54 54 </div>
55 55
56 + <?php require MERCHANT_DIR . 'admin/views/wpvibe-banner.php'; ?>
57 +
56 58 <div class="merchant-module-page-content mrc-w-100">
57 59
58 60 <?php
59 61
@@ -63,13 +65,48 @@
63 65 * @since 1.0
64 66 */
65 67 do_action( 'merchant_admin_settings_before_options' );
66 68
69 + // Save the WPVibe MCP toggle only when WPVibe is active to avoid overwriting the stored value with the unchecked-checkbox default.
70 + if ( is_plugin_active( 'vibe-ai/vibe-ai.php' ) ) {
71 + Merchant_Admin_Options::save_options( array(
72 + 'module' => 'global-settings',
73 + 'fields' => array(
74 + array(
75 + 'id' => 'wpvibe_mcp_write_access',
76 + 'type' => 'switcher',
77 + 'default' => false,
78 + ),
79 + ),
80 + ) );
81 + }
82 +
67 83 Merchant_Admin_Options::create( array(
68 84 'module' => 'global-settings',
85 + 'title' => esc_html__( 'Merchant Analytics', 'merchant' ),
86 + 'fields' => array(
87 + // Analytics toggle
88 + array(
89 + 'id' => 'analytics_toggle',
90 + 'type' => 'switcher',
91 + 'title' => __( 'Enable analytics', 'merchant' ),
92 + 'desc' => __( 'Track revenue and performance insights from our modules. No personal data is collected. Disable this if you prefer not to track analytics.', 'merchant' ),
93 + 'default' => true,
94 + ),
95 + array(
96 + 'id' => 'usage_statistics_tracking',
97 + 'type' => 'switcher',
98 + 'title' => __( 'Enable modules usage tracking', 'merchant' ),
99 + 'desc' => __( 'Track which modules are used on your site. This helps us improve our products and services. No personal data is collected.', 'merchant' ),
100 + 'default' => false,
101 + ),
102 + ),
103 + ) );
104 +
105 + Merchant_Admin_Options::create( array(
106 + 'module' => 'global-settings',
69 107 'title' => esc_html__( 'Merchant Operating Mode', 'merchant' ),
70 108 'fields' => array(
71 -
72 109 array(
73 110 'id' => 'operating_mode',
74 111 'type' => 'radio_alt',
75 112 'options' => array(
@@ -87,9 +124,8 @@
87 124 ),
88 125 ),
89 126 'default' => 'active',
90 127 ),
91 -
92 128 ),
93 129 ) );
94 130
95 131 Merchant_Admin_Options::create( array(
@@ -95,9 +131,8 @@
95 131 Merchant_Admin_Options::create( array(
96 132 'module' => 'global-settings',
97 133 'title' => esc_html__( 'Global Customizations', 'merchant' ),
98 134 'fields' => array(
99 -
100 135 array(
101 136 'type' => 'warning',
102 137 'content' => esc_html__( 'These settings allow you to add custom code, and are recommended for developers or advanced users only', 'merchant' ),
103 138 ),
@@ -107,27 +142,15 @@
107 142 ),
108 143
109 144 array(
110 145 'id' => 'custom_css',
111 - 'type' => 'textarea',
146 + 'type' => 'textarea_code',
112 147 'title' => esc_html__( 'Custom CSS', 'merchant' ),
113 148 ),
114 149
115 150 array(
116 - 'id' => 'custom_js_first',
117 - 'type' => 'textarea',
118 - 'title' => esc_html__( 'Custom JS First - runs at the beginning of Merchant', 'merchant' ),
119 - ),
120 -
121 - array(
122 - 'id' => 'custom_js_last',
123 - 'type' => 'textarea',
124 - 'title' => esc_html__( 'Custom JS Last - runs at the end of Merchant', 'merchant' ),
125 - ),
126 -
127 - array(
128 151 'id' => 'custom_js',
129 - 'type' => 'textarea',
152 + 'type' => 'textarea_code',
130 153 'title' => esc_html__( 'Custom JS', 'merchant' ),
131 154 ),
132 155
133 156 ),
@@ -138,14 +161,9 @@
138 161 *
139 162 * @since 1.0
140 163 */
141 164 do_action( 'merchant_admin_settings_after_options' );
142 -
143 165 ?>
144 -
145 166 </div>
146 -
147 167 </form>
148 -
149 168 </div>
150 -
151 169 </div>