File: /var/www/sites/1250.info/wp-content/themes/savoy/woocommerce/global/quantity-input.php
<?php
/**
* Product quantity inputs
*
* This template can be overridden by copying it to yourtheme/woocommerce/global/quantity-input.php.
*
* HOWEVER, on occasion WooCommerce will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
* @version 4.0.0
NM: Modified */
defined( 'ABSPATH' ) || exit;
global $nm_theme_options;
// Quantity arrows class
$nm_quantity_arrows_class = ( $nm_theme_options['qty_arrows'] ) ? ' qty-show' : 'qty-hide';
if ( $max_value && $min_value === $max_value ) {
?>
<input type="hidden" id="<?php echo esc_attr( $input_id ); ?>" name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $min_value ); ?>" />
<?php
} else {
/* translators: %s: Quantity. */
//$label = ! empty( $args['product_name'] ) ? sprintf( esc_html__( '%s quantity', 'woocommerce' ), wp_strip_all_tags( $args['product_name'] ) ) : __( 'Quantity', 'woocommerce' );
?>
<div class="nm-quantity-wrap <?php echo esc_attr( $nm_quantity_arrows_class ); ?>">
<?php do_action( 'woocommerce_before_quantity_input_field' ); ?>
<label><?php esc_html_e( 'Quantity', 'woocommerce' ); ?></label>
<label class="nm-qty-label-abbrev"><?php esc_html_e( 'Qty', 'woocommerce' ); ?></label>
<div class="quantity">
<div class="nm-qty-minus nm-font nm-font-media-play flip"></div> <input
type="number"
id="<?php echo esc_attr( $input_id ); ?>"
class="<?php echo esc_attr( join( ' ', (array) $classes ) ); ?>"
step="<?php echo esc_attr( $step ); ?>"
min="<?php echo esc_attr( $min_value ); ?>"
max="<?php echo esc_attr( 0 < $max_value ? $max_value : '' ); ?>"
name="<?php echo esc_attr( $input_name ); ?>"
value="<?php echo esc_attr( $input_value ); ?>"
size="4"
placeholder="<?php echo esc_attr( $placeholder ); ?>"
pattern="[0-9]*" /> <div class="nm-qty-plus nm-font nm-font-media-play"></div>
</div>
<?php do_action( 'woocommerce_after_quantity_input_field' ); ?>
</div>
<?php
}