本文整理汇总了PHP中TiendaSelect::taxclass方法的典型用法代码示例。如果您正苦于以下问题:PHP TiendaSelect::taxclass方法的具体用法?PHP TiendaSelect::taxclass怎么用?PHP TiendaSelect::taxclass使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TiendaSelect
的用法示例。
在下文中一共展示了TiendaSelect::taxclass方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fetchElement
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);
}
示例2:
</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
示例3:
<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>