diff --git a/src/Form/Type/WishlistItemType.php b/src/Form/Type/WishlistItemType.php index dfb8d93..6b3e5eb 100644 --- a/src/Form/Type/WishlistItemType.php +++ b/src/Form/Type/WishlistItemType.php @@ -33,6 +33,8 @@ public function buildForm(FormBuilderInterface $builder, array $options): void return; } + // todo handle simple products + $form = $event->getForm(); $form->add('variant', ProductVariantChoiceType::class, [ 'choice_label' => fn (ProductVariantInterface $variant) => implode(', ', array_map(static fn ($optionValue) => sprintf('%s: %s', (string) $optionValue->getOption()?->getName(), (string) $optionValue->getValue()), $variant->getOptionValues()->toArray())),