Disabling Quantity Field

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
ajackson
Ensign (ENS)
Ensign (ENS)
Posts: 18
Joined: Wed Sep 28, 2016 3:25 am

Disabling Quantity Field

Post by ajackson » Thu Oct 13, 2016 9:32 am

Is there a way to disable(make it not editable) to the quantity field in the shopping cart? We want to dynamically insert the item, price, and quantity(which we know how to do), but the price is generated by a formula and how many items a user wants to purchase.. so we do not want to allow the user to edit the price in the cart. In order for them to edit the quantity, they will have to delete the previous one and add a new one.

nadeem
Captain (CAPT)
Captain (CAPT)
Posts: 258
Joined: Tue Jul 31, 2012 7:23 pm

Re: Disabling Quantity Field

Post by nadeem » Thu Oct 13, 2016 10:58 pm

You can make it disable by setting the ReadOnly property on the quantity field at Basket page something like this:

Code: Select all

<asp:TextBox ID="Quantity" runat="server" ReadOnly="true" MaxLength="5" Text='<%# Eval("Quantity") %>' Width="50px"></asp:TextBox>

Post Reply