Help for this page

Select Code to Download


  1. or download this
    elsif ($choice eq "add")            # add item to shopping cart
    {
        add_item ($dbh, $cart_ref, param ("product_id"), param("quantity")
    +, param("color"));
        $page .= format_cart_html ($cart_ref, 1);
    }
    
  2. or download this
    sub get_product_table
    {
    ...
                     
         
    }
    
  3. or download this
    sub add_item
    {
    ...
        $cart_ref->{$product_id}->{qty} = $qty;    
                    $cart_ref->{$product_id}->{color} = $color;    
    }
    
  4. or download this
    sub format_cart_html
    {
    ...
                ));
                return (table ({-align => "CENTER", -border => 0}, @row));
    }