sysmocom_dhl/lib/sysmocom_dhl_hooks.rb

14 lines
473 B
Ruby

class SysmocomDhlHooks < Spree::ThemeSupport::HookListener
# custom hooks go here
insert_after :admin_tabs do
"<%= tab(:dhls) %>"
end
# Add the DHL label download
insert_after :admin_shipment_edit_buttons, 'admin/dhls/address_label'
# Add shipment identification..
insert_after :shipment_mailer_shipped_email_tracking, 'shipment_mailer/dhls/tracking_description'
insert_after :admin_shipping_method_form_fields, 'admin/dhls/method_details_form'
end