Native UI Template Page Hooks Layout
( templates/scheduled-orders) The main Scheduled Order template can be broken up into three main sections which all templates are hooked into. This doc outlines the action hooks and the actions hooks included in each section so devs may understand & customize their Customer Scheduled Orders templates to their needs.
The template which acts as a framework is the order-template.php file. It is broken up into three sections (the hooks and the parameters they take):
- 'autoship_before_scheduled_order_edit' - parameters: $autoship_order, $customer_id, $autoship_customer_id, $autoship_order_id
Contains the areas for the Scheduled Order Notice(s), Status, Order Summary, and the Schedule form. - 'autoship_scheduled_order_edit' - parameters: $autoship_order, $customer_id, $autoship_customer_id, $autoship_order_id
Contains the areas for the Edit Products form, Coupons form, along with the totals summary. - 'autoship_after_scheduled_order_edit' - parameters: $autoship_order, $customer_id, $autoship_customer_id, $autoship_order_id
Contains the areas for the Edit Payment Method form and Edit Shipping Address form.
Native UI Detailed Action Hook Structure
autoship_before_scheduled_order_edit
- autoship_scheduled_order_header_template_display
- autoship_scheduled_order_schedule_summary_template_display
- autoship_scheduled_order_schedule_form_display
autoship_scheduled_order_edit
I. autoship_scheduled_order_items_form_display (Add / Remove products & Update actions)
- autoship_scheduled_order_form_item_remove_link
- autoship_scheduled_order_item_remove_modify_for_cycle_item
- autoship_scheduled_order_form_item_quantity_field
- autoship_scheduled_order_item_qty_modify_for_cycle_item
- autoship_before_scheduled_order_form_item_name
- autoship_scheduled_order_item_stock_notice_display
- autoship_scheduled_order_item_meta_template_display
- autoship_scheduled_order_item_cycle_notice
- autoship_after_scheduled_order_form_items
- autoship_scheduled_order_items_action_form_display
- autoship_after_scheduled_order_form_add_ons
- autoship_scheduled_order_items_coupon_action_form_display
- autoship_update_scheduled_order_form_no_items
- autoship_scheduled_order_no_items_template_display
- autoship_after_scheduled_order_form_table
- autoship_scheduled_order_totals_summary_template_display
- autoship_scheduled_order_form_item_remove_link
autoship_after_scheduled_order_edit
- autoship_scheduled_order_payment_method_summary_template_display
- autoship_edit_scheduled_order_payment_form_display_action
- autoship_scheduled_order_payment_form_display
- autoship_scheduled_order_address_edit_template_display
- autoship_scheduled_order_address_form_display