# tier-pricing-table/6.1.0/views/admin/components/minimum-order-quantity-form.php

Tiered Pricing Table for WooCommerce, version 6.1.0. 43 lines.

- Page: https://pluginprobe.com/plugins/tier-pricing-table/6.1.0/code/views/admin/components/minimum-order-quantity-form.php
- Raw: https://pluginprobe.com/plugins/tier-pricing-table/6.1.0/raw/views/admin/components/minimum-order-quantity-form.php
- Modified: 2026-05-18T09:27:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tier-pricing-table/6.1.0/code/views/admin/components/minimum-order-quantity-form.php#L10-L20`.

```php
<?php
	
	use TierPricingTable\Forms\Form;
	
	if ( ! defined( 'WPINC' ) ) {
		die;
	}
	
	/**
	 * Available variables
	 *
	 * @var string $role
	 * @var string $loop
	 * @var string $minimum_order_quantity
	 */
	
	$placeholder = __( 'Leave empty, so don\'t add any restrictions', 'tier-pricing-table' );
?>

<p class="form-field tpt_minimum_order_quantity <?php echo esc_attr( ! is_null( $loop ) ? 'form-row' : '' ); ?>">
	<label for="<?php echo esc_attr( Form::getFieldName( 'minimum_order_quantity', $role, $loop ) ); ?>">
		<?php esc_html_e( 'Minimum order quantity', 'tier-pricing-table' ); ?>
	</label>
	
	<?php
		echo wp_kses_post( wc_help_tip( __( 'A minimum amount of a product a customer must order to fulfill the order.',
			'tier-pricing-table' ) ) );
	?>

	<input <?php echo ! tpt_fs()->can_use_premium_code() ? 'disabled' : ''; ?>
			type="number"
			class="short"
			min="1"
			step="1"
			style="<?php echo esc_attr( tpt_fs()->can_use_premium_code() ? '' : 'cursor: not-allowed' ); ?>"
			placeholder="<?php echo esc_attr( $placeholder ); ?>"
			name="<?php echo esc_attr( Form::getFieldName( 'minimum_order_quantity', $role, $loop ) ); ?>"
			id="<?php echo esc_attr( Form::getFieldName( 'minimum_order_quantity', $role, $loop ) ); ?>"
			value="<?php echo esc_attr( $minimum_order_quantity ); ?>"
	>

</p>

```
