www
/
wwwroot
/
magazinmiorita.be
➕ New
📤 Upload
✎ Editing:
checkout.php
← Back
<?php ob_start(); include('includes/inc.config.php'); include('header.php'); if(isset($_SESSION['message'])){ $message = $_SESSION['message']; }else{ $message = ''; } if(isset($_SESSION['cart'])){ $cart = $_SESSION['cart']; $cart_data = array(); foreach ($cart as $key => $item){ $itemdata = explode('|',$item); $ch['amount'] = money_format('%.2n', $itemdata[5]); $ch['qt'] = $itemdata[4]; $ch['price'] = $itemdata[3]; $ch['type'] = $itemdata[2]; $ch['weight'] = $itemdata[1]; $ch['item_id'] = $itemdata[0]; $ch['code'] = $itemdata[6]; $ch['calc_total'] += $itemdata[5]; $ch['chsubtotal'] = money_format('%.2n',$ch['calc_total']); $ch['chtotal'] = money_format('%.2n',$data->vat($ch['calc_total'],$data->settings('tax'))); $ch['cltotal'] = number_format($data->vat($ch['calc_total'],$data->settings('tax')),2); $ch['tax'] = money_format('%.2n',$data->tax($ch['calc_total'],$data->settings('tax'))); $ch['key'] = $key; $cart_ch[] = $ch; } } $region_results = array(); $region = $database->execute(" SELECT * FROM `cities` "); while($row = $database->fetch($region)){ $region_results[] = $row; } $smarty->assign("message", $message); $smarty->assign("tax", $ch['tax']); $smarty->assign("chsubtotal", $ch['chsubtotal']); $smarty->assign("chtotal", $ch['chtotal']); $smarty->assign("cltotal", $ch['cltotal']); $smarty->assign("cities", $region_results); $smarty->assign("cartch", $cart_ch); $smarty->display('checkout.tpl'); unset($_SESSION['message']); ?>
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel