CMXX - First candidate
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user