function fetchElement($name, $value, &$node, $control_name) { $mainframe = JFactory::getApplication(); Tienda::load('TiendaSelect', 'library.select'); $id = JRequest::getInt('cid'); if ($id) { $K2Item = JTable::getInstance('K2Item', 'Table'); $K2Item->load($id); $params = new K2Parameter($K2Item->plugins, JPATH_PLUGINS . '/k2/tienda.xml', 'tienda'); $id = $params->get('productID'); $db = JFactory::getDBO(); $query = "SELECT tax_class_id FROM #__tienda_products WHERE product_id=" . (int) $id; $db->setQuery($query); $tax = $db->loadResult(); } return TiendaSelect::taxclass(@$tax, 'plugins[tiendaproductTax]', '', 'pluginstiendaproductTax', false); }
</th> <th style="text-align: left;" colspan="2"> <input id="filter_name" name="filter_name" placeholder="Product Name..." type="text" value="<?php echo @$state->filter_name; ?> " size="25"/> <?php echo TiendaSelect::category(@$state->filter_category, 'filter_category', $attribs, 'category', true); ?> <?php echo TiendaSelect::booleans(@$state->filter_ships, 'filter_ships', $attribs, 'ships', true, 'Requires Shipping', 'Yes', 'No'); ?> <?php echo TiendaSelect::taxclass(@$state->filter_taxclass, 'filter_taxclass', $attribs, 'taxclass', true, false); ?> </th> <th> <input id="filter_sku" name="filter_sku" type="text" value="<?php echo @$state->filter_sku; ?> " size="15"/> </th> <th> <div class="range"> <div class="rangeline"> <span class="label"><?php echo JText::_('COM_TIENDA_FROM'); ?> :</span> <input type="text"id="filter_price_from" name="filter_price_from" value="<?php
<input type="text" name="shipping_method_weightbased_name" id="shipping_method_weightbased_name" value="<?php echo @$row->shipping_method_weightbased_name; ?> " size="48" maxlength="250" /> </td> </tr> <tr> <td width="100" align="right" class="key"><label for="tax_class_id"> <?php echo JText::_('COM_TIENDA_TAX_CLASS'); ?> : </label> </td> <td> <?php echo TiendaSelect::taxclass(@$row->tax_class_id, 'tax_class_id', '', 'tax_class_id', false); ?> </td> </tr> <tr> <td width="100" align="right" class="key"> <label for="shipping_method_weightbased_enabled"> <?php echo JText::_('COM_TIENDA_ENABLED'); ?> :</label> </td> <td> <?php echo JHTML::_('select.booleanlist', 'shipping_method_weightbased_enabled', '', @$row->shipping_method_weightbased_enabled); ?> </td>