diff options
author | Andrey Andreev <narf@devilix.net> | 2014-03-14 16:42:41 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-03-14 16:42:41 +0100 |
commit | 395e68f490daf2d613dc921c59f090e58faf55f9 (patch) | |
tree | ba1f14bdcadc6eec7af2068a0f8f3221cfba7021 /user_guide_src | |
parent | b79d75d21fc9438679ed0552b8cd4042db80b8f6 (diff) | |
parent | 2702a3b647785c06bf21ba0b6b36cacef2f8ee1f (diff) |
Merge pull request #2939 from aanbar/cart_update
Removed the requirement of quantity to trigger cart update.
Diffstat (limited to 'user_guide_src')
-rw-r--r-- | user_guide_src/source/changelog.rst | 2 | ||||
-rw-r--r-- | user_guide_src/source/libraries/cart.rst | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst index 36ddbc92e..6f246e3a0 100644 --- a/user_guide_src/source/changelog.rst +++ b/user_guide_src/source/changelog.rst @@ -317,7 +317,7 @@ Release Date: Not Released - Added unicode support for product names. - Added support for disabling product name strictness via the ``$product_name_safe`` property. - Changed ``insert()`` method to auto-increment quantity for an item when inserted twice instead of resetting it. - - Changed ``update()`` method to support updating all properties attached to an item. + - Changed ``update()`` method to support updating all properties attached to an item and not to require 'qty'. - :doc:`Image Manipulation Library <libraries/image_lib>` changes include: diff --git a/user_guide_src/source/libraries/cart.rst b/user_guide_src/source/libraries/cart.rst index d7d495967..bedea4dbf 100644 --- a/user_guide_src/source/libraries/cart.rst +++ b/user_guide_src/source/libraries/cart.rst @@ -205,8 +205,8 @@ 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()`` -method. +containing the Row ID and one or more pre-defined properties to the +``$this->cart->update()`` method. .. note:: If the quantity is set to zero, the item will be removed from the cart. @@ -318,7 +318,7 @@ Class Reference 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 rowid - and qty for each item. + for each item. .. method:: remove($rowid) |