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

Tiered Pricing Table for WooCommerce, version 8.0.2. 45 lines.

- Page: https://pluginprobe.com/plugins/tier-pricing-table/8.0.2/code/views/admin/components/minimum-order-quantity-form.php
- Raw: https://pluginprobe.com/plugins/tier-pricing-table/8.0.2/raw/views/admin/components/minimum-order-quantity-form.php
- Modified: 2026-07-31T07:44:26+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/8.0.2/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 blank for no restrictions', 'tier-pricing-table' );
	$title       = !tpt_fs()->can_use_premium_code() ? __( 'Available in premium version', '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"
			title="<?php echo esc_attr( $title ); ?>"
			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>

```
