PluginProbe
Tiered Pricing Table for WooCommerce / 8.0.2
Tiered Pricing Table for WooCommerce v8.0.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/Addons/CatalogPrices/CatalogPricesSubsection.php +15 -10 6.5.0 → 8.0.2 View file →
@@ -9,14 +9,14 @@
9 9
10 10 public function getTitle(): string {
11 11 add_filter( 'tiered_pricing_table/text_template_variables', array( $this, 'registerTemplateVariables' ) );
12 12
13 - return __( 'Catalog Price Format',
13 + return __( 'Shop & Categories Price Format',
14 14 'tier-pricing-table' );
15 15 }
16 16
17 17 public function getDescription(): string {
18 - return __( 'Manage how tiered pricing appears in catalogs, loops, and widgets.',
18 + return __( 'Manage how the main product price string is formatted in shop pages, categories, and widgets.',
19 19 'tier-pricing-table' );
20 20 }
21 21
22 22 public function getSlug(): string {
@@ -25,27 +25,27 @@
25 25
26 26 public function getSettings(): array {
27 27 return array(
28 28 array(
29 - 'title' => __( 'Enable tiered format', 'tier-pricing-table' ),
29 + 'title' => __( 'Override default price display', 'tier-pricing-table' ),
30 30 'id' => Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog',
31 31 'type' => TPTSwitchOption::FIELD_TYPE,
32 32 'default' => 'yes',
33 - 'desc' => __( 'Display the lowest tiered price or a price range instead of the standard product price.',
33 + 'desc' => __( 'Replace the standard WooCommerce price with a custom lowest price or price range.',
34 34 'tier-pricing-table' ),
35 35 'desc_tip' => true,
36 36 ),
37 37 array(
38 - 'title' => __( 'Enable for variable products', 'tier-pricing-table' ),
38 + 'title' => __( 'Apply to variable products', 'tier-pricing-table' ),
39 39 'id' => Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog_for_variable',
40 40 'type' => TPTSwitchOption::FIELD_TYPE,
41 41 'default' => 'no',
42 - 'desc' => __( 'Apply the tiered format to variable products, using the lowest and highest prices across all variations.',
42 + 'desc' => __( 'Calculate the lowest and highest prices across all variations and display them using your chosen format.',
43 43 'tier-pricing-table' ),
44 44 'desc_tip' => true,
45 45 ),
46 46 array(
47 - 'title' => __( 'Display type', 'tier-pricing-table' ),
47 + 'title' => __( 'Format style', 'tier-pricing-table' ),
48 48 'id' => Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog_type',
49 49 'type' => TPTDisplayType::FIELD_TYPE,
50 50 'options' => [
51 51 'lowest' => __( 'Show lowest price', 'tier-pricing-table' ),
@@ -51,11 +51,16 @@
51 51 'lowest' => __( 'Show lowest price', 'tier-pricing-table' ),
52 52 'range' => __( 'Show range (lowest to highest)', 'tier-pricing-table' ),
53 53 'custom' => __( 'Custom template', 'tier-pricing-table' ),
54 54 ],
55 + 'descriptions' => [
56 + /* translators: %s: example price */
57 + 'lowest' => sprintf( __( 'e.g. From %s', 'tier-pricing-table' ), wp_strip_all_tags( wc_price( 10 ) ) ),
58 + /* translators: 1: lowest example price, 2: highest example price */
59 + 'range' => sprintf( __( 'e.g. %1$s - %2$s', 'tier-pricing-table' ), wp_strip_all_tags( wc_price( 10 ) ), wp_strip_all_tags( wc_price( 18 ) ) ),
60 + 'custom' => __( 'Your own text built from the variables below', 'tier-pricing-table' ),
61 + ],
55 62 'default' => 'lowest',
56 - 'desc' => __( 'Choose whether to show only the lowest available price, the full price range, or a custom template.', 'tier-pricing-table' ),
57 - 'desc_tip' => true,
58 63 ),
59 64 array(
60 65 'title' => __( 'Custom template', 'tier-pricing-table' ),
61 66 'id' => Settings::SETTINGS_PREFIX . 'tiered_price_at_catalog_custom_template',
@@ -68,9 +73,9 @@
68 73 'tp_original_price',
69 74 ),
70 75 ),
71 76 array(
72 - 'title' => __( 'Lowest price prefix', 'tier-pricing-table' ),
77 + 'title' => __( 'Prefix for lowest price', 'tier-pricing-table' ),
73 78 'id' => Settings::SETTINGS_PREFIX . 'lowest_prefix',
74 79 'type' => 'text',
75 80 'default' => __( 'From', 'tier-pricing-table' ),
76 81 'desc' => __( 'Text displayed before the lowest price (e.g., <b>From $10.00</b>).',