PluginProbe
Tiered Pricing Table for WooCommerce / 2.2.2
Tiered Pricing Table for WooCommerce v2.2.2
7.1.7 7.1.5 7.1.4 7.1.1 6.5.0 6.4.0 6.1.0 trunk 1.0 1.1 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 All 90 releases
← All changes | src/Settings/Settings.php +47 -11 2.1.22.2.2 View file →
@@ -47,9 +47,9 @@
47 47 public function initSettings() {
48 48 $this->settings = array(
49 49 [
50 50 'title' => __( 'Tiered price table settings', 'tier-pricing-table' ),
51 - 'desc' => __( 'This controls how tiered pricing table will be displayed at product page',
51 + 'desc' => __( 'This controls how tiered pricing table will be displayed in your store',
52 52 'tier-pricing-table' ),
53 53 'id' => self::SETTINGS_PREFIX . 'options',
54 54 'type' => 'title',
55 55 ],
@@ -111,8 +111,10 @@
111 111 'type' => 'select',
112 112 'options' => [
113 113 'woocommerce_before_add_to_cart_button' => __( 'Above buy button', 'tier-pricing-table' ),
114 114 'woocommerce_after_add_to_cart_button' => __( 'Below buy button', 'tier-pricing-table' ),
115 + 'woocommerce_before_add_to_cart_form' => __( 'Above add to cart form', 'tier-pricing-table' ),
116 + 'woocommerce_after_add_to_cart_form' => __( 'Below add to cart form', 'tier-pricing-table' ),
115 117 'woocommerce_single_product_summary' => __( 'Above product title', 'tier-pricing-table' ),
116 118 'woocommerce_before_single_product_summary' => __( 'Before product summary', 'tier-pricing-table' ),
117 119 'woocommerce_after_single_product_summary' => __( 'After product summary', 'tier-pricing-table' ),
118 120 ],
@@ -150,9 +152,9 @@
150 152 'title' => __( 'CSS class', 'tier-pricing-table' ),
151 153 'id' => self::SETTINGS_PREFIX . 'table_css_class',
152 154 'type' => 'text',
153 155 'default' => '',
154 - 'desc' => __( 'You can add your own css styles for this class. The class will be added to the table',
156 + 'desc' => __( 'Add your own CSS styles for the class. The class would be added to the table.',
155 157 'tier-pricing-table' ),
156 158 'desc_tip' => true,
157 159 ],
158 160 [
@@ -158,8 +160,9 @@
158 160 [
159 161 'type' => 'sectionend',
160 162 'id' => self::SETTINGS_PREFIX . 'options'
161 163 ],
164 +
162 165 // Premium Here
163 166 [
164 167 'title' => __( 'Advanced settings', 'tier-pricing-table' ),
165 168 'id' => self::SETTINGS_PREFIX . 'premium_options',
@@ -166,9 +169,9 @@
166 169 'type' => 'title',
167 170 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
168 171 ],
169 172 [
170 - 'title' => __( 'Show tiered price in cart as discount', 'tier-pricing-table' ),
173 + 'title' => __( 'Show Tiered Price in Cart as the Discount', 'tier-pricing-table' ),
171 174 'id' => self::SETTINGS_PREFIX . 'show_discount_in_cart',
172 175 'desc' => __( 'Example:', 'tier-pricing-table' ) . ' <del>10$</del> 8$',
173 176 'type' => 'checkbox',
174 177 'default' => 'yes',
@@ -175,28 +178,41 @@
175 178 'desc_tip' => true,
176 179 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => 'yes' ]
177 180 ],
178 181 [
179 - 'title' => __( 'Show Tiered Price at product catalog (shop page)', 'tier-pricing-table' ),
182 + 'title' => __( 'Enable price formatting on the catalog page, widgets, etc',
183 + 'tier-pricing-table' ),
180 184 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_catalog',
181 185 'type' => 'checkbox',
182 186 'default' => 'yes',
183 - 'desc' => __( 'Enable\Disable showing tiered price at catalog', 'tier-pricing-table' ),
187 + 'desc' => __( 'Change price formatting on the whole site (show range or minimal price)',
188 + 'tier-pricing-table' ),
184 189 'desc_tip' => true,
185 190 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
186 191 ],
187 192 [
188 - 'title' => __( 'Use for variable product', 'tier-pricing-table' ),
193 + 'title' => __( 'Enable price formatting on product page ', 'tier-pricing-table' ),
194 + 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_product_page',
195 + 'type' => 'checkbox',
196 + 'default' => 'no',
197 + 'desc' => __( 'Change price for product at product page (show range or minimal price)',
198 + 'tier-pricing-table' ),
199 + 'desc_tip' => true,
200 + 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
201 + ],
202 + [
203 + 'title' => __( 'Enable catalog, widget price formatting for variable products',
204 + 'tier-pricing-table' ),
189 205 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_catalog_for_variable',
190 206 'type' => 'checkbox',
191 207 'default' => 'yes',
192 - 'desc' => __( 'Enable\Disable showing tiered price at catalog for variable product. Use lowest and highest prices from all variations',
208 + 'desc' => __( 'Show tiered price at the catalog for variable products. Uses the lowest and the highest prices from all variations',
193 209 'tier-pricing-table' ),
194 210 'desc_tip' => true,
195 211 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
196 212 ],
197 213 [
198 - 'title' => __( 'Display type as', 'tier-pricing-table' ),
214 + 'title' => __( 'Display Tiered Price as', 'tier-pricing-table' ),
199 215 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_catalog_type',
200 216 'type' => 'select',
201 217 'options' => [
202 218 'range' => __( 'Range (from lowest to highest)', 'tier-pricing-table' ),
@@ -201,9 +217,9 @@
201 217 'options' => [
202 218 'range' => __( 'Range (from lowest to highest)', 'tier-pricing-table' ),
203 219 'lowest' => __( 'Lowest price', 'tier-pricing-table' ),
204 220 ],
205 - 'desc' => __( 'How to display price at catalog', 'tier-pricing-table' ),
221 + 'desc' => __( 'How to Display Tiered Price at The Catalog', 'tier-pricing-table' ),
206 222 'desc_tip' => true,
207 223 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
208 224 ],
209 225 [
@@ -210,9 +226,9 @@
210 226 'title' => __( 'Lowest price prefix', 'tier-pricing-table' ),
211 227 'id' => self::SETTINGS_PREFIX . 'lowest_prefix',
212 228 'type' => 'text',
213 229 'default' => __( 'From', 'tier-pricing-table' ),
214 - 'desc' => __( 'Prefix before lowest product price at catalog. Example: <b>From 10$</b>',
230 + 'desc' => __( 'Prefix Before Lowest Tiered Product Price at the Catalog. Example: <b>From 10$</b>',
215 231 'tier-pricing-table' ),
216 232 'desc_tip' => true,
217 233 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
218 234 ],
@@ -223,9 +239,9 @@
223 239 'default' => 'yes',
224 240 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
225 241 ],
226 242 [
227 - 'title' => __( 'Discount text', 'tier-pricing-table' ),
243 + 'title' => __( 'Discount column text', 'tier-pricing-table' ),
228 244 'id' => self::SETTINGS_PREFIX . 'head_discount_text',
229 245 'type' => 'text',
230 246 'default' => __( 'Discount (%)', 'tier-pricing-table' ),
231 247 'desc' => __( 'Name of discount column', 'tier-pricing-table' ),
@@ -232,8 +248,26 @@
232 248 'desc_tip' => true,
233 249 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
234 250 ],
235 251 [
252 + 'title' => __( 'Set tiered price on click', 'tier-pricing-table' ),
253 + 'id' => self::SETTINGS_PREFIX . 'clickable_table_rows',
254 + 'type' => 'checkbox',
255 + 'default' => 'no',
256 + 'desc' => __( 'Change product quantity on click at table pricing row',
257 + 'tier-pricing-table' ),
258 + 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
259 + ],
260 + [
261 + 'title' => __( 'Show total price', 'tier-pricing-table' ),
262 + 'id' => self::SETTINGS_PREFIX . 'show_total_price',
263 + 'type' => 'checkbox',
264 + 'default' => 'no',
265 + 'desc' => __( 'Calculate and show total price at product page',
266 + 'tier-pricing-table' ),
267 + 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
268 + ],
269 + [
236 270 'type' => 'sectionend',
237 271 'id' => self::SETTINGS_PREFIX . 'premium_options'
238 272 ],
239 273 );
@@ -301,8 +335,10 @@
301 335 'tiered_price_at_catalog_for_variable' => $this->get( 'tiered_price_at_catalog_for_variable', 'yes' ),
302 336 'tiered_price_at_catalog_type' => $this->get( 'tiered_price_at_catalog_type', 'yes' ),
303 337 'lowest_prefix' => $this->get( 'lowest_prefix', 'yes' ),
304 338 'show_discount_column' => $this->get( 'show_discount_column', 'yes' ),
339 + 'clickable_table_rows' => $this->get( 'clickable_table_rows', 'no' ),
340 + 'show_total_price' => $this->get( 'show_total_price', 'no' ),
305 341 'head_discount_text' => $this->get( 'head_discount_text',
306 342 __( 'Discount (%)', 'tier-pricing-table' ) ),
307 343 ];
308 344 }