| 1 |
<?php |
| 2 |
/** |
| 3 |
* Complation page template |
| 4 |
* |
| 5 |
* @package Welcart |
| 6 |
*/ |
| 7 |
|
| 8 |
global $usces_entries, $usces_carts; |
| 9 |
|
| 10 |
usces_get_entries(); |
| 11 |
usces_get_carts(); |
| 12 |
|
| 13 |
$html = ''; |
| 14 |
|
| 15 |
$html .= '<h3>' . esc_html__( 'It has been sent succesfully.', 'usces' ) . '</h3>'; |
| 16 |
$html .= '<div class="post">'; |
| 17 |
$html .= '<div class="header_explanation">'; |
| 18 |
$header = '<p>' . esc_html__( 'Thank you for shopping.', 'usces' ) . '<br />' . esc_html__( "If you have any questions, please contact us by 'Contact'.", 'usces' ) . '</p>'; |
| 19 |
$html .= apply_filters( 'usces_filter_cartcompletion_page_header', $header, $usces_entries, $usces_carts ); |
| 20 |
$html .= '</div><!-- header_explanation -->'; |
| 21 |
|
| 22 |
require USCES_PLUGIN_DIR . '/includes/completion_settlement.php'; |
| 23 |
|
| 24 |
$html .= apply_filters( 'usces_filter_cartcompletion_page_body', null, $usces_entries, $usces_carts ); |
| 25 |
|
| 26 |
$html .= '<div class="footer_explanation">'; |
| 27 |
$footer = ''; |
| 28 |
$html .= apply_filters( 'usces_filter_cartcompletion_page_footer', $footer, $usces_entries, $usces_carts ); |
| 29 |
$html .= '</div><!-- footer_explanation -->'; |
| 30 |
|
| 31 |
$html .= '<div class="send"><a href="' . home_url() . '" class="back_to_top_button">' . esc_html__( 'Back to the top page.', 'usces' ) . '</a></div>'; |
| 32 |
|
| 33 |
$html .= '</div><!-- post -->'; |
| 34 |
$html .= apply_filters( 'usces_filter_conversion_tracking', null, $usces_entries, $usces_carts ); |
| 35 |
|