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 / GlobalTieredPricing / CPT / Form / Tabs / Quantity.php

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

40 lines 1.1 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 __( 'Set minimum, maximum, and quantity step limits', '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 'description' => __('Applies to each product individually.', 'tier-pricing-table')
26 ) );
27
28 MinimumOrderQuantityForm::render( null, null, $pricingRule->getMinimum() );
29
30 do_action( 'tiered_pricing_table/global_pricing/after_minimum_order_quantity_field', $pricingRule->getId(),
31 $pricingRule );
32 ?>
33 <?php
34 }
35
36 public function getIcon(): string {
37 return 'dashicons-database';
38 }
39 }
40