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
tier-pricing-table / src / Addons / GlobalTieredPricing / CPT / Columns / AppliedQuantityRules.php

AppliedQuantityRules.php in Tiered Pricing Table for WooCommerce 8.0.2, at src/Addons/GlobalTieredPricing/CPT/Columns/AppliedQuantityRules.php

28 lines 915 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 <div style="margin-bottom: 12px;">
19 <div style="display: flex; flex-wrap: wrap; gap: 4px;">
20 <span style="display: inline-block; padding: 2px 8px; background: #f0f0f1; border-radius: 3px; font-size: 12px; color: #3c434a; border: 1px solid #dcdcdc; line-height: 1.4;">
21 <?php esc_html_e( 'Minimum:', 'tier-pricing-table' ); ?> <b><?php echo esc_html( $minimum ? esc_html( $minimum ) : $notSetLabel ); ?></b>
22 </span>
23 </div>
24 </div>
25 <?php
26 }
27 }
28