Click here to Skip to main content
14,735,180 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello,
I am facing an issue in grid view calculations ie-
I,have created a shopping cart in which there are 4 columns in grid- Product Price,Product discounted Price, Free shipping and Shipping Cost.
I,want to set calculations in such a way that if product discounted price is equal or greater than free-shipping price then shipping cost should be 0.
But i want to set these 3 conditions also ie-

*If by default product is put in cart and user view cart then if product discounted price is already greater or equal to free shipping then shipping cost will be 0

*if user increase quantity of product and if its equal or greater to free shipping price then shipping cost will be 0

*if user purchases multiple products from same Store then if discounted product price is equal or greater to free shipping price then shipping cost will be 0


Notes-
Grid view data is being maintained at session level and not at database level,ie if user session timeout or lo-gout then user need to again put products in cart.
Only those products related to each individual store prices should get updated and to all products in the cart,because user can purchase multiple products from multiple stores having their own set free shipping price and product discounted price and shipping cost. so wouldnt require sum total of gridview in this scenario.

Looking for a good response and a good code writeup in c# and asp.net and let me know the same.


Thanks
Viraat Kothare
Posted
Comments
Maciej Los 30-Mar-14 7:21am
   
What have you tried till now? Where are you stuck?

1 solution

Please, read my comment to the question.

Start here: GridView Examples for ASP.NET 2.0: Displaying Summary Data in the Footer[^]

See similar questions[^] too.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900