mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-18 04:39:14 +00:00
Update delivery page of checkout, change shipping to delivery
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
$(document).ready ->
|
||||
$('#cart_adjustments').hide()
|
||||
|
||||
$('th.cart-adjustment-header').html('<a href="#">Order Adjustments...</a>')
|
||||
$('th.cart-adjustment-header').html('<a href="#">Distribution...</a>')
|
||||
$('th.cart-adjustment-header a').click ->
|
||||
$('#cart_adjustments').toggle()
|
||||
$('th.cart-adjustment-header a').html('Order Adjustments')
|
||||
$('th.cart-adjustment-header a').html('Distribution')
|
||||
false
|
||||
@@ -10,4 +10,8 @@ Spree::ShippingMethod.class_eval do
|
||||
end
|
||||
alias_method_chain :available_to_order?, :distributor_check
|
||||
|
||||
def adjustment_label
|
||||
'Delivery'
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
/ replace_contents '#shipping_method p#minstrs'
|
||||
|
||||
= form.label :special_instructions, 'Delivery Instructions'
|
||||
%br/
|
||||
= form.text_area :special_instructions, :cols => 40, :rows => 7
|
||||
@@ -0,0 +1,2 @@
|
||||
/ replace_contents '#shipping_method legend'
|
||||
Delivery Method
|
||||
@@ -393,7 +393,7 @@ feature %q{
|
||||
|
||||
# -- Checkout: Delivery
|
||||
order_charges = page.all("tbody#summary-order-charges tr").map {|row| row.all('td').map(&:text)}.take(2)
|
||||
order_charges.should == [["Shipping:", "$0.00"],
|
||||
order_charges.should == [["Delivery:", "$0.00"],
|
||||
["Distribution:", "$54.00"]]
|
||||
click_checkout_continue_button
|
||||
|
||||
@@ -476,7 +476,7 @@ feature %q{
|
||||
|
||||
# -- Checkout: Delivery
|
||||
order_charges = page.all("tbody#summary-order-charges tr").map {|row| row.all('td').map(&:text)}.take(2)
|
||||
order_charges.should == [["Shipping:", "$0.00"],
|
||||
order_charges.should == [["Delivery:", "$0.00"],
|
||||
["Distribution:", "$54.00"]]
|
||||
click_checkout_continue_button
|
||||
|
||||
|
||||
Reference in New Issue
Block a user