AbleCommerce Forums
»
AbleCommerce
»
AbleCommerce 9 Bug Reports
»
9.0.6 KIt component with no header add to cart button disappears
Rank: Advanced Member
Groups: Developers
Joined: 11/7/2018(UTC) Posts: 303
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)); }
|
|
|
|
Rank: Advanced Member
Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System Joined: 10/11/2018(UTC) Posts: 110
Thanks: 19 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;
|
|
|
|
AbleCommerce Forums
»
AbleCommerce
»
AbleCommerce 9 Bug Reports
»
9.0.6 KIt component with no header add to cart button disappears
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