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


PHP Mage_Sales_Model_Quote_Address::getFeeAmount方法代码示例

本文整理汇总了PHP中Mage_Sales_Model_Quote_Address::getFeeAmount方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Sales_Model_Quote_Address::getFeeAmount方法的具体用法?PHP Mage_Sales_Model_Quote_Address::getFeeAmount怎么用?PHP Mage_Sales_Model_Quote_Address::getFeeAmount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Sales_Model_Quote_Address的用法示例。


在下文中一共展示了Mage_Sales_Model_Quote_Address::getFeeAmount方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: fetch

 /**
  * Add fee information to address
  *
  * @param Mage_Sales_Model_Quote_Address $address
  * @return Brander_PaymentFee_Model_Sales_Quote_Address_Total_Fee
  */
 public function fetch(Mage_Sales_Model_Quote_Address $address)
 {
     $amount = $address->getFeeAmount();
     $title = Mage::getModel('payment_fee/fee')->getTotalTitle(null, $address->getQuote());
     $address->addTotal(array('code' => $this->getCode(), 'title' => $title, 'value' => $amount));
     return $this;
 }
开发者ID:kirchbergerknorr,项目名称:payment-fee,代码行数:13,代码来源:Fee.php

示例2: fetch

 public function fetch(Mage_Sales_Model_Quote_Address $address)
 {
     $quote = $address->getQuote();
     if ($quote->getPayment()->getMethod() == "cashondelivery") {
         $amt = $address->getFeeAmount();
         $address->addTotal(array('code' => $this->getCode(), 'title' => "Cash On Delivery Charges", 'value' => $amt));
     }
     return $this;
 }
开发者ID:axovel,项目名称:exqzt,代码行数:9,代码来源:Codpayment.php

示例3: fetch

 public function fetch(Mage_Sales_Model_Quote_Address $address)
 {
     $amount = $address->getFeeAmount();
     if (!$amount) {
         return $this;
     }
     $address->addTotal(array('code' => $this->getCode(), 'title' => Mage::helper('pagarme')->__('Fee'), 'value' => $amount));
     return $this;
 }
开发者ID:eneiasramos,项目名称:pagarme-magento,代码行数:9,代码来源:Fee.php

示例4: fetch

 public function fetch(Mage_Sales_Model_Quote_Address $address)
 {
     $setFee = Mage::getStoreConfig('fee/general/active');
     if ($setFee == 1) {
         $amt = $address->getFeeAmount();
         if ($amt) {
             $address->addTotal(array('code' => $this->getCode(), 'title' => Mage::helper('fee')->getFeeLabel(), 'value' => $amt));
             return $this;
         }
     }
 }
开发者ID:xiaoguizhidao,项目名称:Magento-Extensions,代码行数:11,代码来源:Fee.php

示例5: fetch

 public function fetch(Mage_Sales_Model_Quote_Address $address)
 {
     $amt = $address->getFeeAmount();
     $is_set_remote = Mage::getModel('checkout/cart')->canApplyRemoteInstallation();
     if ($is_set_remote == 1) {
         if ($amt != '0.00') {
             $address->addTotal(array('code' => $this->getCode(), 'title' => Mage::helper('fee')->__('Remote Instllation Fee'), 'value' => $amt));
         }
     }
     return $this;
 }
开发者ID:axovel,项目名称:easycarcare,代码行数:11,代码来源:Fee.php

示例6: fetch

 public function fetch(Mage_Sales_Model_Quote_Address $address)
 {
     $quote = $address->getQuote();
     $payment = $quote->getPayment();
     try {
         $method = $payment->getMethodInstance();
     } catch (Mage_Core_Exception $e) {
         return $this;
     }
     if ($method->getCode() != 'billmateinvoice') {
         return $this;
     }
     $amt = $address->getFeeAmount();
     $extra = '';
     if (Mage::getStoreConfig('payment/billmateinvoice/tax_class') && $address->getFeeTaxAmount() > 0) {
         $extra = ' (Incl. Vat)';
         $amt += $address->getFeeTaxAmount();
     } else {
         $extra = ' (Excl. Vat)';
     }
     $address->addTotal(array('code' => $this->getCode(), 'title' => Mage::helper('billmateinvoice')->__('Billmate Invoice Fee' . $extra), 'value' => $amt));
     return $this;
 }
开发者ID:ext,项目名称:magento,代码行数:23,代码来源:Fee.php

示例7: fetch

 /**
  * Add fee information to address
  *
  * @param Mage_Sales_Model_Quote_Address $address
  * @return Magentix_Fee_Model_Sales_Quote_Address_Total_Fee
  */
 public function fetch(Mage_Sales_Model_Quote_Address $address)
 {
     $amount = $address->getFeeAmount();
     $address->addTotal(array('code' => $this->getCode(), 'title' => Mage::helper('fee')->__('Shipping & Handling Charges'), 'value' => $amount));
     return $this;
 }
开发者ID:mSupply,项目名称:runnable_test_repo,代码行数:12,代码来源:Fee.php


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