Order delivery manager. Currently calculates price/costs.
Definition at line 8 of file oxdelivery.php.
oxDelivery.__construct | ( | ) |
Class constructor, initiates parent constructor (parent.oxBase()).
Reimplemented from oxI18n.
Definition at line 116 of file oxdelivery.php.
oxDelivery._checkDeliveryAmount | ( | $ | iAmount | ) | [protected] |
checks if amount param is ok for this delivery
double | $iAmount amount |
Definition at line 434 of file oxdelivery.php.
oxDelivery._getCostSum | ( | ) | [protected] |
oxDelivery._getMultiplier | ( | ) | [protected] |
Calculate multiplier for price calculation
Definition at line 559 of file oxdelivery.php.
oxDelivery._isForArticle | ( | $ | oContent, | |
$ | iArtAmount | |||
) | [protected] |
Checks if delivery fits for one article
object | $oContent shop basket item | |
integer | $iArtAmount product amount |
Definition at line 415 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 oxI18n.
Definition at line 287 of file oxdelivery.php.
oxDelivery.getAddSum | ( | ) |
oxDelivery.getAddSumType | ( | ) |
Returns type of cost: % - percentage; abs - absolute value
Definition at line 549 of file oxdelivery.php.
oxDelivery.getArticles | ( | ) |
Collects article Ids which are assigned to current delivery
Definition at line 138 of file oxdelivery.php.
oxDelivery.getCalculationRule | ( | ) |
Returns calculation rule: 0 - Once per Cart; 1 - Once for each different product 2 - For each product
Definition at line 529 of file oxdelivery.php.
oxDelivery.getCategories | ( | ) |
Collects category Ids which are assigned to current delivery
Definition at line 155 of file oxdelivery.php.
oxDelivery.getConditionFrom | ( | ) |
Returns condition from value (type >= from <= to)
Definition at line 509 of file oxdelivery.php.
oxDelivery.getConditionTo | ( | ) |
Returns condition to value (type >= from <= to)
Definition at line 519 of file oxdelivery.php.
oxDelivery.getConditionType | ( | ) |
Returns condition type (type >= from <= to) : a - amount, s - size, w -weight, p - price
Definition at line 499 of file oxdelivery.php.
oxDelivery.getCountriesISO | ( | ) |
Returns array of country ISO's which are assigned to current delivery
Definition at line 471 of file oxdelivery.php.
oxDelivery.getDeliveryAmount | ( | $ | oBasketItem | ) |
Returns amount (total net price/weight/volume/Amount) on which delivery price is applied
oxBasketItem | $oBasketItem basket item object |
Definition at line 194 of file oxdelivery.php.
oxDelivery.getDeliveryPrice | ( | $ | dVat = null |
) |
Returns oxPrice object for delivery costs
double | $dVat delivery vat |
Definition at line 261 of file oxdelivery.php.
oxDelivery.getIdByName | ( | $ | sTitle | ) |
returns delivery id
string | $sTitle delivery name |
Definition at line 457 of file oxdelivery.php.
oxDelivery.hasArticles | ( | ) |
Checks if delivery has assigned articles
Definition at line 172 of file oxdelivery.php.
oxDelivery.hasCategories | ( | ) |
Checks if delivery has assigned categories
Definition at line 182 of file oxdelivery.php.
oxDelivery.isForBasket | ( | $ | oBasket | ) |
Checks if delivery fits for current basket
oxBasket | $oBasket shop basket |
Definition at line 311 of file oxdelivery.php.
oxDelivery.setDeliveryPrice | ( | $ | oPrice | ) |
Delivery price setter
oxPrice | $oPrice delivery price to set |
Definition at line 249 of file oxdelivery.php.
oxDelivery.setDelVatOnTop | ( | $ | blOnTop | ) |
Delivery VAT config setter
bool | $blOnTop delivery vat config |
Definition at line 128 of file oxdelivery.php.
oxDelivery.$_aArtIds = null [protected] |
Definition at line 69 of file oxdelivery.php.
oxDelivery.$_aCatIds = null [protected] |
Definition at line 76 of file oxdelivery.php.
oxDelivery.$_aCountriesISO = null [protected] |
Definition at line 104 of file oxdelivery.php.
oxDelivery.$_aProductList = array() [static, protected] |
Definition at line 90 of file oxdelivery.php.
oxDelivery.$_aRDFaDeliverySet = null [protected] |
Definition at line 111 of file oxdelivery.php.
oxDelivery.$_blDelVatOnTop = false [protected] |
Definition at line 97 of file oxdelivery.php.
oxDelivery.$_blFreeShipping = true [protected] |
Definition at line 83 of file oxdelivery.php.
oxDelivery.$_dPrice = 0 [protected] |
Definition at line 55 of file oxdelivery.php.
oxDelivery.$_iItemCnt = 0 [protected] |
Definition at line 39 of file oxdelivery.php.
oxDelivery.$_iProdCnt = 0 [protected] |
Definition at line 47 of file oxdelivery.php.
oxDelivery.$_oPrice = null [protected] |
Definition at line 62 of file oxdelivery.php.
oxDelivery.$_sClassName = 'oxdelivery' [protected] |
Reimplemented from oxI18n.
Definition at line 31 of file oxdelivery.php.
Definition at line 15 of file oxdelivery.php.
Definition at line 16 of file oxdelivery.php.
Calculation rule
Definition at line 14 of file oxdelivery.php.
const oxDelivery.CONDITION_TYPE_AMOUNT = 'a' |
Definition at line 22 of file oxdelivery.php.
const oxDelivery.CONDITION_TYPE_PRICE = 'p' |
Condition type
Definition at line 21 of file oxdelivery.php.
const oxDelivery.CONDITION_TYPE_SIZE = 's' |
Definition at line 23 of file oxdelivery.php.
const oxDelivery.CONDITION_TYPE_WEIGHT = 'w' |
Definition at line 24 of file oxdelivery.php.