Changeset 741 for trunk/lib/Cart.inc.php


Ignore:
Timestamp:
Dec 29, 2020 3:18:44 AM (3 years ago)
Author:
anonymous
Message:

Remove excess whitespace and comments from css

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Cart.inc.php

    r611 r741  
    4040        if ($p = mysql_fetch_assoc($qid)) {
    4141            $cart->add($product_id, $p['price'], 1, array(
    42                 'title' => $p['title'],
     42                'name' => $p['name'],
    4343                'shipping' => $p['shipping'],
    4444                'weight' => $p['weight'],
     
    6262    // User views cart.
    6363    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']);
    6565    }
    6666    break;
     
    132132    * @param    float   $price      Price-per-quantity-unit for the item
    133133    * @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)
    135135    * @return   float               The new adjusted quantity of this item.
    136136    * @author   Quinn Comendant <quinn@strangecode.com>
Note: See TracChangeset for help on using the changeset viewer.