- Issue created by @kumkum29
- Status changed to Closed: won't fix
4 months ago 7:27am 20 May 2024 - 🇮🇱Israel jsacksick
You can expose radios, not checkboxes, (See https://docs.drupalcommerce.org/v2/developer-guide/products/product-info...).
The attribute selection is here to select an entity to purchase, as a result checkboxes can't work here (since you could select multiple).
- 🇫🇷France kumkum29
Hello jsacksick,
yes it was an error on my part, I want to modify the rendering of the attributes to radio buttons.
I don't see in the commerce settings how to proceed.
For the moment, i use this hook to alter the type on the attributes : hook_form_commerce_order_item_add_to_cart_form_alter. It's not user friendly.
Can I choose the display mode in Drupal commerce settings?
Thanks.