diff --git a/app/overrides/add_cms_checkout_distribution.rb b/app/overrides/add_cms_checkout_distribution.rb new file mode 100644 index 0000000000..28e45b6290 --- /dev/null +++ b/app/overrides/add_cms_checkout_distribution.rb @@ -0,0 +1,4 @@ +Deface::Override.new(:virtual_path => "spree/checkout/_delivery", + :insert_before => "fieldset#shipping_method", + :text => "<%= cms_page_content(:content, Cms::Page.find_by_full_path('/delivery')) %>", + :name => "process_my_order_button") \ No newline at end of file diff --git a/app/overrides/replace_checkout_payment_button.rb b/app/overrides/replace_checkout_payment_button.rb new file mode 100644 index 0000000000..6f7912d087 --- /dev/null +++ b/app/overrides/replace_checkout_payment_button.rb @@ -0,0 +1,4 @@ +Deface::Override.new(:virtual_path => "spree/checkout/_payment", + :replace => "code[erb-loud]:contains('submit_tag t(:save_and_continue)')", + :partial => "spree/checkout/process_my_order_button", + :name => "process_my_order_button") \ No newline at end of file diff --git a/app/views/spree/checkout/_process_my_order_button.html.erb b/app/views/spree/checkout/_process_my_order_button.html.erb new file mode 100644 index 0000000000..8347497347 --- /dev/null +++ b/app/views/spree/checkout/_process_my_order_button.html.erb @@ -0,0 +1 @@ +<%= submit_tag "Process My Order", :class => 'continue button primary' %> \ No newline at end of file diff --git a/app/views/spree/orders/_distributor_fees.html.haml b/app/views/spree/orders/_distributor_fees.html.haml index 2decad3456..1b3633eb6a 100644 --- a/app/views/spree/orders/_distributor_fees.html.haml +++ b/app/views/spree/orders/_distributor_fees.html.haml @@ -1,4 +1,5 @@ #delivery-fees + = cms_page_content(:content, Cms::Page.find_by_full_path('/cart-delivery-fees')) %h2 Delivery Fees %table#delivery