How do i add a quantity box to the Categorylistpage

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
Jaz
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Nov 05, 2008 4:04 am
Location: Torrance, CA
Contact:

How do i add a quantity box to the Categorylistpage

Post by Jaz » Wed Nov 19, 2008 2:41 am

I am totally stumped on this one. I have set up my page to allow customers to add a quantity amount directly in the quantity list page, but I can't figure out how to add the quantity box. Any suggestions would be greatly appraised.

The page can be seen at:

http://216.139.236.188/CategoryList.aspx?CategoryId=55

Thanks,

Jaz
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How do i add a quantity box to the Categorylistpage

Post by mazhar » Wed Nov 19, 2008 4:08 am

You need to add another column in the ItemTemplate section of the repeater in the page as below

Code: Select all

<td><asp:TextBox ID="Quantity" runat="server"></asp:TextBox></td>

User avatar
Jaz
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Nov 05, 2008 4:04 am
Location: Torrance, CA
Contact:

Re: How do i add a quantity box to the Categorylistpage

Post by Jaz » Wed Nov 19, 2008 7:24 am

Thanks. That got the box in there, but what do I need to do to actually get the box read? I am assuming I need to add some code to the corresponding .cs file for it to reference. Or maybe I am just guessing. It just ignores the quantity values and adds one item to the cart.
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How do i add a quantity box to the Categorylistpage

Post by mazhar » Wed Nov 19, 2008 12:15 pm

Instead of using the AddToCart link control place some asp button in the list and then add product against it. Have a look at the following attached CategoryList page hopefully it will help you.

User avatar
Jaz
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Nov 05, 2008 4:04 am
Location: Torrance, CA
Contact:

Re: How do i add a quantity box to the Categorylistpage

Post by Jaz » Wed Nov 19, 2008 11:54 pm

Thanks, that worked perfect. Now, just to be picky, is there a way to make the quantity box narrower. Right now the box is wide enough to order one hundred, million, trillion pieces. While I am optimistic, it may be over kill.

Thanks
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How do i add a quantity box to the Categorylistpage

Post by mazhar » Thu Nov 20, 2008 1:32 am

In fact a more suitable quantity box instead of the current text box is the AbleCommerce updown control. You may have seen this control on many pages for example in the Basket. Here is the update control. I adjusted the Min and Max quantity to 1 and 100 you can change this to meet your needs.

User avatar
Jaz
Captain (CAPT)
Captain (CAPT)
Posts: 245
Joined: Wed Nov 05, 2008 4:04 am
Location: Torrance, CA
Contact:

Re: How do i add a quantity box to the Categorylistpage

Post by Jaz » Thu Nov 20, 2008 2:51 am

Now you're just making me look like a Rockstar!!!
David Jasiewicz
President
Trick Concepts - Metal Fab. Engineering and Product Design
http://www.trickconcepts.com-- If you are an ASP or PHP programmer or CSS web specialist I will gladly trade for graphic design, mechanical engineering or metal fabrication service! --

Post Reply