Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

edit line item

$
0
0
edit line item
West Wind Web Store .NET
edit line item
Apr. 17, 2013
12:22 pm
3RI0QISOAShow this entire thread in new window
Gratar Image based on email address
From:rossrooker
To:All
When the user clicks on a line item in the shopping cart, I want that line item to display the lineitem data rather than bring up a new line item. IE... if they entered a quantity of 3 and click on it, it would bring up that line item. The remove logic performs an action on a specific line item:

/// Deal with the REMOVE action
string lcAction = Request.QueryString["Action"];
if (lcAction != null && lcAction == "Remove")
{
string Pk = Request.QueryString["item"];
if (Pk != null)
{
int LineItemPk = int.Parse(Pk);

// Remove the lineitem from the table
Invoice.LineItems.RemoveLineItem(LineItemPk, (int)InvPk);

// Remove from the DataTable so we don't have to reload
Invoice.LineItems.RemoveLineItemFromCollection(LineItemPk, (int)InvPk);
}

My question is: what logic would be needed to simply display the data for the detail line selected in the shopping cart?


Viewing all articles
Browse latest Browse all 10393

Trending Articles