VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-Cart StoreFront Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Problems and bugs
 v 6.50 not removing from cart when qty = 0
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

VP-ASP New User

74 Posts

Posted - April 17 2007 :  11:03:20  Show Profile  Reply with Quote
I was trying to remove items from my cart by setting the quantity to zero instead of using the "remove" checkbox, so customers could remove items either way.

In shop$db.asp, in the ValidateQuantity routine, there is this code around line 1475:

If getconfig("xallowdecimalquantity")<>"Yes" then
  If quantity<1.0 then
  end if 

For those of us with xallowdecimalquantity set to "No", this sets the zero in the cart quantity back to 1. I changed "quantity=1" to "quantity=0" and got the result I wanted.

Starting Member

United Kingdom
43 Posts

Posted - April 19 2007 :  06:04:17  Show Profile  Reply with Quote
Nice tip, thanks.
Go to Top of Page

interface engineer
Starting Member

30 Posts

Posted - October 22 2009 :  18:02:23  Show Profile  Visit interface engineer's Homepage  Reply with Quote
thanks for sharing this - VPASP: default should be zero in next release so 'remove' function isn't required.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000