1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
<?php /** * Checkout * * @see cfw_wc_print_notices_with_wrap() * @see cfw_breadcrumb_navigation() * @see cfw_customer_info_tab_heading() * @see cfw_customer_info_tab_login() * @see cfw_customer_info_address() * @see cfw_customer_info_tab_nav() * @see cfw_shipping_method_address_review_pane() * @see cfw_shipping_methods() * @see cfw_shipping_method_tab_nav() * @see cfw_payment_tab_before_content() * @see cfw_payment_methods() * @see cfw_payment_tab_content_billing_address() * @see cfw_payment_tab_content_order_notes() * @see cfw_payment_tab_content_terms_and_conditions() * @see cfw_payment_tab_nav() * @see cfw_cart_summary_mobile_header() * @see cfw_cart_summary_content_open_wrap() * @see cfw_cart_summary_before_order_review() * @see cfw_cart_html() * @see cfw_coupon_module() * @see cfw_cart_summary_after_order_review() * @see cfw_totals_html() * @see cfw_close_cart_summary_div() */ add_action( 'cfw_checkout_main_container_start', 'cfw_wc_print_notices_with_wrap', 10 ); add_action( 'cfw_checkout_main_container_start', function() { if ( ! apply_filters( 'cfw_replace_form', false ) ) { do_action( 'woocommerce_before_checkout_form', WC()->checkout() ); } }, 20 ); add_action( 'cfw_checkout_main_container_end', function() { if ( ! apply_filters( 'cfw_replace_form', false ) ) { do_action( 'woocommerce_after_checkout_form', WC()->checkout() ); } }, 20 );
// Breadcrumbs add_action( 'cfw_checkout_before_order_review', 'cfw_breadcrumb_navigation', 10 );
// Checkout tabs add_action( 'cfw_checkout_tabs', 'cfw_customer_info_tab', 10 ); add_action( 'cfw_checkout_tabs', 'cfw_shipping_methods_tab', 20 ); add_action( 'cfw_checkout_tabs', 'cfw_payment_methods_tab', 30 );
// Customer Information Tab add_action( 'cfw_checkout_customer_info_tab', 'cfw_payment_request_buttons', 10 ); add_action( 'cfw_checkout_customer_info_tab', 'cfw_customer_info_tab_heading', 20 ); add_action( 'cfw_checkout_customer_info_tab', 'cfw_customer_info_tab_login', 30 ); add_action( 'cfw_checkout_customer_info_tab', 'cfw_customer_info_address', 40 ); add_action( 'cfw_checkout_customer_info_tab', 'cfw_customer_info_tab_nav', 50 );
// Shipping Method Tab add_action( 'cfw_checkout_shipping_method_tab', 'cfw_shipping_method_address_review_pane', 10 ); add_action( 'cfw_checkout_shipping_method_tab', 'cfw_shipping_methods', 20 ); add_action( 'cfw_checkout_shipping_method_tab', 'cfw_shipping_method_tab_nav', 30 );
// Payment Method Tab add_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_method_address_review_pane', 0 ); add_action( 'cfw_checkout_payment_method_tab', 'cfw_maybe_show_coupon_module', 5 ); add_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_methods', 10 ); add_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_tab_content_billing_address', 20 ); add_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_tab_content_order_notes', 30 ); add_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_tab_content_terms_and_conditions', 40 ); add_action( 'cfw_payment_nav_place_order_button', 'cfw_place_order', 10 ); add_action( 'cfw_checkout_payment_method_tab', 'cfw_payment_tab_nav', 50, 0 );
// Cart Summary add_action( 'cfw_checkout_cart_summary', 'cfw_cart_summary_mobile_header', 10 ); add_action( 'cfw_checkout_cart_summary', 'cfw_cart_summary_content_open_wrap', 20 ); // Div open add_action( 'cfw_checkout_cart_summary', 'cfw_cart_summary_before_order_review', 30 ); add_action( 'cfw_checkout_cart_summary', 'cfw_cart_html', 40 ); add_action( 'cfw_checkout_cart_summary', 'cfw_coupon_module', 50 ); add_action( 'cfw_checkout_cart_summary', 'cfw_cart_summary_after_order_review', 60 ); add_action( 'cfw_checkout_cart_summary', 'cfw_totals_html', 70 ); add_action( 'cfw_checkout_cart_summary', 'cfw_close_cart_summary_div', 75 ); // Div close
// Lost password modal add_action( 'cfw_checkout_main_container_end', 'cfw_lost_password_modal' );
/** * Thank You (Order Received) * * @see cfw_thank_you_title() * @see cfw_thank_you_section_start() * @see cfw_thank_you_order_status_row() * @see cfw_thank_you_map() * @see cfw_thank_you_section_end() * @see cfw_thank_you_order_updates() * @see cfw_thank_you_downloads() * @see cfw_thank_you_downloads() * @see cfw_thank_you_customer_information() * @see cfw_thank_you_bottom_controls() * @see cfw_cart_summary_mobile_header() * @see cfw_thank_you_cart_summary_content() * @see cfw_order_totals_html() * @see woocommerce_order_again_button() * @see cfw_close_cart_summary_div() */ add_action( 'cfw_thank_you_content', 'cfw_thank_you_title', 10, 1 ); add_action( 'cfw_thank_you_content', 'cfw_thank_you_section_start_order_status', 20, 1 ); add_action( 'cfw_thank_you_content', 'cfw_thank_you_order_status_row', 30, 2 ); add_action( 'cfw_thank_you_content', 'cfw_thank_you_map', 40, 1 ); add_action( 'cfw_thank_you_content', 'cfw_thank_you_section_end', 50, 1 ); add_action( 'cfw_thank_you_content', 'cfw_thank_you_order_updates_wrapped', 60, 1 ); add_action( 'cfw_thank_you_content', 'cfw_thank_you_downloads_wrapped', 70, 4 ); add_action( 'cfw_thank_you_content', 'cfw_thank_you_customer_information_wrapped', 80, 1 ); add_action( 'woocommerce_thankyou', 'cfw_thank_you_bottom_controls', 100 );
// Cart summary add_action( 'cfw_thank_you_cart_summary', 'cfw_cart_summary_mobile_header_display', 10, 1 ); add_action( 'cfw_thank_you_cart_summary', 'cfw_cart_summary_content_open_wrap', 20, 1 ); add_action( 'cfw_thank_you_cart_summary', 'cfw_thank_you_cart_summary_content', 30, 1 ); add_action( 'cfw_thank_you_cart_summary', 'cfw_order_totals_html', 40, 1 ); add_action( 'cfw_thank_you_cart_summary', 'woocommerce_order_again_button', 45, 1 ); add_action( 'cfw_thank_you_cart_summary', 'cfw_close_cart_summary_div', 50, 1 );
/** * Order Pay Page * * @see cfw_wc_print_notices_with_wrap() * @see cfw_order_pay_heading() * @see cfw_order_pay_form() * @see cfw_cart_summary_mobile_header() * @see cfw_cart_summary_content_open_wrap() * @see cfw_order_pay_cart_summary_content() * @see cfw_close_cart_summary_div() */ add_action( 'cfw_order_pay_main_container_start', 'cfw_wc_print_notices_with_wrap', 10 ); add_action( 'cfw_order_pay_content', 'cfw_order_pay_heading', 10 ); add_action( 'cfw_order_pay_content', 'cfw_order_pay_form', 20, 4 );
// Cart summary add_action( 'cfw_order_pay_cart_summary', 'cfw_cart_summary_mobile_header_display', 10, 1 ); add_action( 'cfw_order_pay_cart_summary', 'cfw_cart_summary_content_open_wrap', 20, 1 ); add_action( 'cfw_order_pay_cart_summary', 'cfw_order_pay_cart_summary_content', 30, 1 ); add_action( 'cfw_order_pay_cart_summary', 'cfw_order_totals_html', 40, 1 ); add_action( 'cfw_order_pay_cart_summary', 'cfw_cart_summary_mobile_header_display', 50, 1 ); add_action( 'cfw_order_pay_cart_summary', 'cfw_close_cart_summary_div', 60, 1 );
/** * Footer * * @see cfw_maybe_output_footer_nav_menu() */ add_action( 'cfw_after_footer', 'cfw_maybe_output_footer_nav_menu', 10 );
|