mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Don't display no shipping/payment method warnings on order cycle checkout options if the distributor has some that are shared with other distributors
This commit is contained in:
committed by
Filipe
parent
464a9b95a4
commit
1a70cc0c4c
@@ -39,11 +39,11 @@
|
||||
= check_box_tag nil, nil, false, disabled: true
|
||||
= shipping_method.name
|
||||
= "(#{t('.back_end')})"
|
||||
- if shipping_methods.none? && distributor.shipping_methods.backend.none?
|
||||
- if distributor.shipping_methods.frontend.none?
|
||||
%p.text-center
|
||||
= t('.no_shipping_methods')
|
||||
%td
|
||||
- if payment_methods.any?
|
||||
- if distributor.payment_methods.available(:both).any?
|
||||
%ul
|
||||
- payment_methods.each do |payment_method|
|
||||
%li= payment_method.name
|
||||
|
||||
Reference in New Issue
Block a user