List of all members.
Detailed Description
Order manager. Arranges user ordering data, checks/validates it, on success stores ordering data to DB.
Definition at line 7 of file order.php.
Member Function Documentation
order._getNextStep |
( |
$ |
iSuccess |
) |
[protected] |
Returns next order step. If ordering was sucessfull - returns string "thankyou" (possible additional parameters), otherwise - returns string "payment" with additional error parameters.
- Parameters:
-
| integer | $iSuccess status code |
- Returns:
- string $sNextStep partial parameter url for next step
Definition at line 543 of file order.php.
order._validateTermsAndConditions |
( |
|
) |
[protected] |
Validates whether necessary terms and conditions checkboxes were checked.
- Returns:
- bool
Definition at line 587 of file order.php.
Checks for order rules confirmation ("ord_agb", "ord_custinfo" form values)(if no rules agreed - returns to order view), loads basket contents (plus applied price/amount discount if available - checks for stock, checks user data (if no data is set - returns to user login page). Stores order info to database (oxorder.finalizeOrder()). According to sum for items automatically assigns user to special user group ( oxuser.onOrderExecute(); if this option is not disabled in admin). Finally you will be redirected to next page (order._getNextStep()).
- Returns:
- string
Definition at line 193 of file order.php.
order.getAddressError |
( |
|
) |
|
Return error number
- Returns:
- int
Definition at line 494 of file order.php.
Template variable getter. Returns active basket
- Returns:
- oxBasket
Definition at line 284 of file order.php.
order.getBasketArticles |
( |
|
) |
|
Template variable getter. Returns basket article list
- Returns:
- object
Definition at line 328 of file order.php.
Returns Bread Crumb - you are here page1/page2/page3...
- Returns:
- array
Reimplemented from oxUBase.
Definition at line 475 of file order.php.
Template variable getter. Returns delivery address
- Returns:
- object
Definition at line 345 of file order.php.
order.getDeliveryAddressMD5 |
( |
|
) |
|
Return users setted delivery address md5
- Returns:
- string
Definition at line 504 of file order.php.
Template variable getter. Returns execution function name
- Returns:
- string
Definition at line 301 of file order.php.
Template variable getter. Returns user remark
- Returns:
- string
Definition at line 311 of file order.php.
Template variable getter. Returns payment object
- Returns:
- object
Definition at line 251 of file order.php.
Template variable getter. Returns shipping set
- Returns:
- object
Definition at line 361 of file order.php.
Loads basket oxsession.getBasket(), sets $this->oBasket->blCalcNeeded = true to recalculate, sets back basket to session oxsession.setBasket(), executes parent.init().
Reimplemented from oxUBase.
Definition at line 121 of file order.php.
order.isConfirmAGBActive |
( |
|
) |
|
Template variable getter. Returns if option "blConfirmAGB" is on
- Returns:
- bool
Definition at line 381 of file order.php.
order.isConfirmAGBError |
( |
|
) |
|
Template variable getter. Returns if option "blConfirmAGB" was not set
- Returns:
- bool
Definition at line 416 of file order.php.
order.isConfirmCustInfoActive |
( |
|
) |
|
Template variable getter. Returns if option "blConfirmCustInfo" is on.
- Deprecated:
- since v5.1.6 (2014-05-28); Not used anymore
- Returns:
- bool
Definition at line 398 of file order.php.
order.isConfirmCustInfoError |
( |
|
) |
|
Template variable getter. Returns if option "blConfirmCustInfo" was not set.
- Deprecated:
- since v5.1.6 (2014-05-28); Not used anymore
- Returns:
- bool
Definition at line 428 of file order.php.
Returns wrapping options availability state (TRUE/FALSE)
- Returns:
- bool
Definition at line 453 of file order.php.
Executes parent.render(), if basket is empty - redirects to main page and exits the script (oxorder.validateOrder()). Loads and passes payment info to template engine. Refreshes basket articles info by additionally loading each article object (oxorder.getProdFromBasket()), adds customer addressing/delivering data (oxorder.getDelAddressInfo()) and delivery sets info (oxorder.getShipping()). Returns name of template to render order._sThisTemplate.
- Returns:
- string
Reimplemented from oxUBase.
Definition at line 144 of file order.php.
order.showOrderButtonOnTop |
( |
|
) |
|
Template variable getter. Returns if option "blShowOrderButtonOnTop" is on
- Returns:
- bool
Definition at line 438 of file order.php.
Member Data Documentation
order.$_blConfirmAGB = null [protected] |
order.$_blConfirmAGBError = null [protected] |
order.$_blConfirmCustInfo = null [protected] |
order.$_blConfirmCustInfoError = null [protected] |
order.$_blIsOrderStep = true [protected] |
order.$_blShowOrderButtonOnTop = null [protected] |
order.$_iWrapCnt = null [protected] |
Count of wrapping + cards options
Definition at line 113 of file order.php.
order.$_oBasket = null [protected] |
order.$_oBasketArtList = null [protected] |
order.$_oDelAddress = null [protected] |
order.$_oPayment = null [protected] |
order.$_oShipSet = null [protected] |
order.$_sOrderRemark = null [protected] |
order.$_sRemoteAddress = null [protected] |
order.$_sThisTemplate = 'page/checkout/order.tpl' [protected] |
The documentation for this class was generated from the following file: