CategoryList with Multiple Add To Cart
CategoryList with Multiple Add To Cart
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.
Re: CategoryList with Multiple Add To Cart
Have a look at this thread, this may help you
viewtopic.php?f=42&t=8978
viewtopic.php?f=42&t=8978
Re: CategoryList with Multiple Add To Cart
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'
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'
Re: CategoryList with Multiple Add To Cart
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.
Re: CategoryList with Multiple Add To Cart
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.