osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Product Quantity bug

This is a discussion on Product Quantity bug within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hey all, I just wanted 2 let you guys know the quantity text box has no validation in it, so ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 06-19-2003, 06:51 PM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default Product Quantity bug

Hey all,
I just wanted 2 let you guys know the quantity text box has no validation in it, so you could even put "1.3" or "1.6" and so on as the number of products, the shopping cart calculates prices for 1.3 and 1.6 products which ur customers would not aperciate, i hope someone out there has seen this problem b4..if u have do u have a patch for this bug??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 06-19-2003, 07:56 PM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default

haha few hours later i found the bug, all it needed was an "(int)" in the includes/classes/shopping_cart.php around line 99

so it looks like


Quote:
if ($this->in_cart($products_id)) {
$this->update_quantity($products_id, (int)$qty, $attributes);
I hope everyone using CVS2.2 makes sure they edit their code to ensure funny product quantity does not get billed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
discount for quantity with per product xzyyy osCMax v2 Customization/Mods 4 02-22-2007 10:24 AM
Product Quantity Box auntie22 osCMax v1.7 Discussion 13 10-06-2005 04:21 AM
Help Quantity BUG... djlane osCMax v1.7 Installation 1 07-02-2005 07:17 PM
Product Quantity on Product Listing Page vinces osCMax v1.7 Discussion 2 12-10-2004 06:32 PM
Quantity to order shown on Product detail doug osCommerce 2.2 Modification Help 5 03-06-2003 01:51 AM


All times are GMT -8. The time now is 07:55 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax