PluginProbe
Tiered Pricing Table for WooCommerce / 6.5.0
Tiered Pricing Table for WooCommerce v6.5.0
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 / TaxSettings / GlobalRulesIntegration / TaxSettingsColumn.php

TaxSettingsColumn.php in Tiered Pricing Table for WooCommerce 6.5.0, at src/Addons/TaxSettings/GlobalRulesIntegration/TaxSettingsColumn.php

31 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace TierPricingTable\Addons\TaxSettings\GlobalRulesIntegration;
2
3 use TierPricingTable\Addons\GlobalTieredPricing\GlobalPricingRule;
4
5 class TaxSettingsColumn {
6
7 public function getName(): string {
8 return __( 'Tax settings', 'tier-pricing-table' );
9 }
10
11 public function render( GlobalPricingRule $rule ) {
12 $notSetLabel = __( 'N/A', 'tier-pricing-table' );
13
14 $taxStatus = $rule->getTaxStatus() ? $rule->getTaxStatus() : $notSetLabel;
15 $taxClass = $rule->getTaxClass() ? $rule->getTaxClass() : $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( 'Status:', 'tier-pricing-table' ); ?> <b><?php echo esc_html( $taxStatus ); ?></b>
22 </span>
23 <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;">
24 <?php esc_html_e( 'Class:', 'tier-pricing-table' ); ?> <b><?php echo esc_html( $taxClass ); ?></b>
25 </span>
26 </div>
27 </div>
28 <?php
29 }
30 }
31