protected function onAdd($tpl = null)
 {
     $app = JFactory::getApplication();
     JRequest::setVar('hidemainmenu', true);
     $model = $this->getModel();
     $this->item = $model->runMyBehaviorFlag(true)->getItem();
     $this->currency = J2Store::currency();
     $this->form_prefix = $this->input->getString('form_prefix', '');
     $this->product_source_view = $this->input->getString('product_source_view', 'article');
     $this->product_types = JHtml::_('select.genericlist', $model->getProductTypes(), $this->form_prefix . '[product_type]', array(), 'value', 'text', $this->item->product_type);
     if ($this->item->j2store_product_id) {
         //manufacturers
         $this->manufacturers = J2Html::select()->clearState()->type('genericlist')->name($this->form_prefix . '[manufacturer_id]')->value($this->item->manufacturer_id)->setPlaceHolders(array('' => JText::_('J2STORE_SELECT_OPTION')))->hasOne('Manufacturers')->setRelations(array('fields' => array('key' => 'j2store_manufacturer_id', 'name' => array('company'))))->getHtml();
         //vendor
         $this->vendors = J2Html::select()->clearState()->type('genericlist')->name($this->form_prefix . '[vendor_id]')->value($this->item->vendor_id)->setPlaceHolders(array('' => JText::_('J2STORE_SELECT_OPTION')))->hasOne('Vendors')->setRelations(array('fields' => array('key' => 'j2store_vendor_id', 'name' => array('first_name', 'last_name'))))->getHtml();
         //tax profiles
         $this->taxprofiles = J2Html::select()->clearState()->type('genericlist')->name($this->form_prefix . '[taxprofile_id]')->value($this->item->taxprofile_id)->setPlaceHolders(array('' => JText::_('J2STORE_NOT_TAXABLE')))->hasOne('Taxprofiles')->setRelations(array('fields' => array('key' => 'j2store_taxprofile_id', 'name' => 'taxprofile_name')))->getHtml();
     }
     if ($this->item->j2store_product_id > 0) {
         $this->product_filters = F0FTable::getAnInstance('ProductFilter', 'J2StoreTable')->getFiltersByProduct($this->item->j2store_product_id);
     } else {
         $this->product_filters = array();
     }
     return true;
 }
 public function getInput()
 {
     $model = F0FModel::getTmpInstance('Coupons', 'J2StoreModel');
     $list = $model->getCouponDiscountTypes();
     $attr = array();
     // Get the field options.
     // Initialize some field attributes.
     $attr['class'] = !empty($this->class) ? $this->class : '';
     // Initialize JavaScript field attributes.
     $attr['onchange'] = isset($this->onchange) ? $this->onchange : '';
     $attr['id'] = isset($this->id) ? $this->id : '';
     // generate country filter list
     return J2Html::select()->clearState()->type('genericlist')->name($this->name)->attribs($attr)->value($this->value)->setPlaceHolders($list)->getHtml();
 }
 public function getInput()
 {
     $model = F0FModel::getTmpInstance('Lengths', 'J2StoreModel');
     $list = $model->enabled(1)->getItemList();
     $attr = array();
     // Get the field options.
     // Initialize some field attributes.
     $attr['class'] = !empty($this->class) ? $this->class : '';
     // Initialize JavaScript field attributes.
     $attr['onchange'] = $this->onchange ? $this->onchange : '';
     //generate country filter list
     $options = array();
     foreach ($list as $row) {
         $options[$row->j2store_length_id] = JText::_($row->length_title);
     }
     return J2Html::select()->clearState()->type('genericlist')->name($this->name)->attribs($attr)->value($this->value)->setPlaceHolders($options)->getHtml();
 }
    public function getRepeatable()
    {
        $cont_saving = JText::_('J2STORE_SAVING_CHANGES') . '...';
        $html = '';
        $html .= '<div class="j2store-order-status-form">';
        $html .= JText::_("J2STORE_CHANGE_ORDER_STATUS");
        $html .= '<script type="text/javascript">
				function submitOrderState(id){
					(function($) {
							var order_state = $("#order_state_id_"+id).attr("value");
					var notify_customer = 0;
					if($("#notify_customer_"+id).is(":checked")) {
						notify_customer = 1;
					}
					$.ajax({
						url: "index.php?option=com_j2store&view=orders&task=orderstatesave",
						type: "post",
						data: {"id":id,"return":"orders","notify_customer":notify_customer,"order_state_id":order_state},
						dataType: "json",
						beforeSend: function() {
							$("#order-list-save_"+id).attr("disabled", true);
							$("#order-list-save_"+id).val("$cont_saving");
						},
						success: function(json) {
							if(json["success"]){
								if(json["success"]["link"]){
									window.location =json["success"]["link"];
								}
							}
						}
					});
					})(j2store.jQuery);
			};
		</script>';
        $html .= 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();
        $html .= "<label><input type='checkbox' name='notify_customer' id='notify_customer_.{$this->item}->j2store_order_id.' value='1' />";
        $html .= JText::_('J2STORE_NOTIFY_CUSTOMER');
        $html .= '</label>';
        //$html .='<input type="hidden" name="j2store_order_id" value="'.$this->item->j2store_order_id.'" />';
        $html .= '<input type="hidden" name="return" value="orders" />';
        $html .= '<input class="btn btn-primary btn-small" id="order-list-save_' . $this->item->j2store_order_id . ' type="button" onclick="submitOrderState(' . $this->item->j2store_order_id . ')"	value="' . JText::_('J2STORE_ORDER_STATUS_SAVE') . '" />';
        $html .= '</div>';
        return $html;
    }
 public function getInput()
 {
     $model = F0FModel::getTmpInstance('Orderstatuses', 'J2StoreModel');
     $orderlist = $model->getItemList();
     $attr = '';
     // Get the field options.
     // Initialize some field attributes.
     $attr['class'] = !empty($this->class) ? $this->class : '';
     $attr['size'] = !empty($this->size) ? $this->size : '';
     $attr['multiple'] = $this->multiple ? 'multiple' : '';
     $attr['required'] = $this->required ? true : false;
     $attr['autofocus'] = $this->autofocus ? 'autofocus' : '';
     // Initialize JavaScript field attributes.
     $attr['onchange'] = $this->onchange ? $this->onchange : '';
     //generate country filter list
     $orderstatus_options = array();
     $orderstatus_options['*'] = JText::_('JALL');
     foreach ($orderlist as $row) {
         $orderstatus_options[$row->j2store_orderstatus_id] = JText::_($row->orderstatus_name);
     }
     return J2Html::select()->clearState()->type('genericlist')->name($this->name)->attribs($attr)->value($this->value)->setPlaceHolders($orderstatus_options)->getHtml();
 }
		</tr>
	</thead>
	<?php 
