AbleCommerce Forums
»
AbleCommerce
»
AbleCommerce 9 Bug Reports
»
EditBillAddress shows page html if there is nothing in basket 9.0.4
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
Thanks: 21 times Was thanked: 5 time(s) in 5 post(s)
|
If customer goes to Checkout/EditBillAddress with empty basket, the page shows complete html. I tested on a fresh install of 9.0.4 with no customizations and AC sample data. We found this out because a customer wants a Checkout link in the store header.
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
This is already registered as a bug. As a workaround you can follow the steps: 1- Open \Website\Controllers\CheckoutController.cs 2- Search for the code Code:StoreSettingsManager settings = AbleContext.Current.Store.Settings;
User user = AbleContext.Current.User;
Basket basket = user.Basket;
if (basket.Items.Count == 0)
{
return JavaScriptRedirect("~/Checkout/Basket", false);
}
3- Replace with Code:StoreSettingsManager settings = AbleContext.Current.Store.Settings;
User user = AbleContext.Current.User;
Basket basket = user.Basket;
if (basket.Items.Count == 0)
{
return JavaScriptRedirect("~/Checkout/Basket");
}
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
AbleCommerce 9 Bug Reports
»
EditBillAddress shows page html if there is nothing in basket 9.0.4
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close