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?
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
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
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?
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';
}
}