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 AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
judy at Web2Market  
#1 Posted : Thursday, August 11, 2022 5:29:07 AM(UTC)
judy at Web2Market

Rank: Advanced Member

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

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
In the admin, there is a note that the header for a kit component is optional, but if there is no header and the products are in a listbox, the add to cart button disappears. It is governed by code in the ProductHelper.cs, RequiredKitOptionsSelected.
if (string.IsNullOrEmpty(component.HeaderOption) && (component.InputType == KitInputType.DropDown || component.InputType == KitInputType.RadioButton))
{
requiredIdsTable.Add(component.Id, GetKitProductIds(component));
}

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

nadeem  
#2 Posted : Thursday, August 11, 2022 10:40:53 AM(UTC)
nadeem

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System
Joined: 10/11/2018(UTC)
Posts: 109

Thanks: 17 times
Was thanked: 18 time(s) in 18 post(s)
I have confirmed this bug. Actually, this isn't happening due to the empty header but it happens when HideAddToBasket is set to true because no kit options have yet been selected. Since the default value for the hideAddToBasket is set to true, it doesn't turn to false due to no kit selections being made on the initial page load. The kit component selections didn't be required for the GET method, it should only check on POST. You can see that the quantity plus/minus box also hides along Add to Basket button.

For a workaround, you can set the hideAddToBasket to false on BuyProductDialog GET method like this:

Code:

ViewBag.HideAddToBasket = false;
ViewBag.hideRowQuantity = false; 
Users browsing this topic
Guest
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.