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-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
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  

lynch
VP-ASP New User

USA
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
      quantity=1
  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.

Joff
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

USA
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.

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