示例#1
0
} else {
    ?>
						<?php 
    echo J2Html::pro();
    ?>
					<?php 
}
?>

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


				<div class="control-group">
					<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_CART_TEXT'), 'addtocart_text', array('class' => 'control-label'));
?>
					<?php 
echo J2Html::text($this->form_prefix . '[addtocart_text]', JText::_($this->item->addtocart_text), array('class' => 'input-large '));
?>
				</div>

</div>
示例#2
0
		<?php 
echo J2Html::label(JText::_('J2STORE_SET_PRODUCT_FILES'), 'product_files_option', array('class' => 'control-label'));
?>
		<div class="controls">
			<?php 
echo J2StorePopup::popup("index.php?option=com_j2store&view=products&task=setproductfiles&product_id=" . $this->item->j2store_product_id . "&layout=productfiles&tmpl=component", JText::_("J2STORE_PRODUCT_SET_FILES"), array('class' => 'btn btn-success'));
?>
		</div>
	</div>
	<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_FILE_DOWNLOAD_LIMIT'), 'product_files_option', array('class' => 'control-label'));
?>
		<div class="controls">
			<?php 
echo J2Html::text($this->form_prefix . '[params][download_limit]', $this->item->params->get('download_limit'));
?>
		</div>
	</div>

	<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_FILE_DOWNLOAD_EXPIRY'), 'product_files_option', array('class' => 'control-label'));
?>
		<div class="controls">
			<?php 
echo J2Html::text($this->form_prefix . '[params][download_expiry]', $this->item->params->get('download_expiry'), array('id' => 'expiry_date'));
?>
		</div>
	</div>
</div>
<?php

