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.

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, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba, simon_w

Add a handling fee


Reply


2 Posts   1030 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';
   }
   
}