| 1 |
<?php |
| 2 |
/** |
| 3 |
* Checkout template |
| 4 |
* |
| 5 |
* @package CartFlows |
| 6 |
*/ |
| 7 |
|
| 8 |
$checkout_layout = wcf()->options->get_checkout_meta_value( $checkout_id, 'wcf-checkout-layout' ); |
| 9 |
$fields_skins = wcf()->options->get_checkout_meta_value( $checkout_id, 'wcf-fields-skins' ); |
| 10 |
?> |
| 11 |
<div id="wcf-embed-checkout-form" class="wcf-embed-checkout-form wcf-embed-checkout-form-<?php echo $checkout_layout; ?> wcf-field-<?php echo $fields_skins; ?>"> |
| 12 |
<!-- CHECKOUT SHORTCODE --> |
| 13 |
<?php do_action( 'cartflows_add_before_main_section', $checkout_layout ); ?> |
| 14 |
|
| 15 |
<?php |
| 16 |
$checkout_html = do_shortcode( '[woocommerce_checkout]' ); |
| 17 |
|
| 18 |
if ( |
| 19 |
empty( $checkout_html ) || |
| 20 |
trim( $checkout_html ) == '<div class="woocommerce"></div>' |
| 21 |
) { |
| 22 |
echo __( 'Your cart is currently empty.', 'cartflows' ); |
| 23 |
} else { |
| 24 |
echo $checkout_html; |
| 25 |
} |
| 26 |
?> |
| 27 |
|
| 28 |
<?php do_action( 'cartflows_add_after_main_section', $arg = '' ); ?> |
| 29 |
<!-- END CHECKOUT SHORTCODE --> |
| 30 |
</div> |
| 31 |
|