本文整理汇总了PHP中Magento\Tax\Helper\Data::displayCartBothPrices方法的典型用法代码示例。如果您正苦于以下问题:PHP Data::displayCartBothPrices方法的具体用法?PHP Data::displayCartBothPrices怎么用?PHP Data::displayCartBothPrices使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Tax\Helper\Data
的用法示例。
在下文中一共展示了Data::displayCartBothPrices方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getReviewItemPriceDisplayMode
/**
* Get review item price display mode
*
* @return string 'both', 'including', 'excluding'
*/
public function getReviewItemPriceDisplayMode()
{
if ($this->taxHelper->displayCartBothPrices()) {
return 'both';
}
if ($this->taxHelper->displayCartPriceExclTax()) {
return 'excluding';
}
return 'including';
}
示例2: renderTotals
/**
* @param mixed $totals
* @param null $colspan
* @return string
*/
public function renderTotals($totals, $colspan = null)
{
if ($colspan === null) {
$colspan = $this->_taxHelper->displayCartBothPrices() ? 5 : 3;
}
$totals = $this->getChildBlock('totals')->setTotals($totals)->renderTotals('', $colspan) . $this->getChildBlock('totals')->setTotals($totals)->renderTotals('footer', $colspan);
return $totals;
}
示例3: displayBothPrices
/**
* Return whether display setting is to display both price including tax and price excluding tax
*
* @return bool
*/
public function displayBothPrices()
{
switch ($this->zone) {
case PricingRender::ZONE_CART:
return $this->taxHelper->displayCartBothPrices($this->storeId);
case PricingRender::ZONE_EMAIL:
case PricingRender::ZONE_SALES:
return $this->taxHelper->displaySalesBothPrices($this->storeId);
default:
return $this->taxHelper->displayCartBothPrices($this->storeId);
}
}