2012-03-13 22:59:23 +00:00
|
|
|
class SysmocomDhlHooks < Spree::ThemeSupport::HookListener
|
|
|
|
# custom hooks go here
|
2012-03-17 12:27:06 +00:00
|
|
|
insert_after :admin_tabs do
|
|
|
|
"<%= tab(:dhls) %>"
|
|
|
|
end
|
2012-03-17 13:43:08 +00:00
|
|
|
|
|
|
|
# Add the DHL label download
|
|
|
|
insert_after :admin_shipment_edit_buttons, 'admin/dhls/address_label'
|
2012-08-01 11:16:51 +00:00
|
|
|
|
|
|
|
# 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'
|
2012-03-17 12:27:06 +00:00
|
|
|
end
|