I am trying to get order modifiers working. I wrote a shipping modifier which worked intermittently, and now I cannot get any order modifiers to work.
Here is my entire test class:
class TestModifier extends OrderModifier {
function LiveAmount() {
return 1;
}
function TableTitle() {
return 'Test';
}
}
And I've added the following to mysite/_config.php:
Order::set_modifiers(array('TestModifier'));
The result is a line item on the checkout page that says "Test" and has a total column value of $0.00 (and the order total is not increased by 1 either).
Surely I am overlooking something simple.
Thanks in advance,
David