\CountryPrice_BuyableExtension
Adds pricing to Buyables
Synopsis
class CountryPrice_BuyableExtension
extends DataExtension
{
- // members
- private static array $db = ;
- private static array $many_many = ;
- private static boolean $allow_usage_of_distributor_backup_country_pricing = false;
- private boolean $debug = false;
- private static array $_buyable_price = ;
- protected boolean $isNew = false;
- // methods
- public void updateCMSFields()
- public false canPurchaseByCountry()
- public DataList AllCountryPricesForBuyable()
- public DataList CountryPricesForCountryAndCurrency()
- public void updateBeforeCalculatedPrice()
- public void onBeforeDelete()
- public void onBeforeWrite()
- public void onAfterWrite()
- public null canEdit()
Hierarchy
Extends
- DataExtension
Members
private
- $_buyable_price
- $allow_usage_of_distributor_backup_country_pricing
- $db
- $debug
- $many_many
protected
- $isNew
Methods
public
- AllCountryPricesForBuyable()
- CountryPricesForCountryAndCurrency() — returns all the prices for a particular country and/or currency for the object
- canEdit() — as long as we do not give distributors access to the Products this is fairly safe.
- canPurchaseByCountry() — This is called from /ecommerce/code/Product returning NULL is like returning TRUE OR FALSE, i.e. ignore this.
- onAfterWrite()
- onBeforeDelete() — delete the related prices
- onBeforeWrite()
- updateBeforeCalculatedPrice()
- updateCMSFields()