Select existing billing and shipping address redirects to homepage (nop 3.40)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 anos atrás
Hi,

In our (modified NOP 3.20 and NOP 3.40) ae are not able to select an existing billing and shipping address. I am redirected to the homepage. I have turned all rewrite rules off. No breakpoint is triggered either so debugging is difficult.

<input type="button" value="Factuur naar dit adres." class="button-1 select-billing-address-button" onclick="setLocation('/checkout/selectbillingaddress?addressId=11') " />


Any ideas?

J.
9 anos atrás
Hi J.,

Why breakpoints are not triggered? Even "Application_BeginRequest" method in Global.asax? Try the following. Delete all \obj directories in the solution (manually), "Clear", then "Re-build" the solution.
9 anos atrás
Hi,

I have followed your instructions and also removed the bin folder. Everything is rebuild now. The bug happens ocasionally and when it does not occur, the SelectBillingAddress(int addressId) is triggered. If I then select a payment option and click on the shopping cart again to repeat the process, the bug occurs on the first address, the second always triggers the controller.

If I enable developer tools F12, the result is also aways positive. If I disable the debugger, it appears again.

J.
9 anos atrás
I have set OnePageCheckout for the moment. The problem is not in that mode.
9 anos atrás
Can you reproduce this issue on the default installation (no customization)?
9 anos atrás
We are now 1 year using Nop. Could it be related to the cookie?
9 anos atrás
Delete cookies in a browser (or use an anonymous/private mode) in order to find it out
9 anos atrás
Deleting cookies does not solve the problem. It looks a bit like:
https://www.nopcommerce.com/boards/t/31567/nopcommerce-32-ssl-and-cross-domain-shows-empty-cart-for-anonymous-login.aspx

Since I had issues with SSL I recreated my bindings for http and https on IIS. I also added a dedicated IP number and turned 'Server Name Identification' of. Maybe it is related to this? However, in my development I did not do such thing and the same thing happens.

With onepage checkout I see errors like:

Your cart is empty
System.Exception: Your cart is empty at Nop.Web.Controllers.CheckoutController.OpcSaveBilling(FormCollection form) checkout/opcsavebilling/
7 anos atrás
Hi,

I know this is a old thread but this solution can help other people.

Recently one of our customers has also this problem. The customer of that particular webshop orders a product, selected a billing address and clicks the button "Continue" and there is the pop-up "Your cart is empty".

So why this pop-up pops? Lets browse the HTML code of the onepagecheckout page for a second. On different places there is some JavaScript with the domain name (for example http://www.myshop.com). This URL is different from the domain name in the URL (for example http://myshop.com without www). When the customer clicks on the "Continue" button a AJAX call will be made to the domain name http://myshop.com without www. And because this domain name is different from the domain name in the URL there is no active session and thus no shopping cart.

You can solve / prevent this problem to make sure your URL's (www and non www) always resolve to the same URL as configured in the store settings.

For example, if your store in nopCommerce is configured with http://www.myshop.nl. Make sure you select "Pages should have WWW prefix" in de SEO settings or create a IIS URL rewrite to rewrite all URL's to the www version of the site.
6 anos atrás
Although I have WWW prefix requirement: set to redirect www to non www, it just was not working.  I am using 3.5.

So have now added a rewite rule in web.config to strip the www and my 'Your cart is empty' problem is solved :)

Thanks for the information in this thread.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.