SilverCommerce\OrdersAdmin\Model\LineItemCustomisation
A single customisation that can be applied to a LineItem.
A customisation by default allows the following details:
- Title: The name of the customisation (eg. "Colour")
- Value: The data associated with thie customisation (eg. "Red")
- Price: Does this customisation change the LineItem's price?
Synopsis
class LineItemCustomisation
extends DataObject
implements
TaxableProvider
{
- // members
- private static string $table_name = 'LineItemCustomisation';
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- private static array $field_labels = ;
- // methods
- public void getBasePrice()
- public void getTaxRate()
- public void getLocale()
- public bool getShowPriceWithTax()
- public false getShowTaxString()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Uses
- SilverCommerce\TaxAdmin\Traits\Taxable
Implements
- SilverCommerce\TaxAdmin\Interfaces\TaxableProvider
Members
private
- $db
—
array
Standard database columns - $field_labels
- $has_one
—
array
DB foreign key associations - $summary_fields
—
array
Fields to display in gridfields - $table_name
Methods
public
- getBasePrice()
- getLocale()
- getShowPriceWithTax() — Get should this field automatically show the price including TAX?
- getShowTaxString() — We don't want to show a tax string on Line Items
- getTaxRate()