summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/libraries/cart.rst
diff options
context:
space:
mode:
authorAhmad Anbar <aanbar@gmail.com>2014-02-13 00:45:27 +0100
committerAhmad Anbar <aanbar@gmail.com>2014-02-13 00:45:27 +0100
commit7d16de620a46f84ffeb52a54ae82439a06f89c74 (patch)
tree1bf9cc21fc8ae04b404b14c68a6248541df6aa2f /user_guide_src/source/libraries/cart.rst
parentf69f1822558645aa00944b436558fb6948f42aa9 (diff)
Fixed code style & added few extra checks.
Updated cart documentation.
Diffstat (limited to 'user_guide_src/source/libraries/cart.rst')
-rw-r--r--user_guide_src/source/libraries/cart.rst10
1 files changed, 6 insertions, 4 deletions
diff --git a/user_guide_src/source/libraries/cart.rst b/user_guide_src/source/libraries/cart.rst
index fb92c280a..015f1c90e 100644
--- a/user_guide_src/source/libraries/cart.rst
+++ b/user_guide_src/source/libraries/cart.rst
@@ -194,7 +194,9 @@ Updating The Cart
To update the information in your cart, you must pass an array
containing the Row ID and quantity to the $this->cart->update()
-function:
+function, you may also update any property you have previously
+defined when inserting the item such like (options, price
+or other custom fields you defined).
.. note:: If the quantity is set to zero, the item will be removed from
the cart.
@@ -289,10 +291,10 @@ Class Reference
:returns: TRUE on success, FALSE on failure
:rtype: bool
- This method permits the quantity of a given item to be changed.
+ This method permits changing the properties of a given item.
Typically it is called from the "view cart" page if a user makes changes
- to the quantity before checkout. That array must contain the product ID
- and quantity for each item.
+ to the quantity before checkout. That array must contain the rowid
+ and qty for each item.
.. method:: remove($rowid)