Allow updating all properties for an item.
diff --git a/system/libraries/Cart.php b/system/libraries/Cart.php
index 5a31a1d..b00ccd8 100644
--- a/system/libraries/Cart.php
+++ b/system/libraries/Cart.php
@@ -350,7 +350,11 @@
}
else
{
- $this->_cart_contents[$items['rowid']]['qty'] = $items['qty'];
+ // find updatable keys
+ $keys = array_intersect(array_keys($this->_cart_contents[$items['rowid']]), array_keys($items));
+ foreach ( $keys as $key ) {
+ $this->_cart_contents[$items['rowid']][$key] = $items[$key];
+ }
}
return TRUE;