本文整理汇总了PHP中Mage_Sales_Model_Quote_Address::getGwBasePrice方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Sales_Model_Quote_Address::getGwBasePrice方法的具体用法?PHP Mage_Sales_Model_Quote_Address::getGwBasePrice怎么用?PHP Mage_Sales_Model_Quote_Address::getGwBasePrice使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Sales_Model_Quote_Address
的用法示例。
在下文中一共展示了Mage_Sales_Model_Quote_Address::getGwBasePrice方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fetch
/**
* Assign wrapping totals and labels to address object
*
* @param Mage_Sales_Model_Quote_Address $address
* @return Mage_Sales_Model_Quote_Address_Total_Subtotal
*/
public function fetch(Mage_Sales_Model_Quote_Address $address)
{
$address->addTotal(array('code' => $this->getCode(), 'gw_price' => $address->getGwPrice(), 'gw_base_price' => $address->getGwBasePrice(), 'gw_items_price' => $address->getGwItemsPrice(), 'gw_items_base_price' => $address->getGwItemsBasePrice(), 'gw_card_price' => $address->getGwCardPrice(), 'gw_card_base_price' => $address->getGwCardBasePrice()));
return $this;
}
示例2: fetch
/**
* Assign wrapping tax totals and labels to address object
*
* @param Mage_Sales_Model_Quote_Address $address
* @return Enterprise_GiftWrapping_Model_Total_Quote_Tax_Giftwrapping
*/
public function fetch(Mage_Sales_Model_Quote_Address $address)
{
$address->addTotal(array('code' => 'giftwrapping', 'gw_price' => $address->getGwPrice(), 'gw_base_price' => $address->getGwBasePrice(), 'gw_items_price' => $address->getGwItemsPrice(), 'gw_items_base_price' => $address->getGwItemsBasePrice(), 'gw_card_price' => $address->getGwCardPrice(), 'gw_card_base_price' => $address->getGwCardBasePrice(), 'gw_tax_amount' => $address->getGwTaxAmount(), 'gw_base_tax_amount' => $address->getGwBaseTaxAmount(), 'gw_items_tax_amount' => $address->getGwItemsTaxAmount(), 'gw_items_base_tax_amount' => $address->getGwItemsBaseTaxAmount(), 'gw_card_tax_amount' => $address->getGwCardTaxAmount(), 'gw_card_base_tax_amount' => $address->getGwCardBaseTaxAmount()));
return $this;
}
示例3: _addGwOrderAmount
/**
* Adds giftwraporder cost to request as item (for order)
*
* @param Mage_Sales_Model_Quote_Address $address
* @return int|bool
*/
protected function _addGwOrderAmount($address)
{
if (!$address->getGwPrice()) {
return false;
}
$lineNumber = $this->_getNewLineCode();
$storeId = $address->getQuote()->getStore()->getId();
//Add gift wrapping price(for entire order)
$gwOrderAmount = $address->getGwBasePrice();
$line = $this->_getNewDocumentRequestLineObject();
$line->setLineCode($lineNumber);
$gwOrderSku = $this->_getConfigHelper()->getGwOrderSku($storeId);
$line->setItemCode($gwOrderSku ? $gwOrderSku : self::DEFAULT_GW_ORDER_SKU);
$line->setItemDescription(self::DEFAULT_GW_ORDER_DESCRIPTION);
$line->setAvalaraGoodsAndServicesType($this->_getGiftTaxClassCode($storeId));
$line->setNumberOfItems(1);
$line->setlineAmount($gwOrderAmount);
$line->setDiscounted('false');
if ($this->_getTaxDataHelper()->priceIncludesTax($storeId)) {
$line->setTaxIncluded('true');
}
$this->_lines[$lineNumber] = $line;
$this->_setLinesToRequest();
$this->_lineToLineId[$lineNumber] = $gwOrderSku;
return $lineNumber;
}