Definition at line 8 of file oxcmp_basket.php.
Public Member Functions | |
render () | |
tobasket ($sProductId=null, $dAmount=null, $aSel=null, $aPersParam=null, $blOverride=false) | |
changebasket ($sProductId=null, $dAmount=null, $aSel=null, $aPersParam=null, $blOverride=true) | |
wl_tobasket ($sProductId=null, $dAmount=null, $aSel=null, $aPersParam=null, $blOverride=false) | |
Public Attributes | |
$aRedirectParams | |
Protected Member Functions | |
_getRedirectUrl () | |
_getItems ($sProductId=null, $dAmount=null, $aSel=null, $aPersParam=null, $blOverride=false) | |
_addItems ($aProducts) | |
_setLastCall ($sCallName, $aProductInfo, $aBasketInfo) | |
Protected Attributes | |
$_blIsComponent = true |
oxcmp_basket.render | ( | ) |
Loads basket ($oBasket = $mySession->getBasket()), calls oBasket->calculateBasket, executes parent.render() and returns basket object.
Reimplemented from oxView.
Definition at line 41 of file oxcmp_basket.php.
oxcmp_basket.tobasket | ( | $ | sProductId = null , |
|
$ | dAmount = null , |
|||
$ | aSel = null , |
|||
$ | aPersParam = null , |
|||
$ | blOverride = false | |||
) |
Basket content update controller. Before adding article - check if client is not a search engine. If yes - exits method by returning false. If no - executes oxcmp_basket._addItems() and puts article to basket. Returns position where to redirect user browser.
string | $sProductId Product ID (default null) | |
double | $dAmount Product amount (default null) | |
array | $aSel (default null) | |
array | $aPersParam (default null) | |
bool | $blOverride If true means increase amount of chosen article (default false) |
Definition at line 70 of file oxcmp_basket.php.
oxcmp_basket.changebasket | ( | $ | sProductId = null , |
|
$ | dAmount = null , |
|||
$ | aSel = null , |
|||
$ | aPersParam = null , |
|||
$ | blOverride = true | |||
) |
Similar to tobasket, except that as product id "bindex" parameter is (can be) taken
string | $sProductId Product ID (default null) | |
double | $dAmount Product amount (default null) | |
array | $aSel (default null) | |
array | $aPersParam (default null) | |
bool | $blOverride If true means increase amount of chosen article (default false) |
Definition at line 115 of file oxcmp_basket.php.
oxcmp_basket.wl_tobasket | ( | $ | sProductId = null , |
|
$ | dAmount = null , |
|||
$ | aSel = null , |
|||
$ | aPersParam = null , |
|||
$ | blOverride = false | |||
) |
Adds articles to shopping basket or updates amount. and special handling, stores wishid so that we can substract them properly from wishlist. Puts article to basket (oxcmp_basket.tobasket()) and sets delivery address of user whose wish list article was loaded.
string | $sProductId Product ID (default null) | |
double | $dAmount Product amount (default null) | |
array | $aSel (default null) | |
array | $aPersParam (default null) | |
bool | $blOverride If true means increase amount of chosen article (default false) |
Definition at line 169 of file oxcmp_basket.php.
oxcmp_basket._getRedirectUrl | ( | ) | [protected] |
Formats and returns redirect URL where shop must be redirected after storing something to basket
Definition at line 212 of file oxcmp_basket.php.
oxcmp_basket._getItems | ( | $ | sProductId = null , |
|
$ | dAmount = null , |
|||
$ | aSel = null , |
|||
$ | aPersParam = null , |
|||
$ | blOverride = false | |||
) | [protected] |
Collects and returns array of items to add to basket. Product info is taken not only from given parameters, but additionally from request 'aproducts' parameter
string | $sProductId product ID | |
double | $dAmount product amount | |
array | $aSel product select lists | |
array | $aPersParam product persistent parameters | |
bool | $blOverride amount override status |
Definition at line 260 of file oxcmp_basket.php.
oxcmp_basket._addItems | ( | $ | aProducts | ) | [protected] |
Adds all articles user wants to add to basket. Returns last added to basket item.
array | $aProducts products to add array |
Definition at line 315 of file oxcmp_basket.php.
oxcmp_basket._setLastCall | ( | $ | sCallName, | |
$ | aProductInfo, | |||
$ | aBasketInfo | |||
) | [protected] |
Setting last call data to session (data used by econda)
string | $sCallName name of action ('tobasket', 'changebasket') | |
array | $aProductInfo data which comes from request when you press button "to basket" | |
array | $aBasketInfo array returned by oxbasket.getBasketSummary() |
Definition at line 355 of file oxcmp_basket.php.
oxcmp_basket.$_blIsComponent = true [protected] |
oxcmp_basket.$aRedirectParams |
Initial value:
array( 'cnid', // category id 'mnid', // manufacturer id 'anid', // active article id 'tpl', // spec. template 'listtype', // list type 'searchcnid', // search category 'searchvendor',// search vendor 'searchmanufacturer',// search manufacturer 'searchtag', // search tag 'searchrecomm',// search recomendation 'recommid' // recomm. list id )
Definition at line 22 of file oxcmp_basket.php.