Merge pull request #1989 from Haendlerbund/bugfix-types-having-variants-pr-1798
Bugfix: Exception while applying catalog rule
This commit is contained in:
commit
da829718a5
|
|
@ -28,6 +28,7 @@ class ProductType extends AbstractProduct
|
|||
*/
|
||||
public static function getAllTypesHavingVariants(): array
|
||||
{
|
||||
$havingVariants = [];
|
||||
foreach (config('product_types') as $type) {
|
||||
if (self::hasVariants($type['key'])) {
|
||||
array_push($havingVariants, $type['key']);
|
||||
|
|
|
|||
Loading…
Reference in New Issue