CategoryList with Multiple Add To Cart

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
Alan Rich
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Fri May 15, 2009 3:40 pm

CategoryList with Multiple Add To Cart

Post by Alan Rich » Mon Apr 19, 2010 10:05 am

I'd like to modify a control to provide a Qty box in a CategoryList and a single (multi-product) Add To Cart button. Similar to the CategoryGridPage3 but have the content in a list format instead of grid format. I started by creating a modified CategoryList control, but got stumped by the MultipleAddToBasket section. Looking at CategoryGridPage3 to learn how MultipleAddToCart works, it now appears that starting with CategoryGridPage3 and modifying from there might have been preferable. Nevertheless, I seem to have a mental block on how to turn the "grid" into a "list" similar to the the CategoryListPage output. Any suggestions to point me in a particular direction would be appreciated.

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

Re: CategoryList with Multiple Add To Cart

Post by mazhar » Mon Apr 19, 2010 10:36 am

Have a look at this thread, this may help you
viewtopic.php?f=42&t=8978

Alan Rich
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Fri May 15, 2009 3:40 pm

Re: CategoryList with Multiple Add To Cart

Post by Alan Rich » Mon Apr 19, 2010 11:16 am

Thanks for the quick response.

I had run accross that thread before, but didn't think it applied since I want a single AddToCart button below the list to add multiple list items at once. (The example appears to put both the qty box and add to cart button on each row of the list.) I went ahead and tried to use the example to see for sure and confirm if I had misunderstood, but upon testing I get the following error:

\ConLib\Custom\mod_CategoryListPage.ascx.cs(90): error CS0117: 'CommerceBuilder.Services.AbleCommerceHttpModule' does not contain a definition for 'RegisterCatalogNode'

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

Re: CategoryList with Multiple Add To Cart

Post by mazhar » Mon Apr 19, 2010 12:15 pm

Use CategoryGridPage 3 as reference. All you need is to use Quantity box as mentioned in the link I suggested. Then you need to add simple asp button under the grid and finally in its click method place code very similar to the MultipleAddToCart_Click of categorygridpage3.ascx.cs file.

Alan Rich
Ensign (ENS)
Ensign (ENS)
Posts: 17
Joined: Fri May 15, 2009 3:40 pm

Re: CategoryList with Multiple Add To Cart

Post by Alan Rich » Mon Apr 19, 2010 2:18 pm

Apparently I need to educate myself a bit more. It appears to me that the CategoryGridPage3 uses an asp:DataList ID="ProductList" control and the CategoryListPage uses a Repeater Control. Simply using the MultipleAddToBasket button code from CategoryGridPage3 and changing the control's ID reference ("ProductList") is not enough. However, thanks for your help. Hopefully I'll be able to figure it out or at least ask a more specific, knowledgeable question in the near future.

Post Reply