CMXX - First testing
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php defined(security_key) or exit; ?>
|
||||
|
||||
<?=template_order_email_header()?>
|
||||
<?=template_order_email_header('')?>
|
||||
<?php include './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';?>
|
||||
</tr>
|
||||
<tr><td><br></td></tr>
|
||||
@@ -39,9 +39,17 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($products['products'] as $product): ?>
|
||||
<?php
|
||||
if (isset($product['options']) && $product['options'] !=''){
|
||||
$prod_options = '';
|
||||
foreach ($product['options'] as $prod_opt){
|
||||
$prod_options .= (${$prod_opt} ?? $prod_opt).', ';
|
||||
}
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td><?=${$product['meta']['name']} ?? $product['meta']['name']?></td>
|
||||
<td><?=implode(", ", $product['options'])?></td>
|
||||
<td><?=htmlspecialchars(substr($prod_options, 0,-2), ENT_QUOTES)?></td>
|
||||
<td><?=$product['quantity']?></td>
|
||||
<td><?=currency_code?><?=number_format($product['options_price'],2)?></td>
|
||||
<td style="text-align:right;"><?=number_format($product['options_price'] * $product['quantity'],2)?></td>
|
||||
|
||||
Reference in New Issue
Block a user