Openfoodnetwork: Default selection of Hub/Shop on creation of payment / shipping method when there is only one option

Created on 5 Nov 2019  路  3Comments  路  Source: openfoodfoundation/openfoodnetwork

What is the problem we are solving

When creating a payment or shipping method, you have to select which hub/hubs that method should be attached to

image.png

It is extremely easy to miss and then the user gets lots of red

image.png

Success factors = expected outcome

If there is only one option for selection of Hub / Shop, that should be selected by default, then they don't have to think about it

enhancement good first issue

Most helpful comment

Hello, I would like to work on this one.

All 3 comments

Oh yes pleaaase!!! Can this be a good first issue? ping @openfoodfoundation/developers

Hello, I would like to work on this one.

Great, welcome Cyrille! Join us on slack!

this is at:

  • app/views/spree/admin/payment_methods/edit.html.haml
  • app/views/spree/admin/shipping_methods/edit.html.haml

both use:
app/views/spree/admin/shared/_hubs_sidebar.html.haml

Was this page helpful?
0 / 5 - 0 ratings