Skip to the content
Documentation

ezbasket

No ratings yet
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:

Attribute Type Description
id string The ID number of the item in the basket.
vat_value string The actual value of VAT (for example, 22).
item_count string The quantity.
node_id string The ID number of the node that represents the item.
object_name string The name of the object that represents the item.
price_ex_vat double The price of the item excluding the VAT.
price_inc_vat string The price of the item including the VAT.
discount_percent string The discount percentage (if any).
total_price_ex_vat double The total price excluding the VAT.
total_price_inc_vat double The total price including the VAT.
item_object object The item itself (as an ezproductcollectionitem object).
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

Comments

Add a comment

Comments are read by a moderator before they appear.