当前位置: 首页>>代码示例>>PHP>>正文


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怎么用?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;
 }
开发者ID:hyhoocchan,项目名称:mage-local,代码行数:11,代码来源:Giftwrapping.php

示例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;
 }
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:11,代码来源:Giftwrapping.php

示例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;
 }
开发者ID:onepica,项目名称:avatax,代码行数:32,代码来源:Estimate.php


注:本文中的Mage_Sales_Model_Quote_Address::getGwBasePrice方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。