/** * @package J2Store * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org * @license GNU GPL v3 or later */ // No direct access defined('_JEXEC') or die; if (J2Store::isPro() == 1) { ?> <div class="j2store-product-general"> <div class="control-group form-inline"> <?php echo J2Html::label(JText::_('J2STORE_PRODUCT_MANAGE_STOCK'), 'manage_stock', array('class' => 'control-label')); ?> <?php echo J2Html::radioBooleanList($this->form_prefix . '[manage_stock]', $this->item->manage_stock, array('hide_label' => true)); ?> </div> <div class="control-group"> <?php echo J2Html::label(JText::_('J2STORE_PRODUCT_QUANTITY'), 'quantity', array('class' => 'control-label')); //this gets saved in the productquantities table with the variant_id as the FK ?> <?php echo J2Html::hidden($this->form_prefix . '[quantity][j2store_productquantity_id]', $this->item->j2store_productquantity_id, array('class' => 'input ')); ?> <?php echo J2Html::text($this->form_prefix . '[quantity][quantity]', $this->item->quantity, array('class' => 'input ')); ?> </div>