You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
cosmopet-architecture/wp-content/themes/cosmopet/woocommerce/checkout/form-checkout.php

29 lines
630 B

<?php
/**
* Checkout Form
*
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
* @version 3.5.0
*/
if (!defined('ABSPATH')) {
exit;
}
// Get Timber context
$context = Timber::context();
// Add WooCommerce-specific data to context
$context['checkout'] = WC()->checkout();
// In your theme's functions.php
add_filter('timber/twig', function($twig) {
$twig->addFunction(new \Twig\TwigFunction('WC', function() {
return WC();
}));
return $twig;
});
// Render the Twig template
Timber::render('shop/checkout.twig', $context);