if ($this->orders && !empty($this->orders)) {
    foreach ($this->orders as $history) {
        ?>
	<tr>
		<td>
			<?php 
        echo JHTML::_('date', $history->created_on, $this->params->get('date_format', JText::_('DATE_FORMAT_LC1')));
        ?>
		</td>
		<td>
			<?php 
        echo JText::_($history->comment);
        ?>
		</td>
		<td>
			<?php 
        echo J2Html::getOrderStatusHtml($history->order_state_id);
        ?>
		</td>
	</tr>
	<?php 
    }
    ?>
	<?php 
}
?>

</table>
Exemple #7
0
	</div>
	<?php 
}
?>

	<?php 
echo J2Html::hidden('option', 'com_j2store');
?>
	<?php 
echo J2Html::hidden('view', 'products');
?>
	<?php 
echo J2Html::hidden('task', 'browse');
?>
	<?php 
echo J2Html::hidden('Itemid', JFactory::getApplication()->input->getUint('Itemid'));
?>
	<?php 
echo JHTML::_('form.token');
?>
</form>
<script type="text/javascript">
/**
 * Method to Submit the form when search Btn clicked
 */
jQuery("#filterProductsBtn").on('click',function(){
	jQuery("#j2store-product-loading").show();
	jQuery("#productsideFilters").submit();
}) ;

