PluginProbe
Tiered Pricing Table for WooCommerce / 2.1.2
Tiered Pricing Table for WooCommerce v2.1.2
8.0.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 All 91 releases
← All changes | src/Settings/Settings.php +34 -19 2.1 → 2.1.2 View file →
@@ -132,9 +132,10 @@
132 132 'title' => __( 'Quantity text', 'tier-pricing-table' ),
133 133 'id' => self::SETTINGS_PREFIX . 'head_quantity_text',
134 134 'type' => 'text',
135 135 'default' => __( 'Quantity', 'tier-pricing-table' ),
136 - 'desc' => __( 'Name of quantity column. Leave Price text and Quantity text blank to do not show table head', 'tier-pricing-table' ),
136 + 'desc' => __( 'Name of quantity column. Leave Price text and Quantity text blank to do not show table head',
137 + 'tier-pricing-table' ),
137 138 'desc_tip' => true,
138 139 ],
139 140 [
140 141 'title' => __( 'Price text', 'tier-pricing-table' ),
@@ -140,9 +141,10 @@
140 141 'title' => __( 'Price text', 'tier-pricing-table' ),
141 142 'id' => self::SETTINGS_PREFIX . 'head_price_text',
142 143 'type' => 'text',
143 144 'default' => __( 'Price', 'tier-pricing-table' ),
144 - 'desc' => __( 'Name of price column. Leave Price text and Quantity text blank to do not show table head', 'tier-pricing-table' ),
145 + 'desc' => __( 'Name of price column. Leave Price text and Quantity text blank to do not show table head',
146 + 'tier-pricing-table' ),
145 147 'desc_tip' => true,
146 148 ],
147 149 [
148 150 'title' => __( 'CSS class', 'tier-pricing-table' ),
@@ -173,9 +175,9 @@
173 175 'desc_tip' => true,
174 176 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => 'yes' ]
175 177 ],
176 178 [
177 - 'title' => __( 'Use Tiered Price at Catalog', 'tier-pricing-table' ),
179 + 'title' => __( 'Show Tiered Price at product catalog (shop page)', 'tier-pricing-table' ),
178 180 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_catalog',
179 181 'type' => 'checkbox',
180 182 'default' => 'yes',
181 183 'desc' => __( 'Enable\Disable showing tiered price at catalog', 'tier-pricing-table' ),
@@ -182,8 +184,18 @@
182 184 'desc_tip' => true,
183 185 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
184 186 ],
185 187 [
188 + 'title' => __( 'Use for variable product', 'tier-pricing-table' ),
189 + 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_catalog_for_variable',
190 + 'type' => 'checkbox',
191 + 'default' => 'yes',
192 + 'desc' => __( 'Enable\Disable showing tiered price at catalog for variable product. Use lowest and highest prices from all variations',
193 + 'tier-pricing-table' ),
194 + 'desc_tip' => true,
195 + 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
196 + ],
197 + [
186 198 'title' => __( 'Display type as', 'tier-pricing-table' ),
187 199 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_catalog_type',
188 200 'type' => 'select',
189 201 'options' => [
@@ -268,27 +280,30 @@
268 280 * @return array
269 281 */
270 282 public function getAll() {
271 283 return [
272 - 'display' => $this->get( 'display', 'yes' ),
273 - 'position_hook' => $this->get( 'position_hook', 'woocommerce_after_add_to_cart_button' ),
274 - 'head_quantity_text' => $this->get( 'head_quantity_text',
284 + 'display' => $this->get( 'display', 'yes' ),
285 + 'position_hook' => $this->get( 'position_hook',
286 + 'woocommerce_after_add_to_cart_button' ),
287 + 'head_quantity_text' => $this->get( 'head_quantity_text',
275 288 __( 'Quantity', 'tier-pricing-table' ) ),
276 - 'head_price_text' => $this->get( 'head_price_text', __( 'Price', 'tier-pricing-table' ) ),
277 - 'display_type' => $this->get( 'display_type', 'table' ),
278 - 'selected_quantity_color' => $this->get( 'selected_quantity_color', '#cc99c2' ),
279 - 'table_title' => $this->get( 'table_title', '' ),
280 - 'table_css_class' => $this->get( 'table_css_class', '#fff' ),
281 - 'tooltip_size' => $this->get( 'tooltip_size', 15 ),
282 - 'tooltip_border' => $this->get( 'tooltip_border', 'yes' ),
289 + 'head_price_text' => $this->get( 'head_price_text',
290 + __( 'Price', 'tier-pricing-table' ) ),
291 + 'display_type' => $this->get( 'display_type', 'table' ),
292 + 'selected_quantity_color' => $this->get( 'selected_quantity_color', '#cc99c2' ),
293 + 'table_title' => $this->get( 'table_title', '' ),
294 + 'table_css_class' => $this->get( 'table_css_class', '#fff' ),
295 + 'tooltip_size' => $this->get( 'tooltip_size', 15 ),
296 + 'tooltip_border' => $this->get( 'tooltip_border', 'yes' ),
283 297
284 298 /* Premium */
285 - 'show_discount_in_cart' => $this->get( 'show_discount_in_cart', 'yes' ),
286 - 'tiered_price_at_catalog' => $this->get( 'tiered_price_at_catalog', 'yes' ),
287 - 'tiered_price_at_catalog_type' => $this->get( 'tiered_price_at_catalog_type', 'yes' ),
288 - 'lowest_prefix' => $this->get( 'lowest_prefix', 'yes' ),
289 - 'show_discount_column' => $this->get( 'show_discount_column', 'yes' ),
290 - 'head_discount_text' => $this->get( 'head_discount_text',
299 + 'show_discount_in_cart' => $this->get( 'show_discount_in_cart', 'yes' ),
300 + 'tiered_price_at_catalog' => $this->get( 'tiered_price_at_catalog', 'yes' ),
301 + 'tiered_price_at_catalog_for_variable' => $this->get( 'tiered_price_at_catalog_for_variable', 'yes' ),
302 + 'tiered_price_at_catalog_type' => $this->get( 'tiered_price_at_catalog_type', 'yes' ),
303 + 'lowest_prefix' => $this->get( 'lowest_prefix', 'yes' ),
304 + 'show_discount_column' => $this->get( 'show_discount_column', 'yes' ),
305 + 'head_discount_text' => $this->get( 'head_discount_text',
291 306 __( 'Discount (%)', 'tier-pricing-table' ) ),
292 307 ];
293 308 }
294 309