PluginProbe
Tiered Pricing Table for WooCommerce / trunk
Tiered Pricing Table for WooCommerce vtrunk
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 2.3.4 All 90 releases
tier-pricing-table / src / Addons / AdvancedQuantityOptions / RoleBasedOptions.php

RoleBasedOptions.php in Tiered Pricing Table for WooCommerce trunk, at src/Addons/AdvancedQuantityOptions/RoleBasedOptions.php

26 lines 592 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace TierPricingTable\Addons\AdvancedQuantityOptions;
4
5 class RoleBasedOptions {
6 /**
7 * Form
8 *
9 * @var AdvancedQuantityOptionsForm
10 */
11 protected $form;
12
13 public function __construct( AdvancedQuantityOptionsForm $form ) {
14 $this->form = $form;
15 add_action(
16 'tiered_pricing_table/admin/role_based_rules/after_minimum_order_quantity_field',
17 function ( $productId, $role, $loop = null ) {
18 $this->form->render( $productId, $loop, $role );
19 },
20 10,
21 3
22 );
23 }
24
25 }
26