/**
 * @package J2Store
 * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org
 * @license GNU GPL v3 or later
 */
// No direct access
defined('_JEXEC') or die;
?>

<div class="j2store-product-general">		
	<div class="control-group form-inline">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_VISIBILITY'), 'visibility', array('class' => 'control-label'));
?>
		<?php 
echo J2Html::radio($this->form_prefix . '[visibility]', $this->item->visibility);
?>
	</div>

	<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_MANUFACTURER'), 'manufacturer', array('class' => 'control-label'));
?>
		<?php 
echo $this->manufacturers;
?>
	</div>

	<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_VENDOR'), 'vendor', array('class' => 'control-label'));
 * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org
 * @license GNU GPL v3 or later
 */
// No direct access
defined('_JEXEC') or die;
?>

<div class="j2store-product-shipping">

	<div class="control-group form-inline">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_ENABLE_SHIPPING'), 'shipping', array('class' => 'control-label'));
?>

		<?php 
echo J2Html::radio($this->form_prefix . '[shipping]', $this->item->shipping, array('class' => 'controls'));
?>
	</div>
		<div class="control-group form-inline">
			<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_DIMENSIONS'), 'dimensions', array('class' => 'control-label'));
?>
			<?php 
echo J2Html::text($this->form_prefix . '[length]', $this->item->length, array('class' => 'input-mini'));
?>
			<?php 
echo J2Html::text($this->form_prefix . '[width]', $this->item->width, array('class' => 'input-mini'));
?>
			<?php 
echo J2Html::text($this->form_prefix . '[height]', $this->item->height, array('class' => 'input-mini'));
?>
    echo isset($this->item->use_store_config_notify_qty) && $this->item->use_store_config_notify_qty ? 'checked' : '';
    ?>
				        />
				   <?php 
    echo JText::_('J2STORE_PRODUCT_USE_STORE_CONFIGURATION');
    ?>
				 </label>
			</div>
		</div>

	<div class="control-group form-inline">
		<?php 
    echo J2Html::label(JText::_('J2STORE_PRODUCT_QUANTITY_RESTRICTION'), 'quantity_restriction', array('class' => 'control-label'));
    ?>
		<?php 
    echo J2Html::radio($this->form_prefix . '[quantity_restriction]', $this->item->quantity_restriction, array('class' => 'controls'));
    ?>
	</div>

	<div class="control-group form-inline">
		<?php 
    echo J2Html::label(JText::_('J2STORE_PRODUCT_MAX_SALE_QUANTITY'), 'max_sale_qty', array('class' => 'control-label'));
    ?>
		<?php 
    $attribs = isset($this->item->use_store_config_max_sale_qty) && $this->item->use_store_config_max_sale_qty ? array('id' => 'max_sale_qty', 'disabled' => 'disabled') : array('id' => 'max_sale_qty');
    echo J2Html::text($this->form_prefix . '[max_sale_qty]', $this->item->max_sale_qty, $attribs);
    ?>
		<div class="qty_restriction">
			<label>
			<input id="store_config_max_sale_qty" type="checkbox" value="<?php 
    echo $this->item->use_store_config_max_sale_qty;
Пример #4
0
?>
">
			<div class="panel panel-default">
				<div class="panel-heading">
                     <h3 class="panel-title"><?php 
echo JText::_('J2STORE_PRODUCT_INFORMATION');
?>
</h3>
                 </div>
			<div class="panel-body">
				<div class="control-group form-group form-inline" id="j2store-product-enable">
					<?php 
echo J2Html::label(JText::_('J2STORE_TREAT_AS_PRODUCT'), 'enabled', array('class' => 'control-label'));
?>
					<?php 
echo J2Html::radio($this->form_prefix . '[enabled]', $this->item->enabled, array('id' => 'j2store-product-enabled-radio-group', 'class' => 'radio'));
?>
				</div>
					<div class="control-group form-group" id="j2store-product-type">
						<?php 
if (!empty($this->item->product_type)) {
    ?>
							<?php 
    echo J2Html::label(JText::_('J2STORE_PRODUCT_TYPE'), 'product_type', array('class' => 'control-label'));
    ?>
							<span class="label label-success"><?php 
    echo JText::_('J2STORE_PRODUCT_TYPE_' . JString::strtoupper($this->item->product_type));
    ?>
</label>
							<?php 
    echo J2Html::hidden($this->form_prefix . '[product_type]', $this->item->product_type);
Пример #5
0
    echo isset($this->variant->use_store_config_notify_qty) && $this->variant->use_store_config_notify_qty ? 'checked' : '';
    ?>
					/>
					<?php 
    echo JText::_('J2STORE_PRODUCT_USE_STORE_CONFIGURATION');
    ?>
			</label>
		</div>
	</div>

	<div class="control-group form-inline">
				<?php 
    echo J2Html::label(JText::_('J2STORE_PRODUCT_QUANTITY_RESTRICTION'), 'quantity_restriction', array('class' => 'control-label'));
    ?>
				<?php 
    echo J2Html::radio($this->form_prefix . '[quantity_restriction]', $this->variant->quantity_restriction);
    ?>
			</div>
			<div class="control-group">
				<?php 
    echo J2Html::label(JText::_('J2STORE_PRODUCT_MAX_SALE_QUANTITY'), 'max_sale_qty', array('class' => 'control-label'));
    ?>
					<?php 
    $attribs = isset($this->variant->use_store_config_notify_qty) && $this->variant->use_store_config_notify_qty ? array('id' => 'max_sale_qty', 'disabled' => 'disabled') : array('id' => 'max_sale_qty');
    echo J2Html::text($this->form_prefix . '[max_sale_qty]', $this->variant->max_sale_qty, $attribs);
    ?>
					<div class="qty_restriction">
						<label for="use_store_config_max_sale_qty">
						<input id="store_config_max_sale_qty" type="checkbox" value="<?php 
    echo $this->variant->use_store_config_max_sale_qty;
    ?>
Пример #6
0
    if (!empty($this->item->option_params)) {
        $this->item->option_params = new JRegistry($this->item->option_params);
    } else {
        $this->item->option_params = new JRegistry('{}');
    }
    ?>

		<tr>
			<td>
				<?php 
    echo JText::_('J2STORE_DATE_HIDE_PAST_DATES');
    ?>
			</td>
			<td>
				<?php 
    echo J2Html::radio('option_params[hide_pastdates]', $this->item->option_params->get('hide_pastdates'));
    ?>
			</td>
		</tr>

		<tr>
			<td>
				<?php 
    echo JText::_('J2STORE_CONF_DATE_FORMAT_LABEL');
    ?>
			</td>
			<td>
				<?php 
    echo J2Html::text('option_params[date_format]', $this->item->option_params->get('date_format', 'yy-mm-dd'));
    ?>
			</td>