Native UI Template Page Layout

( templates/scheduled-orders) The main Scheduled Order template can be broken up into three main sections which the all the 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 which 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

  1. autoship_before_scheduled_order_edit

    1. autoship_scheduled_order_header_template_display
    2. autoship_scheduled_order_schedule_summary_template_display
    3. autoship_scheduled_order_schedule_form_display

  2. autoship_scheduled_order_edit

    I. autoship_scheduled_order_items_form_display (Add / Remove products & Update actions)

    1. autoship_scheduled_order_form_item_remove_link
      • autoship_scheduled_order_item_remove_modify_for_cycle_item
    2. autoship_scheduled_order_form_item_quantity_field
      • autoship_scheduled_order_item_qty_modify_for_cycle_item
    3. 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
    4. autoship_after_scheduled_order_form_items
      • autoship_scheduled_order_items_action_form_display
    5. autoship_after_scheduled_order_form_add_ons
      • autoship_scheduled_order_items_coupon_action_form_display
    6. autoship_update_scheduled_order_form_no_items
      • autoship_scheduled_order_no_items_template_display
    7. autoship_after_scheduled_order_form_table
      • autoship_scheduled_order_totals_summary_template_display

  3. autoship_after_scheduled_order_edit

    1. autoship_scheduled_order_payment_method_summary_template_display
    2. autoship_edit_scheduled_order_payment_form_display_action
    3. autoship_scheduled_order_payment_form_display
    4. autoship_scheduled_order_address_edit_template_display
    5. autoship_scheduled_order_address_form_display

Still need help? Contact Us Contact Us