Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > BOOK: ASP.NET MVC Website Programming Problem Design Solution ISBN: 9780470410950
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 2nd, 2010, 07:16 AM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
  #2 (permalink)  
Old March 3rd, 2010, 05:44 AM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
  #3 (permalink)  
Old April 14th, 2010, 06:43 PM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
  #4 (permalink)  
Old April 14th, 2010, 06:49 PM
Registered User
 
Join Date: Jun 2006
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
  #5 (permalink)  
Old July 26th, 2010, 08:01 AM
Authorized User
 
Join Date: Dec 2008
Location: , , Greece.
Posts: 56
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to fh84
Default

Learner.... did you finally make the subtotal working?
If yes, could you please advice?
i have the same problem.

thank you!
  #6 (permalink)  
Old July 27th, 2010, 03:41 PM
Registered User
 
Join Date: Mar 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
  #7 (permalink)  
Old July 27th, 2010, 04:31 PM
Authorized User
 
Join Date: Dec 2008
Location: , , Greece.
Posts: 56
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via MSN to fh84
Default

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


  #8 (permalink)  
Old February 4th, 2011, 11:09 AM
Registered User
 
Join Date: Feb 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
  #9 (permalink)  
Old March 14th, 2011, 11:52 PM
Registered User
 
Join Date: Feb 2011
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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 11:55 PM.
  #10 (permalink)  
Old March 15th, 2011, 12:02 AM
jminatel's Avatar
Wrox Staff
Points: 17,437, Level: 57
Points: 17,437, Level: 57 Points: 17,437, Level: 57 Points: 17,437, Level: 57
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,933
Thanks: 57
Thanked 128 Times in 97 Posts
Default

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
Blog: http://p2p.wrox.com/content/blogs/jminatel
Wrox on Twitter: http://twitter.com/wrox
Did someone here help you? Click on their post!
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about www.thebeerhouseexample.com site yevi BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 July 18th, 2009 10:08 AM
window.opener working .... not working alyeng2000 Javascript How-To 5 January 5th, 2007 08:05 AM
Web.Config..Working or Not Working peace95 ASP.NET 1.0 and 1.1 Basics 1 September 18th, 2006 07:53 AM
Local COM working , but not working at Web Serv nagen111 .NET Web Services 3 February 19th, 2005 04:22 AM
Get Working Copy... not working Enkiel Classic ASP Basics 0 April 21st, 2004 02:41 PM



All times are GMT -4. The time now is 05:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.