/**
 * @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">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_SKU'), 'sku', array('class' => 'control-label'));
?>
		<?php 
echo J2Html::text($this->form_prefix . '[sku]', $this->item->sku, array('class' => 'input-small '));
?>
	</div>

	<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_UPC'), 'upc', array('class' => 'control-label'));
?>
		<?php 
echo J2Html::text($this->form_prefix . '[upc]', $this->item->upc, array('class' => 'input-small '));
?>
	</div>

</div>
示例#4
0
		<?php 
echo J2Html::price($this->form_prefix . '[price]', $this->variant->price, array('class' => 'input'));
?>
	</div>
	<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_SET_ADVANCED_PRICING'), 'sale_price', array('class' => 'control-label'));
?>
		<!-- Link to advanced pricing options. Opens as a popup. -->
		<?php 
echo J2StorePopup::popup("index.php?option=com_j2store&view=products&task=setproductprice&variant_id=" . $this->variant->j2store_variant_id . "&layout=productpricing&tmpl=component", JText::_("J2STORE_PRODUCT_SET_PRICES"), array('class' => 'btn btn-success'));
?>
	</div>
	<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_PRICING_CALCULATOR'), 'price_calculator', array('class' => 'control-label'));
?>
		<?php 
//dropdown list: pre-populate it with Standard (to start with). We will extend this at a later point of time
?>
		<?php 
echo $pricing_calculator;
?>
	</div>
</div>

<div class="alert alert-info">
<h4><?php 
echo JText::_('J2STORE_QUICK_HELP');
?>
</h4>
?>
<div class="control-group">
					<?php 
echo J2Html::label(JText::_('J2STORE_CONF_INCLUDING_TAX_LABEL'), 'config_currency_auto', array('class' => 'control-label'));
?>
					<span class="required">*</span>
					<div class="controls">
					<?php 
echo J2Html::select()->clearState()->type('genericlist')->name('config_including_tax')->idTag('config_including_tax')->value($this->params->get('config_including_tax', 0))->setPlaceHolders(array('0' => JText::_('J2STORE_PRICES_EXCLUDING_TAXES'), '1' => JText::_('J2STORE_PRICES_INCLUDING_TAXES')))->getHtml();
?>
					<small><?php 
echo JText::_('J2STORE_CONF_INCLUDING_TAX_DESC');
?>
</small>
					</div>
				</div>
				
				<div class="control-group">
					<?php 
echo J2Html::label(JText::_('J2STORE_DEFAULT_TAX_RATE'), 'tax_rate', array('class' => 'control-label'));
?>
					<div class="controls">
					<?php 
echo J2Html::text('tax_rate', '');
?>
					<small><?php 
echo JText::_('J2STORE_DEFAULT_TAX_RATE_DESC');
?>
</small>
					</div>
				</div>
/**
 * @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-configuration-options">
	<div class="row-fluid">
		<div class="span10">
		<div class="form-group">
			<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_OPTIONS'), 'option_name');
?>
			<table id="attribute_options_table" class="adminlist table table-striped table-bordered j2store">
				<thead>
					<th colspan="2"><?php 
echo JText::_('J2STORE_OPTION_NAME');
?>
</th>
					<th colspan="2"><?php 
echo JText::_('J2STORE_PARENT_OPTION');
?>
</th>
					<th><?php 
echo JText::_('J2STORE_OPTION_REQUIRED');
?>
</th>
												class="storeconfig"
												<?php 
            echo isset($this->variant->use_store_config_max_sale_qty) && !empty($this->variant->use_store_config_max_sale_qty) ? 'checked="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_MIN_SALE_QUANTITY'), 'min_sale_qty', array('class' => 'control-label'));
            ?>
										<?php 
            $attribs = isset($this->variant->use_store_config_min_sale_qty) && !empty($this->variant->use_store_config_min_sale_qty) ? array('id' => 'min_sale_qty', 'disabled' => 'disabled') : array('id' => 'min_sale_qty_' . $this->variant->j2store_variant_id);
            echo J2Html::text($prefix . '[min_sale_qty]', $this->variant->min_sale_qty, $attribs);
            ?>
										<div class="store_config_min_sale_qty">
											<label class="control-label">
												<input id="store_config_min_sale_qty_<?php 
            echo $this->variant->j2store_variant_id;
            ?>
" type="checkbox"
													name="<?php 
            echo $prefix . '[use_store_config_min_sale_qty]';
            ?>
"
示例#8
0
		<tr>
			<td colspan="2">
				<div class="pull-right">
					<input type="button" id="addImagBtn" class="btn btn-success"  value="<?php 
echo JText::_('J2STORE_PRODUCT_ADDITIONAL_IMAGES_ADD');
?>
"/>
				</div>
			</td>
			</tr>

		</thead>
			<tr>
				<th>
					<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_ADDITIONAL_IMAGE'), 'additioanl_image_label');
?>
				</th>
				<th>
					<?php 
echo JText::_('J2STORE_DELETE');
?>
				</th>
			</tr>
		<?php 
if (isset($this->item->additional_images) && !empty($this->item->additional_images)) {
    ?>
			<?php 
    $add_image = json_decode($this->item->additional_images);
    ?>
		<?php 
/**
 * @package J2Store
 * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org
 * @license GNU GPL v3 or later
 */
// No direct access to this file
defined('_JEXEC') or die;
$order_state_save_link = JRoute::_('index.php?option=com_j2store&view=orders&task=orderstatesave');
$this->order_state = J2Html::select()->clearState()->type('genericlist')->name('order_state_id')->value($this->item->order_state_id)->idTag("order_state_id_" . $this->item->j2store_order_id)->setPlaceHolders(array('' => JText::_('J2STORE_SELECT_OPTION')))->hasOne('Orderstatuses')->setRelations(array('fields' => array('key' => 'j2store_orderstatus_id', 'name' => 'orderstatus_name')))->getHtml();
?>

	<div class="panel-body">
		<div class="control-group">
			<?php 
echo J2Html::label(JText::_('J2STORE_ORDER_STATUS'), 'order_status', array('class' => 'control-label'));
?>
			<?php 
echo $this->order_state;
?>
		</div>

		 <div class="control-group">
			<label class="control-label">
				<input type="checkbox" name="notify_customer" value="1" />
					<?php 
echo JText::_('J2STORE_NOTIFY_CUSTOMER');
?>
			</label>

			<label class="control-label">
