本文整理匯總了PHP中Magento\Quote\Model\Quote\Address::getBaseSubtotalInclTax方法的典型用法代碼示例。如果您正苦於以下問題:PHP Address::getBaseSubtotalInclTax方法的具體用法?PHP Address::getBaseSubtotalInclTax怎麽用?PHP Address::getBaseSubtotalInclTax使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Magento\Quote\Model\Quote\Address
的用法示例。
在下文中一共展示了Address::getBaseSubtotalInclTax方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: processTotalAmount
/**
* Process row amount based on FPT total amount configuration setting
*
* @param \Magento\Quote\Model\Quote\Address $address
* @param float $rowValueExclTax
* @param float $baseRowValueExclTax
* @param float $rowValueInclTax
* @param float $baseRowValueInclTax
* @return $this
*/
protected function processTotalAmount($address, $rowValueExclTax, $baseRowValueExclTax, $rowValueInclTax, $baseRowValueInclTax)
{
if ($this->weeeData->includeInSubtotal($this->_store)) {
$address->addTotalAmount('subtotal', $rowValueExclTax);
$address->addBaseTotalAmount('subtotal', $baseRowValueExclTax);
} else {
$address->addTotalAmount('weee', $rowValueExclTax);
$address->addBaseTotalAmount('weee', $baseRowValueExclTax);
}
$address->setSubtotalInclTax($address->getSubtotalInclTax() + $rowValueInclTax);
$address->setBaseSubtotalInclTax($address->getBaseSubtotalInclTax() + $baseRowValueInclTax);
return $this;
}
示例2: processTotalAmount
/**
* Process row amount based on FPT total amount configuration setting
*
* @param \Magento\Quote\Model\Quote\Address $address
* @param float $rowValueExclTax
* @param float $baseRowValueExclTax
* @param float $rowValueInclTax
* @param float $baseRowValueInclTax
* @return $this
*/
protected function processTotalAmount($address, $rowValueExclTax, $baseRowValueExclTax, $rowValueInclTax, $baseRowValueInclTax)
{
if (!$this->weeeData->isTaxable($this->_store)) {
//Accumulate the values. Will be used later in the 'weee tax' collector
$this->weeeTotalExclTax += $this->priceCurrency->round($rowValueExclTax);
$this->weeeBaseTotalExclTax += $this->priceCurrency->round($baseRowValueExclTax);
}
//This value is used to calculate shipping cost; it will be overridden by tax collector
$address->setSubtotalInclTax($address->getSubtotalInclTax() + $this->priceCurrency->round($rowValueInclTax));
$address->setBaseSubtotalInclTax($address->getBaseSubtotalInclTax() + $this->priceCurrency->round($baseRowValueInclTax));
return $this;
}