<?php
/**
 * @author: Uldis Zvirbulis <uldis.zvirbulis@mtcmedia.co.uk>
 * @version: 11/7/2017
 */

$path = '../../';
require_once $path . 'core/includes/header.inc.php';

$order = new Order($_SESSION['order_id']);

$page_meta = [
    'title' => 'Your order is now complete | ' . config('app.name'),
    'page_title' => 'Order Complete',
    'page_sub_title' => 'Thank you for shopping online with ' . config('app.name'),
];

$_SESSION['basket_id'] = '';
unset($basket);
$basket = new Basket();
$basket->Go_basket();

echo $twig->render('shop/checkout/order_complete.twig', [
    'page_meta' => $page_meta,
    'basket_object' => $order,
]);