示例#10
0
    ?>
							<?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);
    ?>
						<?php 
} else {
    ?>
							<?php 
    echo J2Html::label(JText::_('J2STORE_PRODUCT_TYPE'), 'product_type', array('class' => 'control-label'));
    ?>
							<div class="controls"><?php 
    echo $this->product_types;
    ?>
</div>
						<?php 
}
?>
						</div>
						<?php 
if (!$this->item->enabled) {
    ?>
							<!-- Show this only when this was not a product -->
							<?php 
    if ($option == 'com_content' && $app->isAdmin()) {
					<span class="optionRemove" onClick="removePAOption(<?php 
        echo $poption->j2store_productoption_id;
        ?>
)">X</span>
				</td>
			</tr>
			<?php 
    }
    ?>
			<?php 
}
?>
			<tr class="j2store_a_options">
				<td colspan="3">
					<?php 
echo J2Html::label(JText::_('J2STORE_SEARCH_AND_ADD_VARIANT_OPTION'));
?>
					<?php 
echo J2Html::text('Selectoption', '', array('id' => 'optionselector'));
?>
				</td>
			</tr>

		</tbody>

		</table>
		<div class="alert alert-block alert-info">
			<h4><?php 
echo JText::_('J2STORE_QUICK_HELP');
?>
</h4>
示例#12
0
					<?php 
echo J2Html::label(JText::_('J2STORE_STORE_CURRENCY_AUTO_UPDATE_CURRENCY'), 'config_currency_auto', array('class' => 'control-label'));
?>
					<div class="controls">
					<?php 
echo J2Html::select()->clearState()->type('genericlist')->name('config_currency_auto')->value($this->params->get('config_currency_auto', 1))->setPlaceHolders(array('0' => JText::_('JNO'), '1' => JText::_('JYES')))->getHtml();
?>
					</div>
				</div>

				<div class="control-group">
					<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_WEIGHT_CLASS'), 'config_weight_class_id', array('class' => 'control-label'));
?>
					<div class="controls">
					<?php 
echo J2Html::select()->clearState()->type('genericlist')->name('config_weight_class_id')->value($this->params->get('config_weight_class_id', 1))->setPlaceHolders(array('' => JText::_('J2STORE_SELECT_OPTION')))->hasOne('Weights')->setRelations(array('fields' => array('key' => 'j2store_weight_id', 'name' => 'weight_title')))->getHtml();
?>
					</div>
				</div>

				<div class="control-group">
					<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_LENGTH_CLASS'), 'config_length_class_id', array('class' => 'control-label'));
?>
					<div class="controls">
					<?php 
echo J2Html::select()->clearState()->type('genericlist')->name('config_length_class_id')->value($this->params->get('config_length_class_id', 1))->setPlaceHolders(array('' => JText::_('J2STORE_SELECT_OPTION')))->hasOne('Lengths')->setRelations(array('fields' => array('key' => 'j2store_length_id', 'name' => 'length_title')))->getHtml();
?>
					</div>
				</div>
示例#13
0
?>

<form action="<?php 
echo JRoute::_('index.php?option=com_j2store&view=products&task=setProducts');
?>
" method="post" name="adminForm" id="productadminForm" class="form-inline">
	<h5><?php 
echo JText::_('COM_J2STORE_PRODUCTS');
?>
</h5>
	<div class="row-fluid">
		<table class="adminlist table table-striped">
			<tr>
				<td>
					<?php 
echo J2Html::label(JText::_('JCATEGORY'));
?>
					<?php 
$catlist = array();
$catlist[''] = JText::_('J2STORE_SELECT_OPTION');
foreach ($this->categories as $key => $value) {
    $catlist[$value->value] = $value->text;
}
echo J2Html::select()->clearState()->type('genericlist')->idTag('catid')->attribs(array('onchange' => 'this.form.submit();'))->setPlaceholders($catlist)->name('filter_category')->value($this->state->get('filter_category', ''))->getHtml();
?>
				</td>
				<td>
					<?php 
echo $this->pagination->getLimitBox();
?>
				</td>
示例#14
0
		<?php 
    echo J2Html::hidden('email', $this->email, array('id' => 'customer_email_id'));
    ?>
		<?php 
    echo JHtml::_('form.token');
    ?>
	<div class="row-fluid">
		<h4><?php 
    JText::_('J2STORE_CUSTOMER_DETAILS');
    ?>
