\PriceTier
BasePrice is always the first tier.
We only need the minimum side of the range.
- Author: Mark Guinn <mark@adaircreative.com>
Synopsis
class PriceTier
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $casting = ;
- private static string $default_sort = 'MinQty';
- private static array $summary_fields = ;
- private static array $searchable_fields = ;
- // methods
- public float calcPrice()
- public FieldList getCMSFields()
Hierarchy
Extends
- DataObject
Members
private
- $casting
- $db
- $default_sort
- $has_one
- $searchable_fields
- $summary_fields
Methods
public
- calcPrice() — Calculate the price for this tier from a given base price
- getCMSFields()