\BulkPrice
Object that represents a bulk price in the database. By default this object has 2 fields:
Quantity: the number of items needed to be purchased to qualify for
the new price. This can either be an Int (EG 10), a range (EG 10-19),
or a number or above (EG: 50+)
Price: The number that will replace the price of the product
associated with this discount.
- Author: i-lateral (http://www.i-lateral.com)
Synopsis
class BulkPrice
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- // methods
- public void onBeforeWrite()
- public void canView()
- public void canCreate()
- public void canEdit()
- public void canDelete()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $has_one
- $summary_fields