CMXX - First testing
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
//(defined(security_key) or defined('admin')) or exit; ?>
|
||||
|
||||
<?=template_order_email_header()?>
|
||||
<?php include './custom/translations/translations_'.strtoupper($_SESSION['country_code']).'.php';?>
|
||||
<?=template_order_email_header($user_language)?>
|
||||
<?php include './custom/translations/translations_'.strtoupper($user_language).'.php';?>
|
||||
</tr>
|
||||
<tr><td><br></td></tr>
|
||||
<tr>
|
||||
@@ -39,9 +39,18 @@
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($invoice_cust['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['product_name']} ?? $product['product_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['price'],2)?></td>
|
||||
<td style="text-align:right;"><?=currency_code?> <?=number_format($product['line_total'],2)?></td>
|
||||
|
||||
Reference in New Issue
Block a user