本文整理匯總了PHP中ShopFunctions::writePriceConfigLine方法的典型用法代碼示例。如果您正苦於以下問題:PHP ShopFunctions::writePriceConfigLine方法的具體用法?PHP ShopFunctions::writePriceConfigLine怎麽用?PHP ShopFunctions::writePriceConfigLine使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ShopFunctions
的用法示例。
在下文中一共展示了ShopFunctions::writePriceConfigLine方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_PRICES_ROUNDING');
?>
</th>
</tr>
<?php
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'basePrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'variantModification', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_VARMOD');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'basePriceVariant', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE_VAR');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'basePriceWithTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE_WTAX');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'discountedPriceWithoutTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_DISCPRICE_WOTAX');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'salesPriceWithDiscount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE_WD');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'salesPrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'priceWithoutTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE_WOTAX');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'discountAmount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_DISC_AMOUNT');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'taxAmount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_TAX_AMOUNT');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'unitPrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_UNITPRICE');
?>
</table>
</fieldset>
</div>
<input type="hidden" name="default" value="<?php
echo $this->shoppergroup->default;
?>
" />
<input type="hidden" name="virtuemart_shoppergroup_id" value="<?php
echo $this->shoppergroup->virtuemart_shoppergroup_id;
?>
" />
<?php
示例2:
<th><?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_PRICES_LABEL');
?>
</th>
<th><?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_PRICES_TEXT');
?>
</th>
<th><?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_PRICES_ROUNDING');
?>
</th>
</tr>
<?php
echo ShopFunctions::writePriceConfigLine($this->config, 'basePrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE');
echo ShopFunctions::writePriceConfigLine($this->config, 'variantModification', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_VARMOD');
echo ShopFunctions::writePriceConfigLine($this->config, 'basePriceVariant', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE_VAR');
echo ShopFunctions::writePriceConfigLine($this->config, 'discountedPriceWithoutTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_DISCPRICE_WOTAX', 0);
echo ShopFunctions::writePriceConfigLine($this->config, 'priceWithoutTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE_WOTAX', 0);
echo ShopFunctions::writePriceConfigLine($this->config, 'taxAmount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_TAX_AMOUNT', 0);
echo ShopFunctions::writePriceConfigLine($this->config, 'basePriceWithTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE_WTAX');
echo ShopFunctions::writePriceConfigLine($this->config, 'salesPrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE');
echo ShopFunctions::writePriceConfigLine($this->config, 'salesPriceWithDiscount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE_WD');
echo ShopFunctions::writePriceConfigLine($this->config, 'discountAmount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_DISC_AMOUNT');
echo ShopFunctions::writePriceConfigLine($this->config, 'unitPrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_UNITPRICE');
?>
</table>
</fieldset>
</td>
</tr>
</table>
示例3:
echo tsmText::_('com_tsmart_ADMIN_CFG_PRICES_ROUNDING');
?>
</th>
</tr>
<?php
echo ShopFunctions::writePriceConfigLine($this->shoppergroup, 'basePrice', 'com_tsmart_ADMIN_CFG_PRICE_BASEPRICE');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup, 'variantModification', 'com_tsmart_ADMIN_CFG_PRICE_VARMOD');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup, 'basePriceVariant', 'com_tsmart_ADMIN_CFG_PRICE_BASEPRICE_VAR');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup, 'basePriceWithTax', 'com_tsmart_ADMIN_CFG_PRICE_BASEPRICE_WTAX');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup, 'discountedPriceWithoutTax', 'com_tsmart_ADMIN_CFG_PRICE_DISCPRICE_WOTAX');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup, 'salesPriceWithDiscount', 'com_tsmart_ADMIN_CFG_PRICE_SALESPRICE_WD');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup, 'salesPrice', 'com_tsmart_ADMIN_CFG_PRICE_SALESPRICE');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup, 'priceWithoutTax', 'com_tsmart_ADMIN_CFG_PRICE_SALESPRICE_WOTAX');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup, 'discountAmount', 'com_tsmart_ADMIN_CFG_PRICE_DISC_AMOUNT');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup, 'taxAmount', 'com_tsmart_ADMIN_CFG_PRICE_TAX_AMOUNT');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup, 'unitPrice', 'com_tsmart_ADMIN_CFG_PRICE_UNITPRICE');
?>
</table>
</fieldset>
</div>
<input type="hidden" name="default" value="<?php
echo $this->shoppergroup->default;
?>
" />
<input type="hidden" name="tsmart_shoppergroup_id" value="<?php
echo $this->shoppergroup->tsmart_shoppergroup_id;
?>
" />
<?php
示例4:
<tr>
<th></th>
<th><?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_PRICES_LABEL');
?>
</th>
<th><?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_PRICES_TEXT');
?>
</th>
<th><?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_PRICES_ROUNDING');
?>
</th>
</tr>
<?php
echo ShopFunctions::writePriceConfigLine($this->config, 'basePrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE');
echo ShopFunctions::writePriceConfigLine($this->config, 'variantModification', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_VARMOD');
echo ShopFunctions::writePriceConfigLine($this->config, 'basePriceVariant', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE_VAR');
echo ShopFunctions::writePriceConfigLine($this->config, 'discountedPriceWithoutTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_DISCPRICE_WOTAX');
echo ShopFunctions::writePriceConfigLine($this->config, 'priceWithoutTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE_WOTAX');
echo ShopFunctions::writePriceConfigLine($this->config, 'taxAmount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_TAX_AMOUNT');
echo ShopFunctions::writePriceConfigLine($this->config, 'basePriceWithTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE_WTAX');
echo ShopFunctions::writePriceConfigLine($this->config, 'salesPrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE');
echo ShopFunctions::writePriceConfigLine($this->config, 'salesPriceWithDiscount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE_WD');
echo ShopFunctions::writePriceConfigLine($this->config, 'discountAmount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_DISC_AMOUNT');
?>
</table>
</fieldset>
</td></tr>
</table>
示例5:
<th><?php
echo JText::_('COM_VIRTUEMART_ADMIN_CFG_PRICES_ROUNDING');
?>
</th>
</tr>
<?php
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'basePrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'variantModification', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_VARMOD');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'basePriceVariant', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE_VAR');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'basePriceWithTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_BASEPRICE_WTAX');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'discountedPriceWithoutTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_DISCPRICE_WOTAX');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'salesPriceWithDiscount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE_WD');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'salesPrice', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'priceWithoutTax', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_SALESPRICE_WOTAX');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'discountAmount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_DISC_AMOUNT');
echo ShopFunctions::writePriceConfigLine($this->shoppergroup->price_display, 'taxAmount', 'COM_VIRTUEMART_ADMIN_CFG_PRICE_TAX_AMOUNT');
?>
</table>
</fieldset>
</div>
<input type="hidden" name="default" value="<?php
echo $this->shoppergroup->default;
?>
" />
<input type="hidden" name="virtuemart_shoppergroup_id" value="<?php
echo $this->shoppergroup->virtuemart_shoppergroup_id;
?>
" />
<?php
示例6:
<th><?php
echo tsmText::_('com_tsmart_ADMIN_CFG_PRICES_LABEL');
?>
</th>
<th><?php
echo tsmText::_('com_tsmart_ADMIN_CFG_PRICES_TEXT');
?>
</th>
<th><?php
echo tsmText::_('com_tsmart_ADMIN_CFG_PRICES_ROUNDING');
?>
</th>
</tr>
<?php
echo ShopFunctions::writePriceConfigLine($this->config->_params, 'basePrice', 'com_tsmart_ADMIN_CFG_PRICE_BASEPRICE');
echo ShopFunctions::writePriceConfigLine($this->config->_params, 'variantModification', 'com_tsmart_ADMIN_CFG_PRICE_VARMOD');
echo ShopFunctions::writePriceConfigLine($this->config->_params, 'basePriceVariant', 'com_tsmart_ADMIN_CFG_PRICE_BASEPRICE_VAR');
echo ShopFunctions::writePriceConfigLine($this->config->_params, 'discountedPriceWithoutTax', 'com_tsmart_ADMIN_CFG_PRICE_DISCPRICE_WOTAX', 0);
echo ShopFunctions::writePriceConfigLine($this->config->_params, 'priceWithoutTax', 'com_tsmart_ADMIN_CFG_PRICE_SALESPRICE_WOTAX', 0);
echo ShopFunctions::writePriceConfigLine($this->config->_params, 'taxAmount', 'com_tsmart_ADMIN_CFG_PRICE_TAX_AMOUNT', 0);
echo ShopFunctions::writePriceConfigLine($this->config->_params, 'basePriceWithTax', 'com_tsmart_ADMIN_CFG_PRICE_BASEPRICE_WTAX');
echo ShopFunctions::writePriceConfigLine($this->config->_params, 'salesPrice', 'com_tsmart_ADMIN_CFG_PRICE_SALESPRICE');
echo ShopFunctions::writePriceConfigLine($this->config->_params, 'salesPriceWithDiscount', 'com_tsmart_ADMIN_CFG_PRICE_SALESPRICE_WD');
echo ShopFunctions::writePriceConfigLine($this->config->_params, 'discountAmount', 'com_tsmart_ADMIN_CFG_PRICE_DISC_AMOUNT');
echo ShopFunctions::writePriceConfigLine($this->config->_params, 'unitPrice', 'com_tsmart_ADMIN_CFG_PRICE_UNITPRICE');
?>
</table>
</fieldset>
</td>
</tr>
</table>