本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
}
}
示例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;
}
示例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;
}
示例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;
}