</h4>
		<div class="span8">
			<div class="control-group well">
						<label class="control-label">
							<?php 
    echo J2Html::label(JText::_('J2STORE_EMAIL'));
    ?>
						</label>
						<div class="controls" id="customer-email-edit-info" style="display:none;">
							<?php 
    echo J2Html::text('new_email', $this->email, array('id' => 'new-email-input'));
    ?>
							<input id="customer-save-btn"  class="btn btn-success" type="button" onclick="getUpdatedEmail(this,'changeEmail');"	value="<?php 
    echo JText::_('JAPPLY');
    ?>
" />
							<input id="customer-confirm-btn"  class="btn btn-warning" type="button" onclick="getUpdatedEmail(this,'confirmchangeEmail');"	value="<?php 
    echo JText::_('J2STORE_CONFIRM_UPDATE');
    ?>
" style="display:none;" />
							<input class="btn btn-default" type="button" onclick="canUpdate();"
echo J2Html::label(JText::_('J2STORE_PRODUCT_WEIGHT'), 'weight');
?>
			<?php 
echo J2Html::text($this->form_prefix . '[weight]', $this->item->weight);
?>
			<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_WEIGHT_CLASS'), 'weight_class');
?>
			<?php 
echo $this->weights;
?>
		</div>
<!-- 
		<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_SHIPPING'), 'shipping', array('class' => 'control-label'));
?>
		<?php 
/* $attribs = isset($this->item->allshipping ) ? array('multiple'=>true) : array('multiple'=>true);
		$this->item->shippingmethods = isset($this->item->shippingmethods) ? explode(',',$this->item->shippingmethods) : '';
		echo J2Html::select()->clearState()
		->type('genericlist')
		->name($this->form_prefix.'[shippingmethods][]')
		->attribs($attribs)
		->idTag('shippingInput')
		->value($this->item->shippingmethods)
		->setPlaceHolders(array(''=>JText::_('J2STORE_ALL_SHIPPINGS_METHODS')))
		->hasOne('Shippings')
		->setRelations(
				array (
						'fields' => array (
	<div class="control-group">
		<?php 
echo J2Html::label(JText::_('J2STORE_PRODUCT_VENDOR'), 'vendor', array('class' => 'control-label'));
?>
		<?php 
if (J2Store::isPro()) {
    ?>
			<?php 
    echo $this->vendors;
    ?>
		<?php 
} else {
    ?>
			<?php 
    echo J2Html::pro();
    ?>
		<?php 
}
?>
	</div>

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

</div>
示例#17
0
	<h3><?php 
echo JText::_('J2STORE_ADDRESS_EDIT');
?>
</h3>
	<div id="address">
		<div class="j2store-address-alert">
		</div>
		 <div class="pull-right">
			 <input type="button" onclick="J2storeSubmitForm(this)" value="<?php 
echo JText::_('JSAVE');
?>
"  class="button btn btn-success" />
	  	</div>
		<div class="control-group">
		  	<?php 
echo J2Html::label(JText::_('J2STORE_ADDRESS_TYPE'), array('class' => 'control-label'));
?>
			  <?php 
echo J2Html::select()->clearState()->type('genericlist')->name('type')->value($this->address->type)->setPlaceHolders(array('billing' => JText::_('J2STORE_BILLING_ADDRESS'), 'shipping' => JText::_('J2STORE_SHIPPING_ADDRESS'), 'payment' => JText::_('J2STORE_STORE_PAYMENT_LAYOUT_LABEL')))->getHtml();
?>
	  </div>
	<?php 
//$html = $this->storeProfile->store_billing_layout;
$html = '';
if (empty($html) || JString::strlen($html) < 5) {
    //we dont have a profile set in the store profile. So use the default one.
    $html = '<div class="row-fluid">
			<div class="span6">[first_name] [last_name] [phone_1] [phone_2] [company] [tax_number]</div>
			<div class="span6">[address_1] [address_2] [city] [zip] [country_id] [zone_id]</div>
			</div>';
}