preselect the only available shipping method

This commit is contained in:
Jean-Baptiste Bellet
2022-02-11 17:03:58 +01:00
parent 716286497e
commit 012e91879a

View File

@@ -74,6 +74,7 @@
- display_ship_address = false
- ship_method_description = nil
- selected_shipping_method ||= @shipping_methods[0].id if @shipping_methods.length == 1
- @shipping_methods.each do |shipping_method|
%div.checkout-input.checkout-input-radio
= fields_for shipping_method do |shipping_method_form|