Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8832

Update all shopping cart items with single button

$
0
0
Hi, I wan to create a single update button on shopping cart. I will use code found in: CMSModules\Ecommerce\Controls\Checkout\CartItemUnits.ascx.cs `public void Update(object sender, EventArgs e){ ... }` I know I need to look though shopping cart items and update them. I'll use: `foreach (ShoppingCartItemInfo item in ECommerceContext.CurrentShoppingCart.CartItems) { ... }` Question is, since the UNITS input code is placed in the transformation which displays products in shopping cart, how can I get those values? It seems to me that Page.FinControl("myID") and then get the value will not work since there could be multiple products in shopping cart and that means multiple UNIT inputs. Any idea how I can get the UNITS values per shoppingCartItem? This is last piece the puzzle :)

Viewing all articles
Browse latest Browse all 8832

Trending Articles