[eluser]Unknown[/eluser]
You cannot add anything with a price of 0 to the cart. Is this by design?
The problem lies on the row that removes leading zeroes. A proposed fix (if this is not meant to be) would be to perhaps check if the string is longer then 1 character before the regex replace.
/Ivar