Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

Add a handling fee


Go to End


2 Posts   1264 Views

Avatar
DeklinKelly

Community Member, 197 Posts

7 August 2009 at 5:52am

I want to add a $5.00 handling fee to all orders, regardless of how many items are purchased.

How can I add $5.00 below the sub total and $5.00 to the grand total on the checkout page?

Avatar
phuell

Community Member, 3 Posts

14 December 2009 at 10:17pm

Ok, a little old. But I guess someone could find it useful.

have a look at http://doc.silverstripe.org/doku.php?id=ecommerce:overview#ordermodifier

something like

class HandlingModifier extends OrderModifier {
	
	protected static $is_chargable = true;
 
	function LiveAmount() {
		return 5;
	}
	
	function TableTitle() {
		return 'Handling Fee';
	}
	
}