summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/cart.rst
diff options
context:
space:
mode:
authorAndrew Seymour <commit@andrewseymour.co.uk>2011-12-13 17:44:59 +0100
committerAndrew Seymour <commit@andrewseymour.co.uk>2011-12-13 17:44:59 +0100
commitde2e96a298cc48b8e86a03d530bc328bd43b0c80 (patch)
tree23606bb70eb3872635aa1f195e9073241a636b39 /user_guide_src/source/libraries/cart.rst
parentfefff9fcdfc26676b8c57653c3d8176b729901b2 (diff)
Added the ability to get the contents in a different order
Diffstat (limited to 'user_guide_src/source/libraries/cart.rst')
-rw-r--r--user_guide_src/source/libraries/cart.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/user_guide_src/source/libraries/cart.rst b/user_guide_src/source/libraries/cart.rst
index 850d7e9a8..a1e042ef2 100644
--- a/user_guide_src/source/libraries/cart.rst
+++ b/user_guide_src/source/libraries/cart.rst
@@ -266,10 +266,13 @@ $this->cart->total_items();
Displays the total number of items in the cart.
-$this->cart->contents();
+$this->cart->contents(boolean);
************************
-Returns an array containing everything in the cart.
+Returns an array containing everything in the cart. You can sort the order,
+by which this is returned by passing it "true" where the contents will be sorted
+from newest to oldest, by leaving this function blank, you'll automatically just get
+first added to the basket to last added to the basket.
$this->cart->has_options(rowid);
*********************************