diff options
-rw-r--r-- | system/libraries/Cart.php | 2 | ||||
-rw-r--r-- | user_guide_src/source/changelog.rst | 3 | ||||
-rw-r--r-- | user_guide_src/source/libraries/cart.rst | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/system/libraries/Cart.php b/system/libraries/Cart.php index 9c9a285cd..cd46a6ef6 100644 --- a/system/libraries/Cart.php +++ b/system/libraries/Cart.php @@ -338,7 +338,7 @@ class CI_Cart { } // Prep the quantity - if ( isset($items['qty']) ) + if (isset($items['qty'])) { $items['qty'] = (float) $items['qty']; // Is the quantity zero? If so we will remove the item from the cart. diff --git a/user_guide_src/source/changelog.rst b/user_guide_src/source/changelog.rst index 55146308f..6f246e3a0 100644 --- a/user_guide_src/source/changelog.rst +++ b/user_guide_src/source/changelog.rst @@ -317,8 +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. - - Removed the requirment of quantity to trigger ``update()``. + - 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 0ccb6e2f6..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 one or more pre-defined properties 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. |