HomeHome Product Discus... Product Discus...SmithCartSmithCartQuantity can be changed to a decimal.Quantity can be changed to a decimal.
Previous
 
Next
New Post
5/3/2011 11:37 AM
 

Hello, I have version 4.28 with hot fix.  The customer in the checkout page can change the quantity from 1 to 1.25 or .5 and the cart will adjust the price accordingly.  I then proceeded thru the check out and it kept the .5 or 1.25 quantity and adjusted the price all the way thru.  This is an issue and how can I lock the quantity to whole numbers only.  I can’t have people paying half price for product.  My site is www.inthenewsonline.comif you wish to try.

Thanks,

 
New Post
5/3/2011 3:30 PM
 

To disable decimals on quantities you can add the following validation control in the productlist.ascx and cart.ascx pages:

<td>
      <asp:TextBox ID="txtQuantity" Width="50px" MaxLength="4" CssClass="SmithProdText" runat="server" Text="1"/>
       <asp:CompareValidator ID="cvQuantity" runat="server" ErrorMessage="Enter a whole number" ControlToValidate="txtQuantity" Operator="DataTypeCheck" Type="Integer"/>
</td>

I will send this into programming to create a BuyNow module setting to disable it and it will be available in the next version.

Thanks,
Scott


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
5/3/2011 5:45 PM
 
Thanks I will try it. I have also found a decimal issue in the product settings page. Under enter weight in ounces it puts a 0.00 by default or if you put a integer there and save it and go back to the product setup page again it will add a .00 to the end of the integer and will not allow you to update the product unless you go and remove the .00 every time.
 
New Post
5/3/2011 9:04 PM
 
OK I added the code to cart & productlist.ascx if there is any kind of decimal it states in red to enter a whole number, Great. Problem going in and out or the cart and continue shopping automatically changes it to a decimal ex 1.00. So when you hit check out it says please enter a whole number. so the customer will have to erase the .00. I need it to never show the .00.
 
New Post
5/4/2011 10:23 AM
 
We have added a new checkbox in the buynow settings titled "Disable Partial Quantities" that wlll be released in cart v4.29 that disables partial qtys and removes the decimal point fro the qty textbox on the cart screen. It will be released in cart v4.28 in about a week. I would go ahead and roll back validation you added and then install 4.29 when its released.

Thanks,
Scott

Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartQuantity can be changed to a decimal.Quantity can be changed to a decimal.