Not sure if the code you provided above is exactly the same or messed up in the editor but look the foreach loop code below. Not the debugging statement:
foreach (ShoppingCartItem item in objCart.GetItem())
{
Response.Write(item.Name.ToString()+ "<br//>");
if (item.Name == "Real Estate Forms 2d")
{
objCart.TaxRate = 0.06;
}
else
{
objCart.TaxRate = 0.00;
}
}
Make sure the itemName matches letter to letter including space.
guru_sarkar
Junior Poster in Training
70 posts since Jul 2008
Reputation Points: 12
Solved Threads: 8