

| oxBasketItem.init | ( | $ | sProductID, | |
| $ | dAmount, | |||
| $ | blAllowUnevenAmounts, | |||
| $ | aSel = null, |
|||
| $ | aPersParam = null, |
|||
| $ | blBundle = null | |||
| ) |
Assigns basic params to basket item
| string | $sProductID product id | |
| double | $dAmount amount | |
| bool | $blAllowUnevenAmounts allow uneven amounts | |
| array | $aSel selection | |
| array | $aPersParam persistent params | |
| bool | $blBundle bundle |
| oxBasketItem.setAsDiscountArticle | ( | $ | blIsDiscountArticle | ) |
Marks if item is discount bundle ( oxbasketitem._blIsDiscountArticle )
| bool | $blIsDiscountArticle if item is discount bundle |
| oxBasketItem.setAmount | ( | $ | dAmount, | |
| $ | blAllowUnevenAmounts, | |||
| $ | blOverride = true | |||
| ) |
Sets item amount and weight which depends on amount ( oxbasketitem.dAmount, oxbasketitem.dWeight )
| double | $dAmount amount | |
| bool | $blAllowUnevenAmounts allow uneven amounts | |
| bool | $blOverride overide |
| oxOutOfStockException,oxArticleInputException |
| oxBasketItem.setPrice | ( | $ | oPrice | ) |
Sets $this->oPrice
| object | $oPrice price |
| oxBasketItem.getImageUrl | ( | ) |
Getter which returns image path according to SSL mode
| oxBasketItem.getArticle | ( | ) |
| oxBasketItem.getdBundledAmount | ( | ) |
Returns bundle amount
| oxBasketItem.getPrice | ( | ) |
Returns the price.
| oxBasketItem.getUnitPrice | ( | ) |
Returns the price.
| oxBasketItem.getAmount | ( | ) |
Returns the amount of item.
| oxBasketItem.getWeight | ( | ) |
returns the price.
| oxBasketItem.getTitle | ( | ) |
Returns product title
| oxBasketItem.getIcon | ( | ) |
Returns product icon URL
| oxBasketItem.getLink | ( | ) |
Returns product details URL
| oxBasketItem.getShopId | ( | ) |
Returns ID of shop from which this product was added into basket
| oxBasketItem.getSelList | ( | ) |
| oxBasketItem.getChosenSelList | ( | ) |
| oxBasketItem.isBundle | ( | ) |
Returns true if product is bundle
| oxBasketItem.isDiscountArticle | ( | ) |
Returns true if product is given as discount
| oxBasketItem.isSkipDiscount | ( | ) |
Returns true if discount must be skipped for current product
| oxBasketItem.__get | ( | $ | sName | ) |
Special getter function for backwards compatability. Executes methods by rule "get".$sVariableName and returns result processed by executed function.
| string | $sName parameter name |
| oxBasketItem.__sleep | ( | ) |
Does not return _oArticle var on serialisation
| oxBasketItem._setDeprecatedValues | ( | ) | [protected] |
Sets object deprecated values
| oxBasketItem._setArticle | ( | $ | sProductId | ) | [protected] |
Assigns general product parameters to oxbasketitem object :
| string | $sProductId product id |
| oxNoArticleException | exception |
| oxBasketItem._setSelectList | ( | $ | aSelList | ) | [protected] |
Stores item select lists ( oxbasketitem.aSelList )
| array | $aSelList item select lists |
| oxBasketItem.getPersParams | ( | ) |
Get persistent parameters ( oxbasketitem._aPersistentParameters )
| oxBasketItem.setPersParams | ( | $ | aPersParam | ) |
Stores items persistent parameters ( oxbasketitem._aPersistentParameters )
| array | $aPersParam items persistent parameters |
| oxBasketItem.setBundle | ( | $ | blBundle | ) |
Marks if item is bundle ( oxbasketitem.blBundle )
| bool | $blBundle if item is bundle |
| oxBasketItem.setSkipDiscounts | ( | $ | blSkip | ) |
Used to set "skip discounts" status for basket item
| bool | $blSkip set true to skip discounts |
| oxBasketItem.getProductId | ( | ) |
Returns product Id
| oxBasketItem.setWrapping | ( | $ | sWrapId | ) |
Product wrapping paper id setter
| string | $sWrapId wrapping paper id |
| oxBasketItem.getWrappingId | ( | ) |
Returns wrapping paper ID (if such was applied)
| oxBasketItem.getWrapping | ( | ) |
Returns basket item wrapping object
| oxBasketItem.setWishId | ( | $ | sWishId | ) |
| oxBasketItem.setWishArticleId | ( | $ | sArticleId | ) |
Wish article Id setter
| string | $sArticleId wish article id |
| oxBasketItem.getWishArticleId | ( | ) |
Returns wish article Id
| oxBasketItem.getFUnitPrice | ( | ) |
Returns formatted unit price
| oxBasketItem.getFTotalPrice | ( | ) |
Returns formatted total price
| oxBasketItem.getVatPercent | ( | ) |
Returns formatted total price
| oxBasketItem.getVarSelect | ( | ) |
Returns varselect value
oxBasketItem.$_sProductId = null [protected] |
oxBasketItem.$_sTitle = null [protected] |
oxBasketItem.$_sVarSelect = null [protected] |
oxBasketItem.$_sIcon = null [protected] |
oxBasketItem.$_sLink = null [protected] |
oxBasketItem.$_oPrice = null [protected] |
oxBasketItem.$_oUnitPrice = null [protected] |
oxBasketItem.$_dAmount = 0.0 [protected] |
oxBasketItem.$_dWeight = 0 [protected] |
oxBasketItem.$_aSelList = array() [protected] |
oxBasketItem.$_sShopId = null [protected] |
oxBasketItem.$_sNativeShopId = null [protected] |
oxBasketItem.$_blSkipDiscounts = false [protected] |
oxBasketItem.$_aPersistentParameters = array() [protected] |
oxBasketItem.$_blBundle = false [protected] |
oxBasketItem.$_blIsDiscountArticle = false [protected] |
oxBasketItem.$_oArticle = null [protected] |
oxBasketItem.$_sDimageDirNoSsl = null [protected] |
oxBasketItem.$_sDimageDirSsl = null [protected] |
oxBasketItem.$_aChosenSelectlist = array() [protected] |
oxBasketItem.$_sWrappingId = null [protected] |
oxBasketItem.$_sWishId = null [protected] |
oxBasketItem.$_sWishArticleId = null [protected] |
1.5.5