CatalogVisibility.php
1 month ago
CurrencyPosition.php
3 days ago
DefaultCustomerAddress.php
2 months ago
DimensionUnit.php
3 days ago
FeaturePluginCompatibility.php
1 month ago
OrderInternalStatus.php
1 month ago
OrderItemType.php
2 months ago
OrderStatus.php
1 month ago
PaymentGatewayFeature.php
7 months ago
ProductStatus.php
1 month ago
ProductStockStatus.php
1 month ago
ProductTaxStatus.php
1 year ago
ProductType.php
1 month ago
TaxBasedOn.php
2 months ago
TaxDisplayMode.php
3 days ago
WeightUnit.php
3 days ago
CurrencyPosition.php
42 lines
| 1 | <?php |
| 2 | |
| 3 | declare( strict_types = 1 ); |
| 4 | |
| 5 | namespace Automattic\WooCommerce\Enums; |
| 6 | |
| 7 | /** |
| 8 | * Enum class for the possible values of the `woocommerce_currency_pos` option, |
| 9 | * which determines where the currency symbol appears relative to the price. |
| 10 | * |
| 11 | * @since 11.0.0 |
| 12 | */ |
| 13 | final class CurrencyPosition { |
| 14 | /** |
| 15 | * Display the currency symbol to the left of the price. |
| 16 | * |
| 17 | * @var string |
| 18 | */ |
| 19 | public const LEFT = 'left'; |
| 20 | |
| 21 | /** |
| 22 | * Display the currency symbol to the right of the price. |
| 23 | * |
| 24 | * @var string |
| 25 | */ |
| 26 | public const RIGHT = 'right'; |
| 27 | |
| 28 | /** |
| 29 | * Display the currency symbol to the left of the price, separated by a space. |
| 30 | * |
| 31 | * @var string |
| 32 | */ |
| 33 | public const LEFT_SPACE = 'left_space'; |
| 34 | |
| 35 | /** |
| 36 | * Display the currency symbol to the right of the price, separated by a space. |
| 37 | * |
| 38 | * @var string |
| 39 | */ |
| 40 | public const RIGHT_SPACE = 'right_space'; |
| 41 | } |
| 42 |