← All changes
|
src/Addons/CatalogPrices/CatalogPricesSubsection.php
+7
-2
7.1.5
→
8.0.2
View file →
| @@ -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', |