1

I have a client that needs a a handling fee of 14% of every item that a person purchases. I have exhausted any further options to figure this out via magento connect. Anyone have any Ideas?

2 Answers2

1

Take a look at Magento Add Fee or Discount to Order Totals

public function collect(Mage_Sales_Model_Quote_Address $address)f  
   ....
   $exist_amount = $quote->getFeeAmount();

   $total = $exist_amount * 1.14;
   $address->setFeeAmount($total);
   $address->setBaseFeeAmount($total);

   $quote->setFeeAmount($total);

  $address->setGrandTotal($address->getGrandTotal() + $address->getFeeAmount());
  $address->setBaseGrandTotal($address->getBaseGrandTotal() + $address->getBaseFeeAmount());
  .....
MagePal Extensions
  • 13,911
  • 2
  • 33
  • 52
0

I assume you want different products to have this fee so...

Create a product attribute like 'handling' or something similar. When you add products to the cart check each product to conditionally add this fee to the total!

easymoden00b
  • 1,277
  • 2
  • 26
  • 55