From 4a35b53b4366663d2cab58c43aa31bb60c7ff777 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Thu, 14 Feb 2019 17:02:52 +0000 Subject: [PATCH] Remove dead overrides --- ...hange_distributor_form_to_checkout_address.rb | 6 ------ .../add_distributor_details_js_to_product.rb | 5 ----- .../add_distributor_details_to_product.rb | 5 ----- .../add_distributor_to_add_to_cart_form.rb | 5 ----- app/overrides/add_source_to_product.rb | 5 ----- app/overrides/replace_checkout_payment_button.rb | 5 ----- ...ping_address_form_with_distributor_details.rb | 5 ----- ...ons_to_delivery_instructions.html.haml.deface | 5 ----- ...ng_method_to_delivery_method.html.haml.deface | 2 -- .../add_new_save_checkout_button.html.erb.deface | 16 ---------------- ...urrent_distribution_variants.html.haml.deface | 16 ---------------- .../_taxons/hide_taxon_crumbs.html.haml.deface | 1 - 12 files changed, 76 deletions(-) delete mode 100644 app/overrides/add_change_distributor_form_to_checkout_address.rb delete mode 100644 app/overrides/add_distributor_details_js_to_product.rb delete mode 100644 app/overrides/add_distributor_details_to_product.rb delete mode 100644 app/overrides/add_distributor_to_add_to_cart_form.rb delete mode 100644 app/overrides/add_source_to_product.rb delete mode 100644 app/overrides/replace_checkout_payment_button.rb delete mode 100644 app/overrides/replace_shipping_address_form_with_distributor_details.rb delete mode 100644 app/overrides/spree/checkout/_delivery/shipping_instructions_to_delivery_instructions.html.haml.deface delete mode 100644 app/overrides/spree/checkout/_delivery/shipping_method_to_delivery_method.html.haml.deface delete mode 100644 app/overrides/spree/checkout/edit/add_new_save_checkout_button.html.erb.deface delete mode 100644 app/overrides/spree/products/_cart_form/only_show_current_distribution_variants.html.haml.deface delete mode 100644 app/overrides/spree/products/_taxons/hide_taxon_crumbs.html.haml.deface diff --git a/app/overrides/add_change_distributor_form_to_checkout_address.rb b/app/overrides/add_change_distributor_form_to_checkout_address.rb deleted file mode 100644 index 19b91d2b1f..0000000000 --- a/app/overrides/add_change_distributor_form_to_checkout_address.rb +++ /dev/null @@ -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') diff --git a/app/overrides/add_distributor_details_js_to_product.rb b/app/overrides/add_distributor_details_js_to_product.rb deleted file mode 100644 index 607735b992..0000000000 --- a/app/overrides/add_distributor_details_js_to_product.rb +++ /dev/null @@ -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') diff --git a/app/overrides/add_distributor_details_to_product.rb b/app/overrides/add_distributor_details_to_product.rb deleted file mode 100644 index dbe657bf96..0000000000 --- a/app/overrides/add_distributor_details_to_product.rb +++ /dev/null @@ -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') diff --git a/app/overrides/add_distributor_to_add_to_cart_form.rb b/app/overrides/add_distributor_to_add_to_cart_form.rb deleted file mode 100644 index ad47700473..0000000000 --- a/app/overrides/add_distributor_to_add_to_cart_form.rb +++ /dev/null @@ -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') diff --git a/app/overrides/add_source_to_product.rb b/app/overrides/add_source_to_product.rb deleted file mode 100644 index ded798e840..0000000000 --- a/app/overrides/add_source_to_product.rb +++ /dev/null @@ -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') diff --git a/app/overrides/replace_checkout_payment_button.rb b/app/overrides/replace_checkout_payment_button.rb deleted file mode 100644 index 60a198817c..0000000000 --- a/app/overrides/replace_checkout_payment_button.rb +++ /dev/null @@ -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') diff --git a/app/overrides/replace_shipping_address_form_with_distributor_details.rb b/app/overrides/replace_shipping_address_form_with_distributor_details.rb deleted file mode 100644 index c408dc8ed4..0000000000 --- a/app/overrides/replace_shipping_address_form_with_distributor_details.rb +++ /dev/null @@ -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') diff --git a/app/overrides/spree/checkout/_delivery/shipping_instructions_to_delivery_instructions.html.haml.deface b/app/overrides/spree/checkout/_delivery/shipping_instructions_to_delivery_instructions.html.haml.deface deleted file mode 100644 index badf49339c..0000000000 --- a/app/overrides/spree/checkout/_delivery/shipping_instructions_to_delivery_instructions.html.haml.deface +++ /dev/null @@ -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 diff --git a/app/overrides/spree/checkout/_delivery/shipping_method_to_delivery_method.html.haml.deface b/app/overrides/spree/checkout/_delivery/shipping_method_to_delivery_method.html.haml.deface deleted file mode 100644 index 817a27b0ca..0000000000 --- a/app/overrides/spree/checkout/_delivery/shipping_method_to_delivery_method.html.haml.deface +++ /dev/null @@ -1,2 +0,0 @@ -/ replace_contents '#shipping_method legend' -= t(:delivery_method) diff --git a/app/overrides/spree/checkout/edit/add_new_save_checkout_button.html.erb.deface b/app/overrides/spree/checkout/edit/add_new_save_checkout_button.html.erb.deface deleted file mode 100644 index f70c064f72..0000000000 --- a/app/overrides/spree/checkout/edit/add_new_save_checkout_button.html.erb.deface +++ /dev/null @@ -1,16 +0,0 @@ - - -<% # Add a new 'Save and Continue/Process My Order' button under Order Summary on the checkout pages %> - -
- <%= submit_tag @order.state == "payment" ? t(:process_my_order) : t(:save_and_continue), - :class => "continue button primary large", - :form=> "checkout_form_#{@order.state}" %> - -
diff --git a/app/overrides/spree/products/_cart_form/only_show_current_distribution_variants.html.haml.deface b/app/overrides/spree/products/_cart_form/only_show_current_distribution_variants.html.haml.deface deleted file mode 100644 index adfe5af84f..0000000000 --- a/app/overrides/spree/products/_cart_form/only_show_current_distribution_variants.html.haml.deface +++ /dev/null @@ -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 diff --git a/app/overrides/spree/products/_taxons/hide_taxon_crumbs.html.haml.deface b/app/overrides/spree/products/_taxons/hide_taxon_crumbs.html.haml.deface deleted file mode 100644 index 524433516c..0000000000 --- a/app/overrides/spree/products/_taxons/hide_taxon_crumbs.html.haml.deface +++ /dev/null @@ -1 +0,0 @@ -/ remove '#taxon-crumbs'