Beispiel #1
0
        echo J2StoreSelect::productattributeoptionprefix($item->product_optionvalue_prefix, "prefix[{$item->product_optionvalue_id}]");
        ?>
                </td>
                <td>
                    <input type="text" name="price[<?php 
        echo $item->product_optionvalue_id;
        ?>
]" value="<?php 
        echo $item->product_optionvalue_price;
        ?>
" size="10" />
                </td>

                <td>
                    <?php 
        echo J2StoreSelect::productattributeoptionprefix($item->product_optionvalue_weight_prefix, "weight_prefix[{$item->product_optionvalue_id}]");
        ?>
                </td>
                <td>
                    <input type="text" name="weight[<?php 
        echo $item->product_optionvalue_id;
        ?>
]" value="<?php 
        echo $item->product_optionvalue_weight;
        ?>
" size="10" />
                </td>
                 <td style="text-align: left;">
                 	<?php 
        echo JHtml::_('jgrid.isdefault', $item->product_optionvalue_default != '0', $i, '', $item->product_optionvalue_default != '1');
        ?>
Beispiel #2
0
 public function getInput()
 {
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/library/select.php';
     $html = J2StoreSelect::shippingtype($this->value, $this->name);
     return $html;
 }
Beispiel #3
0
 function view()
 {
     $app = JFactory::getApplication();
     require_once JPATH_ADMINISTRATOR . '/components/com_j2store/library/select.php';
     J2StoreToolBar::_custom('save', 'save', 'save', 'JTOOLBAR_SAVE', false, 'shippingTask');
     J2StoreToolBar::_custom('cancel', 'cancel', 'cancel', 'JTOOLBAR_CLOSE', false, 'shippingTask');
     JToolBarHelper::title(JText::_('J2STORE_SHIPM_SHIPPING_METHODS'), 'j2store-logo');
     $id = $app->input->getInt('id', '0');
     $sid = $app->input->getInt('sid', '0');
     $this->includeCustomModel('ShippingMethods');
     $this->includeCustomTables();
     $model = JModelLegacy::getInstance('ShippingMethods', 'J2StoreModel');
     $model->setId((int) $sid);
     $item = $model->getItem();
     if (!isset($item)) {
         $item = JTable::getInstance('ShippingMethods', 'Table');
     }
     $data = array();
     $data['published'] = JHTML::_('select.booleanlist', 'published', 'class=""', $item->published);
     $data['taxclass'] = J2StoreSelect::taxclass($item->tax_class_id, 'tax_class_id');
     $data['shippingtype'] = J2StoreSelect::shippingtype($item->shipping_method_type, 'shipping_method_type', '', 'shipping_method_type', false);
     $options = array();
     $options[] = JHtml::_('select.option', 'no', JText::_('JNO'));
     $options[] = JHtml::_('select.option', 'store', JText::_('J2STORE_SHIPPING_STORE_ADDRESS'));
     $data['address_override'] = JHtmlSelect::genericlist($options, 'address_override', array(), 'value', 'text', $item->address_override);
     // Form
     $form = array();
     $form['action'] = $this->baseLink();
     $form['shippingTask'] = 'save';
     //We are calling a view from the ShippingMethods we isn't actually the same  controller this has, however since all it does is extend the base view it is
     // all good, and we don't need to remake getView()
     $view = $this->getView('ShippingMethods', 'html');
     $view->hidemenu = true;
     $view->hidestats = true;
     //$view->setTask(true);
     $view->setModel($model, true);
     $view->assign('item', $item);
     $view->assign('data', $data);
     $view->assign('form2', $form);
     $view->setLayout('view');
     $view->display();
 }
Beispiel #4
0
?>
        <?php 
foreach (@$items as $item) {
    $checked = JHTML::_('grid.id', $i, $item->shipping_rate_id);
    ?>
            <tr class='row<?php 
    echo $k;
    ?>
'>
				<td style="text-align: center;"> <?php 
    echo $checked;
    ?>
</td>
                <td style="text-align: center;">
                    <?php 
    echo J2StoreSelect::geozones($item->geozone_id, "geozone[{$item->shipping_rate_id}]");
    ?>
                    <br />
                    [<a href="<?php 
    echo $baseLink;
    ?>
&shippingTask=deleterate&cid[]=<?php 
    echo $item->shipping_rate_id;
    ?>
&return=<?php 
    echo base64_encode($baseLink . "&shippingTask=setrates&sid={$row->shipping_method_id}&tmpl=component");
    ?>
">
						<?php 
    echo JText::_("J2STORE_SRATE_DELETE_RATE");
    ?>