PluginProbe
Tiered Pricing Table for WooCommerce / 6.1.0
Tiered Pricing Table for WooCommerce v6.1.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 / GlobalTieredPricing / CPT / Form / Tabs / Quantity.php

Quantity.php in Tiered Pricing Table for WooCommerce 6.1.0, at src/Addons/GlobalTieredPricing/CPT/Form/Tabs/Quantity.php

41 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\GlobalTieredPricing\CPT\Form\Tabs;
2
3 use TierPricingTable\Addons\GlobalTieredPricing\CPT\Form\FormTab;
4 use TierPricingTable\Addons\GlobalTieredPricing\GlobalPricingRule;
5 use TierPricingTable\Forms\MinimumOrderQuantityForm;
6
7 class Quantity extends FormTab {
8
9 public function getId(): string {
10 return 'quantity';
11 }
12
13 public function getTitle(): string {
14 return __( 'Quantity limits', 'tier-pricing-table' );
15 }
16
17 public function getDescription(): string {
18 return __( 'Specify the minimum, maximum, and quantity step for products.', 'tier-pricing-table' );
19 }
20
21 public function render( GlobalPricingRule $pricingRule ) {
22
23 $this->renderSectionTitle( __( 'Quantity Limits', 'tier-pricing-table' ), array(
24 'only_for_premium' => true,
25 ) );
26
27 $this->renderHint( __( 'Quantity rules are applied to each product individually.', 'tier-pricing-table' ) );
28
29 MinimumOrderQuantityForm::render( null, null, $pricingRule->getMinimum() );
30
31 do_action( 'tiered_pricing_table/global_pricing/after_minimum_order_quantity_field', $pricingRule->getId(),
32 $pricingRule );
33 ?>
34 <?php
35 }
36
37 public function getIcon(): string {
38 return 'dashicons-database';
39 }
40 }
41