 |
BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
 | This is the forum to discuss the Wrox book ASP.NET MVC Website Programming Problem Design Solution by Nicholas Berardi, Al Katawazi, and Marco Bellinaso; ISBN: 9780470410950 |
|
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|
|

March 2nd, 2010, 07:16 AM
|
|
Registered User
|
|
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
DeleteShoppingCartIem is not working; even on thebeerhouseexample.com
I have tried to delete the shoppincartitem by click the delete buton but it does not work. I have read and followed closely these two posts from this forum: 1) DeleteShoppingCartItem error and 2)[ Service, HttpPostOnly] but still not working. Lastly I went to http://thebeerhouseexample.com/store/cart and tried to delete an item and it does not work. Can any author please test your sample site and let us know the solution. thanks.
|
|

March 3rd, 2010, 05:44 AM
|
|
Registered User
|
|
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
have finally made it work but still with one flaw
After many tests and I have finally made it work but with one flaw, the shoppingCartItem is deleted but the Subtotal and Total price are not adjusted unless you refresh the page again (but it is same as regular post back).
My temporary solution is to change the action to [AcceptVerbs("Post")] instead of [Service, HttpPostOnly]. I am not an advance programer therefore I could be wrong but if my observation is correct then I hope the author can update the code for better performance and I will be really thankful. BTW the store section of the sample site http://thebeerhouseexample.com/store/cart is still not working.
|
|

April 14th, 2010, 05:43 PM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Delete Shopping Cart Item...
I am having the same issue with removing an item from the shopping cart. If somebody has the solution and working to where the dollar amounts are reflected please post them.
thanks
|
|

April 14th, 2010, 05:49 PM
|
|
Registered User
|
|
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Deletee Shopping Cart Item...
I ran an error trace on it and this is what comes up. I'll try to figure it out but hopefully someone can work on it also post the solution. I could be off base but it looks like the grid is not hold the value so null is getting sent to the controller method??? Hope this helps
The parameters dictionary contains a null entry for parameter 'productId' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult DeleteShoppingCartItem(Int32)' in 'TheBeerHouse.Controllers.CommerceController'. To make a parameter optional its type should be either a reference type or a Nullable type.Parameter name: parameters
|
|

July 26th, 2010, 07:01 AM
|
|
Authorized User
|
|
Join Date: Dec 2008
Posts: 56
Thanks: 1
Thanked 1 Time in 1 Post
|
|
Learner.... did you finally make the subtotal working?
If yes, could you please advice?
i have the same problem.
thank you!
|
|

July 27th, 2010, 02:41 PM
|
|
Registered User
|
|
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi fh84,
For now I just use regular post back instead of ajax and you can view my ecommerce site as sample http://www.lhchinesepaintings.com/
Hopefully this answer will help you.
|
|

July 27th, 2010, 03:31 PM
|
|
Authorized User
|
|
Join Date: Dec 2008
Posts: 56
Thanks: 1
Thanked 1 Time in 1 Post
|
|
Learner.... thank you for your answer but am not very into that.
i was just wondering if you have managed to solve the error of the
DeleteShoppingCartItem page
|
|

February 4th, 2011, 11:09 AM
|
|
Registered User
|
|
Join Date: Feb 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Here is how I fixed it the shopping cart
I renamed the parameter productId in the DeleteShoppingCartItem method in CommerceController.cs to Id. Here is what the method looks like now:
Code:
public ActionResult DeleteShoppingCartItem(int Id)
The items get deleted fine now. Now I need to figure out how to update the sub-total using JQuery.
|
|

March 14th, 2011, 10:52 PM
|
|
Registered User
|
|
Join Date: Feb 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
problematic shopping cart
Shipping price does not show up in Paypal expanded shopping cart after submit button is clicked. (same thing with TheBeerHouse live)
https://cms.paypal.com/us/cgi-bin/?c...#id08A6HF080O3
The shipping variable definition has not changed, but apparently it does not have any effect; or is it that the code's missing something?
BTW alt="delete item" not "delete role" people is not shopping for roles :P
wonder if anyone's moderating this forum anymore...
Last edited by M3rcuryKT; March 14th, 2011 at 10:55 PM..
|
|

March 14th, 2011, 11:02 PM
|
 |
Wrox Staff
Points: 18,059, Level: 58 |
|
|
Join Date: May 2003
Posts: 1,906
Thanks: 62
Thanked 139 Times in 101 Posts
|
|
Hi M3rcuryKT. Yes, we're still here. I can't say for sure if any of the authors will respond, as we are closing in on 2 years since publication. It's always our hope that through the forums, readers will help each other so hopefully someone else who has used the book can provide some answers.
__________________
Jim Minatel
Associate Publisher, WROX - A Wiley Brand
Did someone here help you? Click  on their post!
|
|
 |