Skip to content
This repository has been archived by the owner on Feb 3, 2022. It is now read-only.

Disabled configurable product children cause fatal error #1

Open
tgerulaitis opened this issue Oct 26, 2017 · 0 comments
Open

Disabled configurable product children cause fatal error #1

tgerulaitis opened this issue Oct 26, 2017 · 0 comments

Comments

@tgerulaitis
Copy link
Member

If a configurable product has any children that are disabled, they are still going to be included in getUsedProductIds(), but will not be returned in the product collection. This causes a fatal error on the following line:

$total -= $children->getItemById($childId)->getData(Meanbee_BestSellerSort_Helper_Data::ATTRIBUTE_NAME_QTY_ORDERED);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant