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?
Asked
Active
Viewed 1,956 times
1
-
Which shipping options are you using? – seanbreeden Jan 29 '15 at 15:32
-
As far as I know the client handles their own shipping and use 14% of the products price for thier handling fee. – Tim Deffner Jan 29 '15 at 21:54
2 Answers
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
-
I should add that its 14% of the price of the item. Not sure if thats something that is doable in the attributes. And I do not want to have to go back into every product and add the fee by hand. – Tim Deffner Jan 29 '15 at 15:24
-
Do you have a list of products (skus, whatever) that this will apply to? – easymoden00b Jan 29 '15 at 15:32
-
-
if it applies to all products that is the same as applying it to the total. check out this – easymoden00b Jan 29 '15 at 15:53
-
-
using ikantam method I am having trouble with the config.xml file when i paste it into the main default confix.xml it breaks the shopping cart – Tim Deffner Jan 29 '15 at 21:13
-
this module should help https://www.scommerce-mage.co.uk/magento-surcharge-or-additional-fee.html – stevensagaar Nov 10 '16 at 09:44