jQuery('document').ready(function (){
							<?php 
            echo JHtml::_('select.genericlist', $this->groups, $this->prefix . "[{$pricing->j2store_productprice_id}][customer_group_id]", array(), 'value', 'text', $pricing->customer_group_id);
            ?>
							<?php 
            // echo JHtmlAccess::level($this->prefix."[$pricing->j2store_productprice_id][customer_group_id]", $pricing->customer_group_id, '', false);
            ?>
						</td>
						<td>
							<?php 
            echo J2Html::price_with_data($this->prefix, $pricing->j2store_productprice_id, "[{$pricing->j2store_productprice_id}][price]", $pricing->price, array('class' => 'input-small '), $pricing);
            ?>
							<?php 
            echo J2Html::hidden($this->prefix . "[{$pricing->j2store_productprice_id}][j2store_productprice_id]", $pricing->j2store_productprice_id, array('id' => "product_price_id_{$pricing->j2store_productprice_id}"));
            ?>
							<?php 
            echo J2Html::hidden($this->prefix . "[{$pricing->j2store_productprice_id}][variant_id]", $pricing->variant_id, array('id' => "variant_id_{$pricing->j2store_productprice_id}"));
            ?>
						</td>
						<td>
							<a class="btn btn-danger"
									href="index.php?option=com_j2store&view=products&task=removeproductprice&variant_id=<?php 
            echo $pricing->variant_id;
            ?>
&productprice_id=<?php 
            echo $pricing->j2store_productprice_id;
            ?>
&cid[]=<?php 
            echo $pricing->j2store_productprice_id;
            ?>
" >
Exemple #9
0
    ?>
	<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();"
								value="<?php 
    echo JText::_('JCANCEL');
    ?>
" />
						</div>
        echo J2Html::text('product_files[' . $counter . '][product_file_display_name]', $singleFile->product_file_display_name);
        ?>
					<?php 
        echo J2Html::hidden('product_files[' . $counter . '][product_file_save_name]', $singleFile->product_file_save_name);
        ?>
			</td>
				<td><?php 
        echo $singleFile->product_file_save_name;
        ?>
</td>
				<td>
					<?php 
        echo J2Html::hidden('product_files[' . $counter . '][j2store_productfile_id]', $singleFile->j2store_productfile_id);
        ?>
					<?php 
        echo J2Html::hidden('product_files[' . $counter . '][product_id]', $singleFile->product_id);
        ?>
					<?php 
        // echo J2Html::button('deletebtn',JText::_('J2STORE_DELETE'),array('class'=>'btn btn-danger btn-small tr_delete_add',"id"=>"file-delete-btn-$singleFile->j2store_productfile_id" ,'file_id' =>$singleFile->j2store_productfile_id ,'onclick'=>'deleteProductFiles(this)'));
        ?>
					<a class="btn btn-danger" href="index.php?option=com_j2store&view=products&task=deleteFiles&product_id=<?php 
        echo $this->product_id;
        ?>
&productfile_id=<?php 
        echo $singleFile->j2store_productfile_id;
        ?>
" >
								<?php 
        echo JText::_('J2STORE_REMOVE');
        ?>
							</button>
        echo $row->orderstatus_cssclass;
        ?>
 order-state-label">
						<?php 
        echo JText::_($row->orderstatus_name);
        ?>
						</span>
					</p>
						<?php 
        echo JText::_("J2STORE_CHANGE_ORDER_STATUS");
        ?>
						<?php 
        $attr = array("class" => "input-small", "id" => "order_state_id_" . $row->j2store_order_id);
        ?>
						<?php 
        echo J2Html::select()->clearState()->type('genericlist')->name('order_state_id')->value($row->order_state_id)->idTag('order_state_id_' . $row->j2store_order_id)->attribs($attr)->setPlaceHolders(array('' => JText::_('J2STORE_SELECT_OPTION')))->hasOne('Orderstatuses')->setRelations(array('fields' => array('key' => 'j2store_orderstatus_id', 'name' => 'orderstatus_name')))->getHtml();
        ?>
						<label>
						<input type="checkbox" name="notify_customer" id="notify_customer_<?php 
        echo $row->j2store_order_id;
        ?>
" value="1" />
							<?php 
        echo JText::_('J2STORE_NOTIFY_CUSTOMER');
        ?>
						</label>
						<input type="hidden" name="return" value="orders" />
						<input class="btn btn-primary" id="order-list-save_<?php 
        echo $row->j2store_order_id;
        ?>
" type="button" onclick="submitOrderState(<?php 
Exemple #12
0
		<tfoot>
			<tr>
				<td colspan="20">
					<?php 
echo $this->pagination->getListFooter();
?>
				</td>
			</tr>
		</tfoot>
	</table>
	<?php 
echo J2Html::hidden('order_change', '0');
?>
	<?php 
echo J2Html::hidden('sid', $sid);
?>
	<?php 
echo J2Html::hidden('view', 'shippings', array('id' => 'view'));
?>
	<?php 
echo J2Html::hidden('task', 'view', array('id' => 'task'));
?>
	<?php 
echo J2Html::hidden('shippingTask', 'setrates', array('id' => 'shippingTask'));
?>
	<?php 
echo J2Html::hidden('boxchecked', '');
?>
	</div>
</form>
        ?>
		</td>
		<td>
			<a href="<?php 
        echo 'index.php?option=com_j2store&view=order&id=' . $order->j2store_order_id;
        ?>
">
			<?php 
        echo $order->invoice;
        ?>
			</a>
		</td>
		<td>
			<?php 
        echo $this->currency->format($order->order_total, $order->currency_code, $order->currency_value);
        ?>
		</td>
		<td>
			<?php 
        echo J2Html::getOrderStatusHtml($order->order_state_id);
        ?>
		</td>
	</tr>
	<?php 
    }
    ?>
	<?php 
}
?>

</table>
Exemple #14
0
    echo J2Html::hidden('view', 'products');
    ?>
						<?php 
    echo J2Html::hidden('task', 'browse', array('id' => 'task'));
    ?>
						<?php 
    echo J2Html::hidden('boxchecked', '0');
    ?>
						<?php 
    echo J2Html::hidden('filter_order', '');
    ?>
						<?php 
    echo J2Html::hidden('filter_order_Dir', '');
    ?>
						<?php 
    echo J2Html::hidden('filter_catid', $this->filter_catid);
    ?>
						<?php 
    echo JHTML::_('form.token');
    ?>
						<div class="pagination">
							<?php 
    echo $this->pagination->getPagesLinks();
    ?>
						</div>
					</form>
				<?php 
} else {
    ?>
				<div class="row-fluid">
						<div class="span12">
<?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>
Exemple #16
0
        if ($key == 'enabled' && isset($this->item->orderstatus_core) && $this->item->orderstatus_core) {
            ?>
		                    	 <div class="control-group <?php 
            echo $layout;
            ?>
" <?php 
            echo $style;
            ?>
>
		                            <div class="control-label"><?php 
            echo $field->label;
            ?>
</div>
		                            	<div class="controls">
										<?php 
            echo J2Html::hidden('enabled', 1);
            ?>
										<?php 
            echo JText::_('J2STORE_YES');
            ?>
		                            </div>
		                        </div>
		                    <?php 
        } else {
            ?>
		                       <div class="control-group <?php 
            echo $layout;
            ?>
" <?php 
            echo $style;
            ?>
Exemple #17
0
    ?>
		<?php 
} else {
    ?>
		<?php 
    $sidebar = JHtmlSidebar::render();
    ?>
		
		<?php 
    if (!empty($sidebar)) {
        ?>
		   <div id="j-sidebar-container" class="span2">
		      <?php 
        echo $sidebar;
        ?>
		   </div>
		   <div id="j-main-container" class="span10">
		 <?php 
    } else {
        ?>
		     <div id="j-main-container">
		 <?php 
    }
    ?>
			
			<?php 
    echo J2Html::pro();
    ?>
		</div>
	<?php 
}
 * @license GNU GPL v3 or later
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHTML::_('behavior.modal');
?>
<div class="row-fluid">
	<div class="span12">
		<table class="adminlist table table-striped table-condensed">
			<tr>
				<td>
					<?php 
echo JText::_('J2STORE_COUNTRY');
?>
					<?php 
echo J2Html::select()->clearState()->type('genericlist')->name('country_id')->value($this->state->country_id)->attribs(array('onchange' => 'this.form.submit();'))->setPlaceHolders(array('' => JText::_('J2STORE_SELECT_OPTION')))->hasOne('Countries')->setRelations(array('fields' => array('key' => 'j2store_country_id', 'name' => array('country_name'))))->getHtml();
?>
				</td>
				<td>
					<input class="btn btn-success" type="button" value="<?php 
echo JText::_('J2STORE_IMPORT_COUNTRIES');
?>
" onclick="if (document.adminForm.boxchecked.value==0){alert('Please first make a selection from the list');}else{jQuery('#view').attr('value','geozones');jQuery('#task').attr('value','importzone');this.form.submit();}" />
				</td>
				<td>
					<?php 
echo $this->pagination->getLimitBox();
?>
				</td>
			</tr>
		</table>
Exemple #19
0
echo J2Html::hidden('option', 'com_j2store');
?>
		<?php 
echo J2Html::hidden('view', 'apps');
?>
		<?php 
echo J2Html::hidden('task', 'view', array('id' => 'task'));
?>
		<?php 
echo J2Html::hidden('appTask', '', array('id' => 'appTask'));
?>
		<?php 
echo J2Html::hidden('table', '', array('id' => 'table'));
?>
		<?php 
echo J2Html::hidden('id', $vars->id, array('id' => 'table'));
?>
		<?php 
echo JHTML::_('form.token');
?>
		<h4><?php 
echo JText::_('PLG_J2STORE_TOOL_DIAGONISTICS_INFORMATION');
?>
</h4>
		<div class="alert alert-info alert-block">
			<?php 
echo JText::_('J2STORE_DIAGNOSTICS_HELP_TEXT');
?>
		</div>
		<table class="table table-striped table-bordered">
		 <thead>
Exemple #20
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>
		</td>
		<td>
			<div class="input-prepend">
				<span class="add-on">
					<?php 
echo J2html::label(JText::_('J2STORE_PRODUCT_TYPE'), 'product_type', array('class' => 'control-label'));
?>
				</span>
				<?php 
echo J2Html::select()->clearState()->type('genericlist')->name('product_type')->attribs(array('class' => 'input-small j2store-product-filters', 'onchange' => 'this.form.submit();'))->value($this->state->product_type)->setPlaceHolders($this->product_types)->getHtml();
?>
				</div>
		</td>
		<td>
			<?php 
echo J2Html::button('reset', JText::_('J2STORE_FILTER_RESET_ALL'), array('id' => 'reset-all-filter', 'class' => 'btn btn-danger', 'onclick' => 'j2storeResetAllFilters();'));
?>
		</td>
		<td>
			<?php 
if ($this->state->since || $this->state->until || $this->state->visible || $this->state->taxprofile_id || $this->state->vendor_id || $this->state->manufacturer_id || $this->state->productid_from || $this->state->productid_to || $this->state->pricefrom || $this->state->priceto || $this->state->visible) {
    ?>
						<input id="hideBtnAdvancedControl" class="btn btn-inverse" type="button" onclick="jQuery('#advanced-search-controls').toggle('click');jQuery(this).toggle('click');jQuery('#showBtnAdvancedControl').toggle('click');" value="<?php 
    echo JText::_('J2STORE_HIDE_FILTER_ADVANCED');
    ?>
"/>
						<input id="showBtnAdvancedControl" class="btn btn-success" type="button" onclick="jQuery('#advanced-search-controls').toggle('click');jQuery(this).toggle('click');jQuery('#hideBtnAdvancedControl').toggle('click');" value="<?php 
    echo JText::_('J2STORE_SHOW_FILTER_ADVANCED');
    ?>
" style="display:none;" />
					<?php 
?>
:
				<?php 
$search = htmlspecialchars($this->state->search);
?>
				<?php 
echo J2Html::text('search', $search, array('id' => 'search', 'class' => 'input j2store-order-filters'));
?>
				<?php 
echo J2Html::button('go', JText::_('J2STORE_FILTER_GO'), array('class' => 'btn btn-success', 'onclick' => 'this.form.submit();'));
?>
				<?php 
echo J2Html::button('reset', JText::_('J2STORE_FILTER_RESET'), array('id' => 'reset-filter-search', 'class' => 'btn btn-inverse'));
?>
			</td>

			<td nowrap="nowrap">
			<?php 
echo JText::_('J2STORE_FILTER_ORDER_STATUS');
?>
:
			<?php 
echo J2Html::select()->type('genericlist')->name('orderstate')->value($this->state->orderstate)->attribs(array('onchange' => 'this.form.submit();', 'class' => 'input j2store-order-filters'))->setPlaceHolders(array('' => JText::_('J2STORE_SELECT_OPTION')))->hasOne('Orderstatuses')->ordering('ordering')->setRelations(array('fields' => array('key' => 'j2store_orderstatus_id', 'name' => 'orderstatus_name')))->getHtml();
?>
			</td>
			<td><?php 
echo $this->pagination->getLimitBox();
?>
</td>
		</tr>
		</table>
Exemple #23
0
echo J2Html::hidden('reportTask', '', array('id' => 'reportTask'));
?>
		<?php 
echo J2Html::hidden('format', 'html', array('id' => 'format'));
?>
		<?php 
echo J2Html::hidden('id', $vars->id);
?>
		<?php 
echo J2Html::hidden('boxchecked', 0);
?>
		<?php 
echo J2Html::hidden('filter_order', $listOrder);
?>
		<?php 
echo J2Html::hidden('filter_order_Dir', $listDirn);
?>
		<?php 
echo JHtml::_('form.token');
?>

	<table class="adminlist table table-striped ">
		<tr>
			<td>
			<div class="alert alert-block alert-info">
				<?php 
echo JText::_('PLG_J2STORE_REPORT_ITEMISED_EXPORT_HELP');
?>
			</div>
			</td>
			<td>
} 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>
echo $this->loadTemplate('shipping');
?>
				    </div>
				  </div>
			</div>

			<button class="btn btn-success btn-large" onclick="document.getElementById('task').value='savevariant'; document.adminForm.submit();">
			<?php 
echo JText::_('JAPPLY');
?>
		</button>
	</div>


		<?php 
echo J2Html::hidden('option', 'com_j2store');
?>
		<?php 
echo J2Html::hidden('view', 'products');
?>
		<?php 
echo J2Html::hidden('task', '', array('id' => 'task'));
?>
		<?php 
echo J2Html::hidden('variant_id', $this->item->j2store_variant_id, array('id' => 'j2store_variant_id'));
?>
			<?php 
echo JHTML::_('form.token');
?>
</form>
Exemple #26
0
    echo J2Html::hidden('option', 'com_j2store');
    ?>
						<?php 
    echo J2Html::hidden('view', 'products');
    ?>
						<?php 
    echo J2Html::hidden('task', 'browse', array('id' => 'task'));
    ?>
						<?php 
    echo J2Html::hidden('boxchecked', '0');
    ?>
						<?php 
    echo J2Html::hidden('filter_order', '');
    ?>
						<?php 
    echo J2Html::hidden('filter_order_Dir', '');
    ?>

						<?php 
    echo JHTML::_('form.token');
    ?>
						<div class="pagination">
							<?php 
    //	 echo $this->pagination->getLimitBox();
    ?>
							<p class="counter pull-right">
							<?php 
    // echo $this->pagination->getPagesCounter();
    ?>
 </p>
							<?php 
$url = 'index.php?option=com_users&view=users&layout=modal&tmpl=component&field=jform_user_id';
?>
							<?php 
echo J2StorePopup::popup($url, '<i class="icon icon-user"></i>', array('class' => 'btn btn-primary modal_jform_created_by'));
?>
							</div>
						</div>
						<td>
						<?php 
echo JText::_('J2STORE_FILTER_PAYMENTS');
?>
:
							<?php 
echo J2Html::select()->clearState()->type('genericlist')->name('paykey')->value($this->state->paykey)->attribs(array('onchange' => 'this.form.submit', 'class' => 'j2store-order-filters'))->setPlaceHolders(array('' => JText::_('J2STORE_SELECT_OPTION')))->hasOne('Payments')->setRelations(array('fields' => array('key' => 'element', 'name' => 'element')))->getHtml();
?>
						</td>
						</tr>
						<tr>
						<td colspan="2">
							<?php 
echo J2Html::button('advanced_search', JText::_('J2STORE_APPLY_FILTER'), array('class' => 'btn btn-success', 'onclick' => 'this.form.submit();'));
?>
							<?php 
echo J2Html::button('reset_advanced_filters', JText::_('J2STORE_FILTER_RESET'), array('class' => 'btn btn-inverse', 'onclick' => 'resetAdvancedFilters()'));
?>
						</td>
					</tr>
				</table>
			</div>

		</div>
Exemple #28
0
					<td class="key"><?php 
echo JText::_('J2STORE_CUSTOM_FIELD_SIZE');
?>
</td>
					<td><?php 
echo J2Html::text('field_options[size]', @$this->item->field_options['size'], array('id' => 'size'));
?>
</td>
				</tr>
				<tr class="rows">
					<td class="key"><?php 
echo JText::_('J2STORE_CUSTOM_FIELD_ROWS');
?>
</td>
					<td><?php 
echo J2Html::text('field_options[size]', $this->item->field_options['size'], array('id' => 'size'));
?>
					</td>
				</tr>

				<tr class="cols">
					<td class="key">
						<?php 
echo JText::_('J2STORE_CUSTOM_FIELD_COLUMNS');
?>
					</td>
					<td>
						<input type="text"  size="10" name="field_options[cols]" id="cols" class="inputbox" value="<?php 
echo $this->escape(@$this->field->field_options['cols']);
?>
"/>
	<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>
		<?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>