logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to forums.ablecommerce.com. Please use your AbleCommerce username and password to Login. Forums Registration.

Notification

Icon
Error

Options
Go to last post Go to first unread
judy at Web2Market  
#1 Posted : Monday, May 3, 2021 8:47:17 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 135

Thanks: 7 times
Was thanked: 2 time(s) in 2 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.

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. Forums Registration.

shaharyartiwana25816656  
#2 Posted : Tuesday, May 4, 2021 3:28:02 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 460

Thanks: 1 times
Was thanked: 46 time(s) in 46 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");
}
Users browsing this topic
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.