2, 'step' => 1, ); $groupOfFieldAttributes = array( 'min' => 2, 'step' => 1, ); if ( ! tpt_fs()->can_use_premium_code() ) { $maximumFieldAttributes['disabled'] = true; $groupOfFieldAttributes['disabled'] = true; } ?>
$maximumFieldName, 'name' => $maximumFieldName, 'type' => 'number', 'custom_attributes' => $maximumFieldAttributes, 'style' => tpt_fs()->can_use_premium_code() ? '' : 'cursor: not-allowed;', 'value' => $maximum, 'placeholder' => __( 'Leave empty, so don\'t add any restrictions', 'tier-pricing-table' ), 'label' => __( 'Maximum order quantity', 'tier-pricing-table' ), 'description' => __( 'The maximum quantity of the product a customer can order in a single transaction.', 'tier-pricing-table' ), 'desc_tip' => true, ) ); woocommerce_wp_text_input( array( 'id' => $groupOfFieldName, 'name' => $groupOfFieldName, 'type' => 'number', 'custom_attributes' => $groupOfFieldAttributes, 'style' => tpt_fs()->can_use_premium_code() ? '' : 'cursor: not-allowed;', 'value' => $groupOf, 'label' => __( 'Quantity step', 'tier-pricing-table' ), 'placeholder' => __( 'Leave empty, so don\'t add any restrictions', 'tier-pricing-table' ), 'description' => __( 'Requires the product to be purchased in multiples of X.', 'tier-pricing-table' ), 'desc_tip' => true, ) ); ?>