PluginProbe
Tiered Pricing Table for WooCommerce / 2.0
Tiered Pricing Table for WooCommerce v2.0
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 +20 -36 2.1.12.0 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 what and where tiered pricing table will be displayed at product page',
52 52 'tier-pricing-table' ),
53 53 'id' => self::SETTINGS_PREFIX . 'options',
54 54 'type' => 'title',
55 55 ],
@@ -71,9 +71,8 @@
71 71 'table' => __( 'Table', 'tier-pricing-table' ),
72 72 ],
73 73 'desc' => __( 'Type of displaying', 'tier-pricing-table' ),
74 74 'desc_tip' => true,
75 - 'default' => 'table',
76 75 ],
77 76 [
78 77 'title' => __( 'Tooltip icon color', 'tier-pricing-table' ),
79 78 'id' => self::SETTINGS_PREFIX . 'tooltip_color',
@@ -132,10 +131,9 @@
132 131 'title' => __( 'Quantity text', 'tier-pricing-table' ),
133 132 'id' => self::SETTINGS_PREFIX . 'head_quantity_text',
134 133 'type' => 'text',
135 134 'default' => __( 'Quantity', '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' ),
135 + 'desc' => __( 'Name of quantity column', 'tier-pricing-table' ),
138 136 'desc_tip' => true,
139 137 ],
140 138 [
141 139 'title' => __( 'Price text', 'tier-pricing-table' ),
@@ -141,10 +139,9 @@
141 139 'title' => __( 'Price text', 'tier-pricing-table' ),
142 140 'id' => self::SETTINGS_PREFIX . 'head_price_text',
143 141 'type' => 'text',
144 142 'default' => __( 'Price', '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' ),
143 + 'desc' => __( 'Name of price column', 'tier-pricing-table' ),
147 144 'desc_tip' => true,
148 145 ],
149 146 [
150 147 'title' => __( 'CSS class', 'tier-pricing-table' ),
@@ -175,9 +172,9 @@
175 172 'desc_tip' => true,
176 173 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => 'yes' ]
177 174 ],
178 175 [
179 - 'title' => __( 'Show Tiered Price at product catalog (shop page)', 'tier-pricing-table' ),
176 + 'title' => __( 'Use Tiered Price at Catalog', 'tier-pricing-table' ),
180 177 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_catalog',
181 178 'type' => 'checkbox',
182 179 'default' => 'yes',
183 180 'desc' => __( 'Enable\Disable showing tiered price at catalog', 'tier-pricing-table' ),
@@ -184,18 +181,8 @@
184 181 'desc_tip' => true,
185 182 'custom_attributes' => [ 'data-tiered-pricing-premium-setting' => true ]
186 183 ],
187 184 [
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 - [
198 185 'title' => __( 'Display type as', 'tier-pricing-table' ),
199 186 'id' => self::SETTINGS_PREFIX . 'tiered_price_at_catalog_type',
200 187 'type' => 'select',
201 188 'options' => [
@@ -280,30 +267,27 @@
280 267 * @return array
281 268 */
282 269 public function getAll() {
283 270 return [
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',
271 + 'display' => $this->get( 'display', 'yes' ),
272 + 'position_hook' => $this->get( 'position_hook', 'woocommerce_after_add_to_cart_button' ),
273 + 'head_quantity_text' => $this->get( 'head_quantity_text',
288 274 __( 'Quantity', 'tier-pricing-table' ) ),
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' ),
275 + 'head_price_text' => $this->get( 'head_price_text', __( 'Price', 'tier-pricing-table' ) ),
276 + 'display_type' => $this->get( 'display_type', 'table' ),
277 + 'selected_quantity_color' => $this->get( 'selected_quantity_color', '#cc99c2' ),
278 + 'table_title' => $this->get( 'table_title', '' ),
279 + 'table_css_class' => $this->get( 'table_css_class', '#fff' ),
280 + 'tooltip_size' => $this->get( 'tooltip_size', 15 ),
281 + 'tooltip_border' => $this->get( 'tooltip_border', 'yes' ),
297 282
298 283 /* Premium */
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',
284 + 'show_discount_in_cart' => $this->get( 'show_discount_in_cart', 'yes' ),
285 + 'tiered_price_at_catalog' => $this->get( 'tiered_price_at_catalog', 'yes' ),
286 + 'tiered_price_at_catalog_type' => $this->get( 'tiered_price_at_catalog_type', 'yes' ),
287 + 'lowest_prefix' => $this->get( 'lowest_prefix', 'yes' ),
288 + 'show_discount_column' => $this->get( 'show_discount_column', 'yes' ),
289 + 'head_discount_text' => $this->get( 'head_discount_text',
306 290 __( 'Discount (%)', 'tier-pricing-table' ) ),
307 291 ];
308 292 }
309 293