我正在尝试在结帐电子邮件后插入文本。我在 spree/order_mailer/confirm_email.text.erb 中找到了模板
<%= Spree.t('order_mailer.confirm_email.dear_customer') %>
<%= Spree.t('order_mailer.confirm_email.instructions') %>
============================================================
<%= Spree.t('order_mailer.confirm_email.order_summary') %>
============================================================
<% @order.line_items.each do |item| %>
<%= item.variant.sku %> <%= raw(item.variant.product.name) %> <%= raw(item.variant.options_text) -%> (<%=item.quantity%>) @ <%= item.single_money %> = <%= item.display_amount %>
<% end %>
============================================================
<%= Spree.t('order_mailer.confirm_email.subtotal', :subtotal => @order.display_item_total) %>
<% @order.adjustments.eligible.each do |adjustment| %>
<%= raw(adjustment.label) %> <%= adjustment.display_amount %>
<% end %>
<%= Spree.t('order_mailer.confirm_email.total', :total => @order.display_total) %>
<%= Spree.t('order_mailer.confirm_email.thanks') %>
所以我不知道如何在此之后添加一些文本,没有任何选择器:
Deface::Override.new(
:virtual_path => "spree/order_mailer/confirm_email",
:insert_bottom => '*',
:partial => "spree/shared/confirm_email",
:name => "confirm_email",
:original => '3a8c298b4d9884a4d9f842b23fcb4fabf92ef0f3'
)
你能告诉我任何解决这个问题的方法吗?