HomeHome Product Discus... Product Discus...SmithCartSmithCartDisable Quantity Textbox on CheckoutDisable Quantity Textbox on Checkout
Previous
 
Next
New Post
6/13/2012 12:26 PM
 

Hi,

I was wondering if there was a setting that would disable (make read-only or change to a label) the quantity text box on the checkout page. The markup can be found on the Cart.ascx control. 

         DNN - 5.6.3

        Smith-Cart  - 4.6

Thanks,

Matt

 

 
New Post
6/13/2012 2:16 PM
 

Hi Matt,

All the labels on the frontend checkout can be changed by modifying the resx file associated with the page.  Resx files are located in the \desktopnmodules\[module name]\app_localresources.

Also, in the buynow settings general cart setup section there is a checkbox to hide the quantity if you want to completely remove the qty on the cart page.

 

 


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/14/2012 6:25 AM
 
Scott,

Thanks, I will check out the resx file and make my necessary changes here.

I actually need to show the quantity to the client, but we don't want to give the client the ability to update the quantity.
 
New Post
6/14/2012 4:24 PM
 

You can try opening up the cart.ascx file and set the enabled property to false for the quantity textbox.  Make sure you back up any ascx files before modifying them in case you need to rollback.

 


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
New Post
6/20/2012 7:18 AM
 

Scott,

I need to actually change the Text Box, txtQuantity, to a label. This control is found in a TemplateField of the grdQuoteDetails, gridview. 

Can I modify the Cart.ascx file found in the DesktopModules/Smith.BuyNow/ directory? Will this do anything?

Thanks,

Matt

 
New Post
6/20/2012 1:44 PM
 
Hi Matt,
You wont be able to change the quantity textbox control to a label since the textbox control is referenced in code behind and it will break the cart. However, a disabled textbox exhibits the same behavior as a label not allowing the user to change the quantity, why doesnt settting the enabled property of the textbox to false work for you? If you really need a label instead of a disabled textbox we can create a new checkbox setting in the buynow module to display a label instead of the textbox. If you are interested in having us program this option for you please submit you enhancement request using this link http://www.smith-consulting.com/services/requestaquote.aspx

Thanks,


Scott Kelly
Project Manager
DotNetNuke Consulting, DotNetNuke Store and DNN Ecommerce
 
Previous
 
Next
HomeHome Product Discus... Product Discus...SmithCartSmithCartDisable Quantity Textbox on CheckoutDisable Quantity Textbox on Checkout