SilverShop\Model\Modifiers\Shipping\Base
Synopsis
class Base
extends OrderModifier
{
- // members
- private static string $singular_name = 'Shipping';
- // methods
- public void required()
- public void requiredBeforePlace()
- // Inherited methods from OrderModifier
- public void required()
- public $subtotal modify()
- public void value()
- public void valid()
- public void Amount()
- public void TableValue()
- public boolean Total()
- public boolean IsChargable()
- public boolean canRemove()
- // Inherited methods from OrderAttribute
- public void canCreate()
- public void canDelete()
- public void isLive()
- public string getTableTitle()
- public void getCartTitle()
- public void ShowInTable()
Hierarchy
Tasks
Line | Task |
---|---|
13 | make it optional |
Members
private
- $singular_name
Methods
public
Inherited from SilverShop\Model\Modifiers\OrderModifier
public
- Amount() — This function is always called to determine the amount this modifier needs to charge or deduct.
- IsChargable() — Checks if this modifier has type = Chargable
- TableValue() — Monetary to use in templates.
- Total() — Provides a modifier total that is positive or negative, depending on whether the modifier is chargable or not.
- canRemove() — Checks if the modifier can be removed.
- modify() — Modifies the incoming value by adding, subtracting or ignoring the value this modifier calculates.
- required() — Specifies whether this modifier is always required in an order.
- valid() — Check if the modifier should be in the cart.
- value() — Calculates value to store, based on incoming running total.
Inherited from SilverShop\Model\OrderAttribute
public
- ShowInTable()
- canCreate()
- canDelete()
- getCartTitle()
- getTableTitle() — Produces a title for use in templates.
- isLive()