mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
Merge branch 'checkout-changes'
This commit is contained in:
4
app/overrides/add_cms_checkout_distribution.rb
Normal file
4
app/overrides/add_cms_checkout_distribution.rb
Normal file
@@ -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")
|
||||
4
app/overrides/replace_checkout_payment_button.rb
Normal file
4
app/overrides/replace_checkout_payment_button.rb
Normal file
@@ -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")
|
||||
@@ -0,0 +1 @@
|
||||
<%= submit_tag "Process My Order", :class => 'continue button primary' %>
|
||||
@@ -1,4 +1,5 @@
|
||||
#delivery-fees
|
||||
= cms_page_content(:content, Cms::Page.find_by_full_path('/cart-delivery-fees'))
|
||||
%h2 Delivery Fees
|
||||
|
||||
%table#delivery
|
||||
|
||||
Reference in New Issue
Block a user