32 lines
689 B
PHP
32 lines
689 B
PHP
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
|
|
|
/**
|
|
* Class NF_Fields_ProductQuantity
|
|
*/
|
|
class NF_Fields_Quantity extends NF_Fields_Number
|
|
{
|
|
protected $_name = 'quantity';
|
|
|
|
protected $_section = '';
|
|
|
|
protected $_icon = 'hashtag';
|
|
|
|
protected $_aliases = array();
|
|
|
|
protected $_type = 'quantity';
|
|
|
|
protected $_templates = 'number';
|
|
|
|
protected $_test_value = 'Lorem ipsum';
|
|
|
|
protected $_settings = array( 'product_assignment', 'number' );
|
|
|
|
protected $_settings_exclude = array( 'required', 'input_limit_set' );
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$this->_nicename = esc_html__( 'Quantity', 'ninja-forms' );
|
|
}
|
|
}
|