/var/www/html/wp-content/plugins/checkout-for-woocommerce/templates/default/thank-you.php


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
<?php
if ( ! defined'ABSPATH' ) ) {
    exit; 
// Exit if accessed directly
}

/**
 * Fires before <main> container on thank you page
 *
 * @since 3.0.0
 *
 * @param WC_Order $order The order object
 */
do_action'cfw_thank_you_before_main_container'$order ); ?>
<main id="cfw" class="<?php echo cfw_main_container_classes'thank-you' ); ?>">
    <?php
    
/**
     * Fires at top of <main> container on thank you page
     *
     * @since 3.0.0
     *
     * @param WC_Order $order The order object
     */
    
do_action'cfw_thank_you_main_container_start'$order );
    
?>

    <?php if ( ! empty( $order ) ) : ?>
        <div class="row">
            <!-- Order Review -->
            <div id="order_review" class="col-lg-7 cfw-rp" role="main">
                <?php
                
/**
                 * Fires at top of #order_review on thank you page
                 *
                 * @since 3.0.0
                 */
                
do_action'cfw_thank_you_before_order_review' );

                
/**
                 * Fires before <main> container on thank you page
                 *
                 * @since 3.0.0
                 *
                 * @param WC_Order $order The order object
                 * @param array $order_statuses The order statuses we are progressing through
                 * @param bool $show_downloads Whether to show downloads section
                 * @param array $downloads The downloads
                 */
                
do_action'cfw_thank_you_content'$order$order_statuses$show_downloads$downloads );

                
/**
                 * Prevent thank you hooks from running when viewing order
                 *
                 * If we don't do this, tracking scripts will be distorted.
                 */
                
if ( empty( $_GET['view'] ) ) :
                    
/** This action is documented in woocommerce/templates/checkout/thankyou.php **/
                    
do_action'woocommerce_thankyou_' $order->get_payment_method(), $order->get_id() );
                    
do_action'woocommerce_thankyou'$order->get_id() );
                else :
                    
do_action'woocommerce_view_order'$order->get_id() );
                endif;

                
/**
                 * Fires at the end of <main> container on thank you page
                 *
                 * @since 3.0.0
                 */
                
do_action'cfw_thank_you_after_order_review' );
                
?>
            </div>

            <!-- Cart / Sidebar Column -->
            <div id="cfw-cart-summary" class="col-lg-5" role="complementary">
                <?php
                
/**
                 * Fires in cart summary sidebar container on thank you page
                 *
                 * @since 3.0.0
                 *
                 * @param WC_Order $order The order object
                 */
                
do_action'cfw_thank_you_cart_summary'$order );
                
?>
            </div>
        </div>
        <?php
    
endif;

    
/**
     * Fires at the bottom of <main> container on thank you page
     *
     * @since 3.0.0
     *
     * @param WC_Order $order The order object
     */
    
do_action'cfw_thank_you_main_container_end'$order );
    
?>
</main>
<?php
/**
 * Fires after <main> container on thank you page
 *
 * @since 3.0.0
 *
 * @param WC_Order $order The order object
 */
do_action'cfw_thank_you_after_main_container'$order );