Brille24 / SyliusCustomOptionsPlugin

A Sylius plugin that adds customer options
MIT License
47 stars 34 forks source link

Feature Request: add disabled option for dropdown entries #110

Open seizan8 opened 2 years ago

seizan8 commented 2 years ago

It would be nice if I could disable options in the dropdowns (select and multi_select).

The reason is simple: some options are sometimes temporarily unavailable. Basically, we have to wait for some deliveries until we can offer a specific option again. So that option can be unavailable for a month or so.

Ideally, one could enable and disable option for each channel. Though, as long as nobody is requesting that I don't think it's worth the effort. A general "disable/enable" option for dropdown options would be great already.

In the frontend the option would simple be disabled. I am not sure how easy the form validations would be as Sylius validations are sometimes a bit tricky.

Here's an image as example how this could look in the backend grafik

mamazu commented 2 years ago

That is actually a great idea. If you want to contribute something feel free to do so because sadly I don't have any time to do it myself.