summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/cart.rst
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-12-14 16:46:34 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-12-14 16:46:34 +0100
commitc0681aac4be7062f7a541274ff5ef7d01ec8eee2 (patch)
tree520ef3793eab302dcb5162b17c7de58a272c706c /user_guide_src/source/libraries/cart.rst
parentcde712ce354dcfd69f9c5e2b56ef7d6f1206d11a (diff)
parent3a67ed15d984a341612af9e1dd9ba52f30d02e89 (diff)
Merge pull request #775 from andrew-s/develop
Multiple improvements to Cart.php
Diffstat (limited to 'user_guide_src/source/libraries/cart.rst')
-rw-r--r--user_guide_src/source/libraries/cart.rst12
1 files changed, 10 insertions, 2 deletions
diff --git a/user_guide_src/source/libraries/cart.rst b/user_guide_src/source/libraries/cart.rst
index 850d7e9a8..fbf777884 100644
--- a/user_guide_src/source/libraries/cart.rst
+++ b/user_guide_src/source/libraries/cart.rst
@@ -256,6 +256,11 @@ $this->cart->update();
Permits you to update items in the shopping cart, as outlined above.
+$this->cart->remove(rowid);
+**********************
+
+Allows you to remove an item from the shopping cart by passing it the rowid.
+
$this->cart->total();
*********************
@@ -266,10 +271,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);
*********************************