CMXX - First candidate

This commit is contained in:
“VeLiTi”
2025-03-05 20:45:35 +01:00
parent 3a52632d61
commit faf5a5156b
29 changed files with 588 additions and 1053 deletions

View File

@@ -104,14 +104,18 @@ if ($order['header']['shipping_method']) {
</div>';
}
//Translate status INT to STR
$payment_status = 'payment_status_'.$order['header']['payment_status'];
$payment_method = 'payment_method_'.$order['header']['payment_method'];
$view .='
<div class="order-detail">
<h3>Payment Method</h3>
<p>' . $order['header']['payment_method'] . '</p>
<p>' . (${$payment_method} ?? $order['header']['payment_method'] ). '</p>
</div>
<div class="order-detail">
<h3>Payment Status</h3>
<p>' . $order['header']['payment_status'] . '</p>
<p>' . (${$payment_status} ?? $order['header']['payment_status'] ). '</p>
</div>
<div class="order-detail">
<h3>Date</h3>
@@ -218,6 +222,7 @@ if (empty($order)) {
</tr>';
} else {
foreach ($order['products'] as $item) {
$view .='
<tr>
<td>' . ($item['product_name'] ? htmlspecialchars(${$item['product_name']} ?? $item['product_name'] , ENT_QUOTES) : '(Product ' . $item['item_id'] . ')') . '</td>