Changeset 741 for trunk/lib/Cart.inc.php
- Timestamp:
- Dec 29, 2020 3:18:44 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Cart.inc.php
r611 r741 40 40 if ($p = mysql_fetch_assoc($qid)) { 41 41 $cart->add($product_id, $p['price'], 1, array( 42 ' title' => $p['title'],42 'name' => $p['name'], 43 43 'shipping' => $p['shipping'], 44 44 'weight' => $p['weight'], … … 62 62 // User views cart. 63 63 foreach ($cart->getList() as $item) { 64 printf("Item: %s\nQty: %s\nPrice: %s\n\n", $item[' title'], $item['quantity'], $item['price']);64 printf("Item: %s\nQty: %s\nPrice: %s\n\n", $item['name'], $item['quantity'], $item['price']); 65 65 } 66 66 break; … … 132 132 * @param float $price Price-per-quantity-unit for the item 133 133 * @param float $quantity Quantity of items (can be fractional unites?) 134 * @param array $specs An array of additional specifications ( title, weight, etc)134 * @param array $specs An array of additional specifications (name, weight, etc) 135 135 * @return float The new adjusted quantity of this item. 136 136 * @author Quinn Comendant <quinn@strangecode.com>
Note: See TracChangeset
for help on using the changeset viewer.