ezbasket
Summary
Contains information about a user's shopping basket.
Persistent
Yes.
Attributes
| Attribute | Type | Static* | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | string | Yes. | The ID number of the shopping basket. | ||||||||||||||||||||||||||||||||||||
| session_id | string | Yes. | The ID of the session that the basket belongs to. | ||||||||||||||||||||||||||||||||||||
| productcollection_id | string | Yes. | The ID number of the product collection that belongs to the basket. | ||||||||||||||||||||||||||||||||||||
| order_id | string | Yes. | The ID number of the order that belongs to the basket. | ||||||||||||||||||||||||||||||||||||
| items | array | No. | An array of hashes containing information about the items. Each element consists of the following data:
|
||||||||||||||||||||||||||||||||||||
| total_ex_vat | float | No. | The total amount to be payed excluding the VAT. | ||||||||||||||||||||||||||||||||||||
| total_inc_vat | float | No. | The total amount to be payed including the VAT. | ||||||||||||||||||||||||||||||||||||
| is_empty | boolean | No. | Returns TRUE if there are no items in the basket, FALSE otherwise. | ||||||||||||||||||||||||||||||||||||
| productcollection | object | No. | The product collection that belongs to the basket. |
* Indicates whether the attribute provides a pre-fetched value or if it needs to be computed upon request.
Changed in Exponential 6.0.15
The attributes of ezbasket as eZBasket::definition() of Exponential 6.0.15 gives them (kernel/classes/ezbasket.php):
| Attribute | Change |
|---|---|
| items_ordered | An attribute in 6.0.15 (function attribute); this page did not list it. |
| total_ex_vat | An attribute in 6.0.15 (function attribute); this page did not list it. |
| total_inc_vat | An attribute in 6.0.15 (function attribute); this page did not list it. |
| is_empty | An attribute in 6.0.15 (function attribute); this page did not list it. |
| productcollection | An attribute in 6.0.15 (function attribute); this page did not list it. |
| items_info | An attribute in 6.0.15 (function attribute); this page did not list it. |
| vat_value | Not an attribute of eZBasket::definition() in 6.0.15. |
| item_count | Not an attribute of eZBasket::definition() in 6.0.15. |
| node_id | Not an attribute of eZBasket::definition() in 6.0.15. |
| object_name | Not an attribute of eZBasket::definition() in 6.0.15. |
| price_ex_vat | Not an attribute of eZBasket::definition() in 6.0.15. |
| price_inc_vat | Not an attribute of eZBasket::definition() in 6.0.15. |
| discount_percent | Not an attribute of eZBasket::definition() in 6.0.15. |
| total_price_ex_vat | Not an attribute of eZBasket::definition() in 6.0.15. |
| total_price_inc_vat | Not an attribute of eZBasket::definition() in 6.0.15. |
| item_object | Not an attribute of eZBasket::definition() in 6.0.15. |
Contributors
- Balazs Halasy Maintainer
- Svitlana Shatokhina Maintainer
- Graham Brookins Updated
Comments
Add a comment