| 1 |
<?php namespace TierPricingTable\Addons\GlobalTieredPricing\CPT\Columns; |
| 2 |
|
| 3 |
use TierPricingTable\Addons\GlobalTieredPricing\GlobalPricingRule; |
| 4 |
|
| 5 |
class AppliedQuantityRules { |
| 6 |
|
| 7 |
public function getName(): string { |
| 8 |
return __( 'Quantity limits', 'tier-pricing-table' ); |
| 9 |
} |
| 10 |
|
| 11 |
public function render( GlobalPricingRule $rule ) { |
| 12 |
|
| 13 |
$notSetLabel = __( 'N/A', 'tier-pricing-table' ); |
| 14 |
|
| 15 |
$minimum = $rule->getMinimum() ? $rule->getMinimum() : $notSetLabel; |
| 16 |
|
| 17 |
?> |
| 18 |
<p> |
| 19 |
<?php esc_html_e( 'Minimum', 'tier-pricing-table' ); ?>: |
| 20 |
<b><?php echo esc_html( $minimum ? esc_html( $minimum ) : $notSetLabel ); ?></b> |
| 21 |
</p> |
| 22 |
<?php |
| 23 |
} |
| 24 |
} |
| 25 |
|