\EcommerceCorporateGroupBuyableDecorator
adds functionality for buyables
- Author: nicolaas
Synopsis
class EcommerceCorporateGroupBuyableDecorator
extends DataObjectDecorator
{
- // members
- protected static Boolean $only_approved_customers_can_purchase = true;
- // methods
- public static void set_only_approved_customers_can_purchase()
- public static void get_only_approved_customers_can_purchase()
- public Boolean isApprovedCorporateCustomer()
- public Double updateCalculatedPrice()
- public Double updateDisplayPrice()
- public Boolean canPurchase()
Hierarchy
Extends
- DataObjectDecorator
Members
protected
- $only_approved_customers_can_purchase
—
Boolean
If set to true, only approved customers can make purchases
Methods
public
- canPurchase() — non-approved customers should not be able to see the price Note that because it is an extension is actually returns an array!!
- get_only_approved_customers_can_purchase()
- isApprovedCorporateCustomer() — Is the current customer an approved member?
- set_only_approved_customers_can_purchase()
- updateCalculatedPrice() — non-approved customers should not be able to see the price Note that because it is an extension is actually returns an array!!
- updateDisplayPrice() — non-approved customers should not be able to see the price Note that because it is an extension is actually returns an array!!