Search code examples
symfonye-commercesymfony4sylius

How to override Sylius variation form options in product show?


I have a Sylius installation where I added a configurable product with multiple variation.

In shop product page, how to make the choice of product option appear as a radio button instead of a dropdown(select) ?

Using Sylius v1.7.4


Solution

  • You should extend the Form as described here: Customizing Forms

    Then you can remove the relevant fiels and add the same one just changing the expanded option to 'true' so that it renders radio buttons instead, see: Symfony ChoiceType documentation