mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #3498 from luisramos0/delete-dead-overrides
Remove dead overrides
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
# Disabled until this form takes order cycles into account
|
||||
# Deface::Override.new(:virtual_path => "spree/checkout/edit",
|
||||
# :insert_after => "[data-hook='checkout_summary_box']",
|
||||
# :partial => "spree/checkout/other_available_distributors",
|
||||
# :name => "add_change_distributor_form_to_checkout_address",
|
||||
# :original => '60b9b1a39079f4efa85ff0425108edf671349d4f')
|
||||
@@ -1,5 +0,0 @@
|
||||
Deface::Override.new(:virtual_path => "spree/products/show",
|
||||
:insert_after => "[data-hook='product_show']",
|
||||
:text => "<%= javascript_include_tag main_app.distributors_enterprises_path(:format => :js) %>",
|
||||
:name => "add_distributor_details_js_to_product",
|
||||
:original => 'b05ac497efeeebd4464f29891fd2c4a0f60c24d9')
|
||||
@@ -1,5 +0,0 @@
|
||||
Deface::Override.new(:virtual_path => "spree/products/show",
|
||||
:insert_before => "[data-hook='cart_form']",
|
||||
:partial => "spree/products/distributor_details",
|
||||
:name => "add_distributor_details_to_product",
|
||||
:original => '789e3f5f6f36a8cd4115d7342752a37735659298')
|
||||
@@ -1,5 +0,0 @@
|
||||
Deface::Override.new(:virtual_path => "spree/products/_cart_form",
|
||||
:replace => "[data-hook='product_price'] .add-to-cart",
|
||||
:partial => "spree/products/add_to_cart",
|
||||
:name => "add_distributor_to_add_to_cart_form",
|
||||
:original => '294014222132c795048fc6c7866971a332672c87')
|
||||
@@ -1,5 +0,0 @@
|
||||
Deface::Override.new(:virtual_path => "spree/products/show",
|
||||
:insert_bottom => "[data-hook='product_left_part_wrap']",
|
||||
:partial => "spree/products/source",
|
||||
:name => "add_source_to_product",
|
||||
:original => 'bce3ba4847b3eac8ae061774a664ac4951d3d9db')
|
||||
@@ -1,5 +0,0 @@
|
||||
Deface::Override.new(:virtual_path => "spree/checkout/_payment",
|
||||
:replace => "code[erb-loud]:contains('submit_tag t(:save_and_continue)')",
|
||||
:text => "<%= submit_tag I18n.t(:process_my_order), :class => 'continue button primary' %>",
|
||||
:name => "replace_checkout_payment_button",
|
||||
:original => 'ce2043a01931b3bc16b045302ebb0e0bb9150b67')
|
||||
@@ -1,5 +0,0 @@
|
||||
Deface::Override.new(:virtual_path => "spree/checkout/_address",
|
||||
:replace => "[data-hook='shipping_fieldset_wrapper']",
|
||||
:partial => "spree/checkout/distributor",
|
||||
:name => "replace_shipping_address_form_with_distributor_details",
|
||||
:original => '53e219f90a2e1ba702a767261d0c2afe100ac751')
|
||||
@@ -1,5 +0,0 @@
|
||||
/ replace_contents '#shipping_method p#minstrs'
|
||||
|
||||
= form.label :special_instructions, t(:delivery_instructions)
|
||||
%br/
|
||||
= form.text_area :special_instructions, :cols => 40, :rows => 7
|
||||
@@ -1,2 +0,0 @@
|
||||
/ replace_contents '#shipping_method legend'
|
||||
= t(:delivery_method)
|
||||
@@ -1,16 +0,0 @@
|
||||
<!-- insert_after '[data-hook="checkout_summary_box"]'
|
||||
sequence :before => 'add_change_distributor_form_to_checkout_address' -->
|
||||
|
||||
<% # Add a new 'Save and Continue/Process My Order' button under Order Summary on the checkout pages %>
|
||||
|
||||
<div id="add_new_save_checkout_button" class="columns omega four">
|
||||
<%= submit_tag @order.state == "payment" ? t(:process_my_order) : t(:save_and_continue),
|
||||
:class => "continue button primary large",
|
||||
:form=> "checkout_form_#{@order.state}" %>
|
||||
<script>
|
||||
//Show additional button only if form attribute is supported
|
||||
if ($("#add_new_save_checkout_button input[type=submit]")[0].form) {
|
||||
$("#add_new_save_checkout_button").show();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
@@ -1,16 +0,0 @@
|
||||
/ replace_contents '#product-variants'
|
||||
|
||||
%h6.product-section-title= t(:variants)
|
||||
%ul
|
||||
- has_checked = false
|
||||
- @product.variants.active(current_currency).each_with_index do |v,index|
|
||||
- next if v.option_values.empty? || (!v.in_stock && !Spree::Config[:show_zero_stock_products])
|
||||
- next if current_order_cycle.present? && !current_order_cycle.has_variant?(v) # All copied from spree apart from this line
|
||||
- checked = !has_checked && (v.in_stock || Spree::Config[:allow_backorders])
|
||||
- has_checked = true if checked
|
||||
%li
|
||||
= radio_button_tag "products[#{@product.id}]", v.id, checked, :disabled => !v.in_stock && !Spree::Config[:allow_backorders], 'data-price' => v.price_in(current_currency).display_price
|
||||
%label{:for => ['products', @product.id, v.id].join('_')}
|
||||
%span.variant-description= variant_options v
|
||||
- if variant_price v
|
||||
%span.price.diff= variant_price v
|
||||
@@ -1 +0,0 @@
|
||||
/ remove '#taxon-crumbs'
|
||||
Reference in New Issue
Block a user