PluginProbe
Tiered Pricing Table for WooCommerce / 6.1.0
Tiered Pricing Table for WooCommerce v6.1.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 / views / admin / components / minimum-order-quantity-form.php

minimum-order-quantity-form.php in Tiered Pricing Table for WooCommerce 6.1.0, at views/admin/components/minimum-order-quantity-form.php

43 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use TierPricingTable\Forms\Form;
4
5 if ( ! defined( 'WPINC' ) ) {
6 die;
7 }
8
9 /**
10 * Available variables
11 *
12 * @var string $role
13 * @var string $loop
14 * @var string $minimum_order_quantity
15 */
16
17 $placeholder = __( 'Leave empty, so don\'t add any restrictions', 'tier-pricing-table' );
18 ?>
19
20 <p class="form-field tpt_minimum_order_quantity <?php echo esc_attr( ! is_null( $loop ) ? 'form-row' : '' ); ?>">
21 <label for="<?php echo esc_attr( Form::getFieldName( 'minimum_order_quantity', $role, $loop ) ); ?>">
22 <?php esc_html_e( 'Minimum order quantity', 'tier-pricing-table' ); ?>
23 </label>
24
25 <?php
26 echo wp_kses_post( wc_help_tip( __( 'A minimum amount of a product a customer must order to fulfill the order.',
27 'tier-pricing-table' ) ) );
28 ?>
29
30 <input <?php echo ! tpt_fs()->can_use_premium_code() ? 'disabled' : ''; ?>
31 type="number"
32 class="short"
33 min="1"
34 step="1"
35 style="<?php echo esc_attr( tpt_fs()->can_use_premium_code() ? '' : 'cursor: not-allowed' ); ?>"
36 placeholder="<?php echo esc_attr( $placeholder ); ?>"
37 name="<?php echo esc_attr( Form::getFieldName( 'minimum_order_quantity', $role, $loop ) ); ?>"
38 id="<?php echo esc_attr( Form::getFieldName( 'minimum_order_quantity', $role, $loop ) ); ?>"
39 value="<?php echo esc_attr( $minimum_order_quantity ); ?>"
40 >
41
42 </p>
43