PluginProbe
Tiered Pricing Table for WooCommerce / 8.1.0
Tiered Pricing Table for WooCommerce v8.1.0
8.1.0 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 All 92 releases
← All changes | src/TierPricingTablePlugin.php +13 -6 6.5.0 → 8.1.0 View file →
@@ -30,19 +30,15 @@
30 30 use ServiceContainerTrait;
31 31
32 32 /**
33 33 * License instance
34 - *
35 - * @var Freemius
36 34 */
37 - private $licence;
35 + private Freemius $licence;
38 36
39 - const VERSION = '6.5.0';
37 + const VERSION = '8.1.0';
40 38
41 39 /**
42 40 * TierPricingTablePlugin constructor.
43 - *
44 - * @param string $mainFile
45 41 */
46 42 public function __construct( string $mainFile ) {
47 43
48 44 $this->licence = new Freemius( $mainFile );
@@ -242,8 +238,19 @@
242 238 * @return string
243 239 */
244 240 public static function getRulesSeparator(): string {
245 241 return apply_filters( 'tiered_pricing_table/rules_separator', ',' );
242 + }
243 +
244 + /**
245 + * Separator between the quantity and the price inside one rule ("20:100") in CSV export.
246 + * Spreadsheets read "20:100" as a time; a store that edits exports in Excel can switch to "=",
247 + * which the importer accepts next to ":" out of the box.
248 + */
249 + public static function getRuleSeparator(): string {
250 + $separator = (string) apply_filters( 'tiered_pricing_table/rule_separator', ':' );
251 +
252 + return '' !== $separator ? $separator : ':';
246 253 }
247 254
248 255 /**
249 256 * Get current user the prices calculate for. Sometimes current user can be different from the logged-in user.