Variant as RadioSelect

23 views
Skip to first unread message

mykl john

unread,
Sep 16, 2017, 2:09:48 PM9/16/17
to django-oscar
I want to change the Product Screen to display the Variant as a Radio Select.

I tried to add the widget to basket/form.py class AddToBasketForm(forms.Form), but you can only have 1 widget called.

The existing widget is:

            widget=[forms.RadioSelect(), widgets.AdvancedSelect(disabled_values=disabled_values)])

If I change it to:

            widget=forms.RadioSelect())

It works as I want, but no longer eliminates disabled values.

Any idea how to do this?

cheers,  Mykl
Reply all
Reply to author
Forward
0 new messages