本文整理汇总了PHP中Magento\Tax\Helper\Data::displaySalesPriceInclTax方法的典型用法代码示例。如果您正苦于以下问题:PHP Data::displaySalesPriceInclTax方法的具体用法?PHP Data::displaySalesPriceInclTax怎么用?PHP Data::displaySalesPriceInclTax使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Tax\Helper\Data
的用法示例。
在下文中一共展示了Data::displaySalesPriceInclTax方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayPriceInclTax
/**
* Return whether display setting is to display price including tax
*
* @return bool
*/
public function displayPriceInclTax()
{
switch ($this->zone) {
case PricingRender::ZONE_CART:
return $this->taxHelper->displayCartPriceInclTax($this->storeId);
case PricingRender::ZONE_EMAIL:
case PricingRender::ZONE_SALES:
return $this->taxHelper->displaySalesPriceInclTax($this->storeId);
default:
return $this->taxHelper->displayCartPriceInclTax($this->storeId);
}
}
示例2: getItemPricesForDisplay
/**
* Get array of arrays with item prices information for display in PDF
*
* Format: array(
* $index => array(
* 'label' => $label,
* 'price' => $price,
* 'subtotal' => $subtotal
* )
* )
*
* @return array
*/
public function getItemPricesForDisplay()
{
$order = $this->getOrder();
$item = $this->getItem();
if ($this->_taxData->displaySalesBothPrices()) {
$prices = array(array('label' => __('Excl. Tax') . ':', 'price' => $order->formatPriceTxt($item->getPrice()), 'subtotal' => $order->formatPriceTxt($item->getRowTotal())), array('label' => __('Incl. Tax') . ':', 'price' => $order->formatPriceTxt($item->getPriceInclTax()), 'subtotal' => $order->formatPriceTxt($item->getRowTotalInclTax())));
} elseif ($this->_taxData->displaySalesPriceInclTax()) {
$prices = array(array('price' => $order->formatPriceTxt($item->getPriceInclTax()), 'subtotal' => $order->formatPriceTxt($item->getRowTotalInclTax())));
} else {
$prices = array(array('price' => $order->formatPriceTxt($item->getPrice()), 'subtotal' => $order->formatPriceTxt($item->getRowTotal())));
}
return $prices;
}