| 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 |
|