diff options
author | Greg Aker <greg@gregaker.net> | 2011-12-25 08:44:33 +0100 |
---|---|---|
committer | Greg Aker <greg@gregaker.net> | 2011-12-25 08:44:33 +0100 |
commit | ef38f0a6d83025fbd99ace5ec60311acfe9121c4 (patch) | |
tree | 1728bc5df9412d8eccc2919bf3cd3f6bbe6a52d0 /user_guide_src/source/libraries | |
parent | d90e1a0fb541ee94459a20cf8b0726aebaec9692 (diff) | |
parent | a96ade374f28cdae97036fc253fd8b2a0e8dc81a (diff) |
Merge branch 'develop' into feature/unit-tests
Diffstat (limited to 'user_guide_src/source/libraries')
-rw-r--r-- | user_guide_src/source/libraries/cart.rst | 12 | ||||
-rw-r--r-- | user_guide_src/source/libraries/migration.rst | 5 |
2 files changed, 15 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); ********************************* diff --git a/user_guide_src/source/libraries/migration.rst b/user_guide_src/source/libraries/migration.rst new file mode 100644 index 000000000..5192f1f29 --- /dev/null +++ b/user_guide_src/source/libraries/migration.rst @@ -0,0 +1,5 @@ +################ +Migrations Class +################ + +Coming soon.
\ No newline at end of file |