Skip to content

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Nov 26, 2024
1 parent 19fafa8 commit bad2f6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Form/Type/WishlistItemType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())),
Expand Down

0 comments on commit bad2f6f

Please sign in to comment.