diff --git a/app/views/spree/checkout/_delivery.html.erb b/app/views/spree/checkout/_delivery.html.erb deleted file mode 100644 index 2a6c89d..0000000 --- a/app/views/spree/checkout/_delivery.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<%# - This is basically a switch that will render the appropriate "delivery choice" partial. - When there are no physical items at all, there should be no different shipping methods to choose. -%> -<%= render @order.digital? && @order.digital_shipping_method.present? ? 'delivery_digital' : 'delivery_original' %> \ No newline at end of file diff --git a/app/views/spree/checkout/_delivery_digital.html.erb b/app/views/spree/checkout/_delivery_digital.html.erb deleted file mode 100644 index 29cd068..0000000 --- a/app/views/spree/checkout/_delivery_digital.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -
- <%= t("shipping_method") %> -
-
-

- <%= radio_button :order, :shipping_method_id, @order.digital_shipping_method[:id] %> - <%==t 'digital_shipping', :email => current_user.email %> (<%= number_to_currency @order.digital_shipping_method[:cost] %>) -

-
-
-
- -
- "/> -
diff --git a/app/views/spree/checkout/_delivery_original.html.erb b/app/views/spree/checkout/_delivery_original.html.erb deleted file mode 100644 index 3277af9..0000000 --- a/app/views/spree/checkout/_delivery_original.html.erb +++ /dev/null @@ -1,38 +0,0 @@ -<%# - NOTE: The code below is an exact duplication of `spree_core/views/checkout/_delivery.html.erb“ - We overwrote the original so we retain access to it by cloning it here. - Feel free to update the code below according to the original if needed! -%> - -
- <%= t(:shipping_method) %> -
-
-

- <% @order.rate_hash.each do |shipping_method| %> - <% next if @order.digital_shipping_method && shipping_method[:id] == @order.digital_shipping_method[:id] %> - - <% end %> -

-
- <% if Spree::Config[:shipping_instructions] && @order.rate_hash.present? %> -

- <%= form.label :special_instructions, t(:shipping_instructions) %>
- <%= form.text_area :special_instructions, :cols => 40, :rows => 7 %> -

- <% end %> -
-
- -
- -
- <%= submit_tag t(:save_and_continue), :class => 'continue button primary' %> -