Jump to:

2088 Posts in 1008 Topics by 455 members

E-Commerce Modules

SilverStripe Forums » E-Commerce Modules » Add a handling fee

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

Page: 1
Go to End
Author Topic: 982 Views
  • DeklinKelly
    Community Member
    197 Posts

    Add a handling fee Link to this post

    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?

  • phuell
    Community Member
    3 Posts

    Re: Add a handling fee Link to this post

    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';

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.