nBill Community nBill Home Page
21/May/2012, 11:16:49 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Click Here for the nBill home page, or take a tour.  
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Zero 0 Quantity Bug Comes Back From The Dead  (Read 569 times)
AndrewBucklin
Jr. Member
**
Offline Offline

Posts: 24



View Profile WWW
« on: 08/March/2010, 08:10:17 AM »

I searched the forum and found this thread:  http://www.nbill.co.uk/forum-smf/index.php/topic,769.0.html

Supposedly it was squashed in version 1; but I'm experiencing this right now in version 2.09.

It's very simple. I have a numeric field on the form. Its ID number is 19. On the processing tab I selected the related product and entered ##19## in the related product quantity. The form works fine with all numbers except 0. When the user inputs 0, it still counts as 1. When the user leaves the field blank (as it is not required) it processes zero for the quantity. The problem only occurs when the user actually types the number 0 (zero).

Here is my order form if you'd like to see it for yourself. The field is "Number of Secondary Domains". When a number is placed in that field, and extra product is added to the order called "World Wide Web Domain Name (Add-On/Parked)". When nothing is entered, that line item does not appear. http://www.TrueValueWeb.com/index.php?option=com_nbill&action=orders&task=order&cid=1

Thanks for looking into this. Let me know if I can be of any further assistance.

-Andrew
Logged
netshine
Administrator
Hero Member
*****
Offline Offline

Posts: 4,563


View Profile
« Reply #1 on: 08/March/2010, 12:56:00 PM »

Try replacing your /administrator/components/com_nbill/framework/classes/nbill.frontend.class.php file with the attached.

[attachment deleted by admin]
Logged
AndrewBucklin
Jr. Member
**
Offline Offline

Posts: 24



View Profile WWW
« Reply #2 on: 08/March/2010, 11:11:37 PM »

Thank you. That fixed it!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!