HomeHome Product Discus... Product Discus...SmithCartSmithCartNot allow the user to adjust the quantity at Checkout?Not allow the user to adjust the quantity at Checkout?
Previous
 
Next
New Post
12/31/2010 6:15 PM
 

Hi,

I know I can hide the quantity in the buynow module and the details module, but is there a way to stop a user from editing the quantity at checkout?

I don't want a user to purchase more than one of an item at a time. How would I achieve this?

Thanks

 
New Post
12/31/2010 6:33 PM
 

There is no setting to hide the qty textbox on the cart page but you could open the cart.ascx page and set the visible property to false for the controls you want to hide.


At your service,
Dave Smith
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
1/3/2011 8:49 AM
 

I think you could also set them to read-only, which would still SHOW the quantity, but not allow you to change it.

 
New Post
1/3/2011 9:14 AM
 

Hi,

How would one set it to read only? This would be ideal.

Thanks

 
New Post
1/3/2011 9:36 AM
 

I *believe* (I haven't tested this...), but if you look at line 72, and change the part that says:

Enabled='<%# !Convert.ToBoolean(Eval("IsRequired")) %>'

To

Enabled='False'

... that will override the IsRequired code-behind and make the quantity read only.

Someone correct me if I'm wrong....

 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartNot allow the user to adjust the quantity at Checkout?Not allow the user to adjust the quantity at Checkout?