eXtropia: the open web technology company
Technology | Support | Tutorials | Development | About Us | Users | Contact Us
Development resources
 ::   WebWare 2.1 (Perl)
 ::   WebWare 2.0 (Java)
 ::   Cool hacks
radical hacks
Quantity Hack  
sent in this cute hack for the modification of cart contents....

"You may or may not want this very basic hack I made to the change quantity function to bring in the current cart quantities for modification. Likely many others have hit upon it as well. It's in web_store_html_lib.pl."

if ($reason_to_display_cart =~ /change*quantity/i) 
      {
      print qq!
      <TD ALIGN = "center">
      <INPUT TYPE = "text" NAME = "$cart_row_number" VALUE="$quantity"
                       SIZE ="3"></TD>!;
      }