Welcome, Guest ( Customer Panel | Login )




 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-CART 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
0 Item(s)
$0.00