\BuckarooPaymentModifier
as a starting point for writing their own modifiers.
- Author: Nicolaas [at] sunnysideup.co.nz
Synopsis
class BuckarooPaymentModifier
extends OrderModifier
{
- // members
- protected static Array $charges = ;
- public static string $singular_name = "Buckaroo Payment Surcharge";
- public static string $plural_name = "Buckaroo Payment Surcharges";
- // methods
- public static void set_charges()
- public static void get_charges()
- public static void add_charge()
- public static void remove_charge()
- public void i18n_singular_name()
- public void i18n_plural_name()
- public void updateName()
- public void ShowForm()
- public Boolean ShowFormInEditableOrderTable()
- public Boolean ShowFormOutsideEditableOrderTable()
- public Boolean ShowInTable()
- public Boolean CanBeRemoved()
- public void LiveName()
- public Boolean HideInAjaxUpdate()
Hierarchy
Extends
- OrderModifier
Members
Methods
public
- CanBeRemoved() — standard OrderModifer Method Tells us if the modifier can be removed (hidden / turned off) from the order.
- HideInAjaxUpdate() — some modifiers can be hidden after an ajax update (e.g. if someone enters a discount coupon and it does not exist).
- LiveName()
- ShowForm() — standard OrderModifier Method Should we show a form in the checkout page for this modifier?
- ShowFormInEditableOrderTable() — Should the form be included in the editable form on the checkout page?
- ShowFormOutsideEditableOrderTable() — Should the form be included in the editable form on the checkout page?
- ShowInTable() — standard OrderModifer Method Tells us if the modifier should take up a row in the table on the checkout page.
- add_charge()
- get_charges()
- i18n_plural_name()
- i18n_singular_name()
- remove_charge()
- set_charges()
- updateName() — allows you to save a new value to Name