CMXX - First testing
This commit is contained in:
@@ -1,16 +1,4 @@
|
||||
<?php
|
||||
defined($security_key) or exit;
|
||||
//------------------------------------------
|
||||
// Content Reset Email
|
||||
//------------------------------------------
|
||||
$newuser_subject = 'CustomerPortal user created';
|
||||
$newuser_header = 'Dear CustomerPortal user';
|
||||
|
||||
$newuser_text = 'Your administrator has provided access to the CustomerPortal.';
|
||||
$newuser_credential_text_1 = 'Your account has been created with username ';
|
||||
$newuser_credential_text_2 = 'Please click the button below to complete your registration.';
|
||||
|
||||
$newuser_closure = 'For security reasons this link is only active for 10 minutes.';
|
||||
<?php defined(security_key) or exit;
|
||||
|
||||
//------------------------------------------
|
||||
// Content Reset Email
|
||||
@@ -44,18 +32,18 @@ $message = '
|
||||
<table class="content" width="600" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #cccccc;">
|
||||
<!-- Header -->
|
||||
<tr>
|
||||
<td class="header" style="background-color:#005655; padding: 40px; text-align: center; color: white; font-size: 24px;">
|
||||
CustomerPortal
|
||||
<td class="header" style="background-color:'.color.'; padding: 40px; text-align: center; color: white; font-size: 24px;">
|
||||
'.site_title.'
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Body -->
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
' . $newuser_header . ',
|
||||
'.$newuser_header.',
|
||||
<br>
|
||||
<br>
|
||||
'.$newuser_text.' '.$newuser_credential_text_1.'<b>'.$post_content['username'].'</b>
|
||||
'.$newuser_text.' '.$newuser_credential_text_1.'<b>'.$account['identity'].'</b>
|
||||
<br>
|
||||
<br>
|
||||
'.$newuser_credential_text_2.'
|
||||
@@ -68,8 +56,8 @@ $message = '
|
||||
<!-- CTA Button -->
|
||||
<table cellspacing="0" cellpadding="0" style="margin: auto;">
|
||||
<tr>
|
||||
<td align="center" style="background-color: #008685; padding: 10px 20px; border-radius: 5px;">
|
||||
<a href="https://' . base_url . '/page=myaccount?activation_key='.$resetkey.'" target="_blank" style="color: #ffffff; text-decoration: none; font-weight: bold;">Reset Password</a>
|
||||
<td align="center" style="background-color: '.color_accent.'; padding: 10px 20px; border-radius: 5px;">
|
||||
<a href="'.url('index.php?page=myaccount?activation_key='.$account['accountID'].'').'" target="_blank" style="color: #ffffff; text-decoration: none; font-weight: bold;">'.(${$verify_account} ?? 'Verify account').'</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -77,20 +65,20 @@ $message = '
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
' . $newuser_closure . '
|
||||
<br>
|
||||
'.$newuser_closure.'
|
||||
<br>
|
||||
Kind regards,
|
||||
<br>
|
||||
'.$newuser_signature.'
|
||||
<br>
|
||||
<br>
|
||||
Service team
|
||||
'.$newuser_signature_name.'
|
||||
<br>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Footer -->
|
||||
<tr>
|
||||
<td class="footer" style="background: url(\'https://'.base_url.emaillogo.'\');background-position: center center;background-repeat:no-repeat;background-size:contain;background-color: #005655; padding: 40px;">
|
||||
<td class="footer" style="background: url(\'https://'.base_url.emaillogo.'\');background-position: center center;background-repeat:no-repeat;background-size:contain;background-color:'.color.'; padding: 40px;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -1,13 +1,4 @@
|
||||
<?php
|
||||
defined($security_key) or exit;
|
||||
//------------------------------------------
|
||||
// Content Reset Email
|
||||
//------------------------------------------
|
||||
$changeuser_subject = 'CustomerPortal - password reset requested';
|
||||
$changeuser_header = 'Dear CustomerPortal user';
|
||||
$changeuser_text = 'A password reset has been requested for your account.';
|
||||
$changeuser_credential_text_1 = 'Please click the button below to reset the password of your CustomerPortal account.';
|
||||
$changeuser_closure = 'For security reasons this link is only active for 10 minutes.';
|
||||
<?php defined(security_key) or exit;
|
||||
|
||||
//------------------------------------------
|
||||
// Content Reset Email
|
||||
@@ -42,14 +33,14 @@ $message = '
|
||||
<!-- Header -->
|
||||
<tr>
|
||||
<td class="header" style="background-color:#005655; padding: 40px; text-align: center; color: white; font-size: 24px;">
|
||||
CustomerPortal
|
||||
'.site_title.'
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<!-- Body -->
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
' . $changeuser_header . ',
|
||||
'.$changeuser_header.',
|
||||
<br>
|
||||
<br>
|
||||
'.$changeuser_text.'
|
||||
@@ -66,7 +57,7 @@ $message = '
|
||||
<table cellspacing="0" cellpadding="0" style="margin: auto;">
|
||||
<tr>
|
||||
<td align="center" style="background-color: #008685; padding: 10px 20px; border-radius: 5px;">
|
||||
<a href="https://' . $portalURL . '/reset.php?resetkey='.$resetkey.'" target="_blank" style="color: #ffffff; text-decoration: none; font-weight: bold;">Reset Password</a>
|
||||
<a href="'.url('index.php?page=myaccount?reset_key='.$account['resetkey'].'').'" target="_blank" style="color: #ffffff; text-decoration: none; font-weight: bold;">'.(${$reset_account} ?? 'Reset account').'</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -74,20 +65,20 @@ $message = '
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="body" style="padding: 40px; text-align: left; font-size: 16px; line-height: 1.6;">
|
||||
' . $changeuser_closure . '
|
||||
'.$changeuser_closure.'
|
||||
<br>
|
||||
<br>
|
||||
Kind regards,
|
||||
'.$changeuser_signature.'
|
||||
<br>
|
||||
<br>
|
||||
Service team
|
||||
'.$changeuser_signature_name.'
|
||||
<br>
|
||||
<br>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Footer -->
|
||||
<tr>
|
||||
<td class="footer" style="background: url(\'https://'.$portalURL.emaillogo.'\');background-position: center center;background-repeat:no-repeat;background-size:contain;background-color: #005655; padding: 40px;">
|
||||
<td class="footer" style="background: url(\'https://'.base_url.emaillogo.'\');background-position: center center;background-repeat:no-repeat;background-size:contain;background-color:'.color.'; padding: 40px;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -19,8 +19,8 @@
|
||||
<h1><?=$order_email_message_1?></h1>
|
||||
<p><?=$order_email_message_2?></p></td>
|
||||
<td>
|
||||
<p>Order: <?=$order_id?></p>
|
||||
<p>Date: <?php echo date("Y-m-d");?></p></td>
|
||||
<p><?=$order_invoice_text ?? 'Invoice'?>: <?=$order_id?></p>
|
||||
<p><?=$order_date_text ?? 'Date'?>: <?php echo date("Y-m-d");?></p></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -40,9 +40,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['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['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