mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update reply email for order confirmation mail [OFN-12509]
This commit is contained in:
@@ -10,4 +10,8 @@ module MailerHelper
|
||||
link_to ofn, "https://www.openfoodnetwork.org"
|
||||
end
|
||||
end
|
||||
|
||||
def order_reply_email(order)
|
||||
order.distributor.email_address.presence || order.distributor.contact.email
|
||||
end
|
||||
end
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
%br
|
||||
= @order.distributor.phone || ""
|
||||
%br
|
||||
%a{:href => "mailto:#{@order.distributor.contact.email}", :target => "_blank"}
|
||||
= @order.distributor.email_address.presence || @order.distributor.contact.email
|
||||
%a{:href => "mailto:#{order_reply_email(@order)}", :target => "_blank"}
|
||||
= order_reply_email(@order)
|
||||
%br
|
||||
= @order.distributor.website || ""
|
||||
%br
|
||||
|
||||
Reference in New Issue
Block a user