\Modification
Modification for the {@link Order}, saves data that is set by {@link Modifier}s e.g: shipping, tax, vouchers etc. Instead of linking to a {@link Modifier} it takes the Amount that the modifier will ammend the {@link Order} total by and the Description of the Modifier and saves that - denormalising the data - so that Modifiers can be deleted without losing any information from the Order.
- Author: Plato Creative
- Copyright: Copyright (c) 2017, Plato Creative
Synopsis
class Modification
extends DataObject
{
- // members
- private static Array $db = ;
- private static Array $has_one = ;
- private static string $default_sort = 'SortOrder ASC';
- // methods
- public static void get_all()
- public void Amount()
- public Price Price()
- public void add()
- public void getFormFields()
- public void ShowOrderModification()
Hierarchy
Extends
- DataObject
Tasks
Line | Task |
---|---|
65 | Multi currency |
Members
private
Methods
public
- Amount()
- Price() — Display price, can decorate for multiple currency etc.
- ShowOrderModification()
- add()
- getFormFields()
- get_all()