Definition at line 8 of file oxdelivery.php.
Public Member Functions | |
__construct () | |
setDelVatOnTop ($blOnTop) | |
getArticles () | |
getCategories () | |
hasArtices () | |
hasCategories () | |
getDeliveryAmount ($oBasketItem) | |
getDeliveryPrice ($dVat=null) | |
delete ($sOXID=null) | |
isForBasket ($oBasket) | |
Protected Member Functions | |
_checkDeliveryAmount ($iAmount) | |
Protected Attributes | |
$_sCoreTbl = 'oxdelivery' | |
$_sClassName = 'oxdelivery' | |
$_iItemCnt = 0 | |
$_iProdCnt = 0 | |
$_dPrice = 0 | |
$_oPrice = null | |
$_aArtIds = null | |
$_aCatIds = null | |
$_blFreeShipping = true | |
$_blDelVatOnTop = false | |
Static Protected Attributes | |
static | $_aProductList = array() |
oxDelivery.__construct | ( | ) |
Class constructor, initiates parent constructor (parent.oxBase()).
Reimplemented from oxI18n.
Definition at line 93 of file oxdelivery.php.
oxDelivery.setDelVatOnTop | ( | $ | blOnTop | ) |
Delivery VAT config setter
bool | $blOnTop delivery vat config |
Definition at line 107 of file oxdelivery.php.
oxDelivery.getArticles | ( | ) |
Collects article Ids which are assigned to current delivery
Definition at line 117 of file oxdelivery.php.
oxDelivery.getCategories | ( | ) |
Collects category Ids which are assigned to current delivery
Definition at line 141 of file oxdelivery.php.
oxDelivery.hasArtices | ( | ) |
Checks if delivery has assigned articles
Definition at line 164 of file oxdelivery.php.
oxDelivery.hasCategories | ( | ) |
Checks if delivery has assigned categories
Definition at line 174 of file oxdelivery.php.
oxDelivery.getDeliveryAmount | ( | $ | oBasketItem | ) |
Returns amount (total net price/weight/volume/Amount) on which delivery price is applied
object | $oBasketItem basket item object |
Definition at line 186 of file oxdelivery.php.
oxDelivery.getDeliveryPrice | ( | $ | dVat = null |
) |
Returns oxprice object for delivery costs
double | $dVat delivery vat |
Definition at line 230 of file oxdelivery.php.
oxDelivery.delete | ( | $ | sOXID = null |
) |
Delete this object from the database, returns true on success.
string | $sOXID Object ID (default null) |
Reimplemented from oxBase.
Definition at line 285 of file oxdelivery.php.
oxDelivery.isForBasket | ( | $ | oBasket | ) |
Checks if delivery fits for current basket
oxbasket | $oBasket shop basket |
Definition at line 308 of file oxdelivery.php.
oxDelivery._checkDeliveryAmount | ( | $ | iAmount | ) | [protected] |
checks if amount param is ok for this delivery
double | $iAmount amount |
Definition at line 384 of file oxdelivery.php.
oxDelivery.$_sCoreTbl = 'oxdelivery' [protected] |
Definition at line 15 of file oxdelivery.php.
oxDelivery.$_sClassName = 'oxdelivery' [protected] |
oxDelivery.$_iItemCnt = 0 [protected] |
Definition at line 30 of file oxdelivery.php.
oxDelivery.$_iProdCnt = 0 [protected] |
Definition at line 38 of file oxdelivery.php.
oxDelivery.$_dPrice = 0 [protected] |
Definition at line 46 of file oxdelivery.php.
oxDelivery.$_oPrice = null [protected] |
Definition at line 53 of file oxdelivery.php.
oxDelivery.$_aArtIds = null [protected] |
Definition at line 60 of file oxdelivery.php.
oxDelivery.$_aCatIds = null [protected] |
Definition at line 67 of file oxdelivery.php.
oxDelivery.$_blFreeShipping = true [protected] |
Definition at line 74 of file oxdelivery.php.
oxDelivery.$_aProductList = array() [static, protected] |
Definition at line 81 of file oxdelivery.php.
oxDelivery.$_blDelVatOnTop = false [protected] |
Definition at line 88 of file oxdelivery.php.