Merge branch 'bootstrap' of https://github.com/PrestaShop/PrestaShop into bootstrap
This commit is contained in:
commit
5c3058d45b
6 files changed
+265
No files matched your search
@@ -0,0 +1,24 @@
|
|||||||
|
<?php include ('header.php'); ?>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="center">
|
||||||
|
<span class="title"><?php echo t('Hi,'); ?></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="box">
|
||||||
|
<p>
|
||||||
|
{product} <?php echo t('is now available.'); ?>
|
||||||
|
</p>
|
||||||
|
<span>
|
||||||
|
<?php echo t('This item is once again in-stock.'); ?><br /><br />
|
||||||
|
<?php echo t('You can access the product page by clicking on the link:'); ?> <span><strong><a href="{product_link}">{product}</a></strong></span><br />
|
||||||
|
<?php echo t('You can order it right now from our online shop.'); ?>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php include ('footer.php'); ?>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<tr>
|
||||||
|
<td class="space_footer"> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="footer">
|
||||||
|
<span><?php echo t('<a href="{shop_url}">{shop_name}</a> powered by <a href="http://www.prestashop.com/">PrestaShop™</a>'); ?></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
<td class="space"> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
if(!function_exists('t'))
|
||||||
|
{
|
||||||
|
function t($str)
|
||||||
|
{
|
||||||
|
return $str;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!function_exists('findRelativePathToAdminDir'))
|
||||||
|
{
|
||||||
|
function findRelativePathToAdminDir($maxDepth=6)
|
||||||
|
{
|
||||||
|
$path = '';
|
||||||
|
for($i=0; $i<$maxDepth; $i++)
|
||||||
|
{
|
||||||
|
foreach(scandir(dirname(__FILE__).'/'.$path) as $dir)
|
||||||
|
{
|
||||||
|
$candidate = $path.$dir.'/';
|
||||||
|
if(is_dir(dirname(__FILE__).'/'.$candidate.'tabs'))
|
||||||
|
{
|
||||||
|
return $candidate;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$path .= '../';
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$admin = findRelativePathToAdminDir();
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||||
|
<title><?php echo t('Message from {shop_name}'); ?></title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="<?php echo $admin ?>themes/default/css/admin-theme/email.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<table class="table table-mail">
|
||||||
|
<tr>
|
||||||
|
<td class="space"> </td>
|
||||||
|
<td align="center">
|
||||||
|
<table class="table">
|
||||||
|
<tr>
|
||||||
|
<td align="center" class="logo">
|
||||||
|
<a title="{shop_name}" href="{shop_url}">
|
||||||
|
<img src="{shop_logo}" alt="{shop_name}" />
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
@@ -0,0 +1,125 @@
|
|||||||
|
<?php include ('header.php'); ?>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="center">
|
||||||
|
<span class="title"><?php echo t('Congratulations!'); ?></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<span><?php echo t('A new order was placed on {shop_name} from the following customer: {firstname} {lastname} ({email})'); ?></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="box" colspan="3">
|
||||||
|
<p>
|
||||||
|
<?php echo t('Order details'); ?>
|
||||||
|
</p>
|
||||||
|
<span>
|
||||||
|
<span><strong><?php echo t('Order:'); ?></strong></span> {order_name} <?php echo t('Placed on'); ?> {date}<br /><br />
|
||||||
|
<span><strong><?php echo t('Payment:'); ?></strong></span> {payment}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table class="table table-recap" bgcolor="#ffffff"><!-- Title -->
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><?php echo t('Reference'); ?></th>
|
||||||
|
<th width="30%"><?php echo t('Product'); ?></th>
|
||||||
|
<th><?php echo t('Unit price'); ?></th>
|
||||||
|
<th><?php echo t('Quantity'); ?></th>
|
||||||
|
<th><?php echo t('Total price'); ?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td colspan="5">
|
||||||
|
{items}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="conf_body">
|
||||||
|
<td bgcolor="#fbfbfb" align="right" colspan="4"><strong><?php echo t('Products'); ?></strong></td>
|
||||||
|
<td bgcolor="#fbfbfb" align="right">{total_products}</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="conf_body">
|
||||||
|
<td bgcolor="#fbfbfb" align="right" colspan="4"><strong><?php echo t('Discounts'); ?></strong></td>
|
||||||
|
<td bgcolor="#fbfbfb" align="right">{total_discounts}</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="conf_body">
|
||||||
|
<td bgcolor="#fbfbfb" align="right" colspan="4"><strong><?php echo t('Gift-wrapping'); ?></strong></td>
|
||||||
|
<td bgcolor="#fbfbfb" align="right">{total_wrapping}</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="conf_body">
|
||||||
|
<td bgcolor="#fbfbfb" align="right" colspan="4"><strong><?php echo t('Shipping'); ?></strong></td>
|
||||||
|
<td bgcolor="#fbfbfb" align="right">{total_shipping}</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="conf_body">
|
||||||
|
<td bgcolor="#fbfbfb" align="right" colspan="4"><strong><?php echo t('Total Tax paid'); ?></strong></td>
|
||||||
|
<td bgcolor="#fbfbfb" align="right">{total_tax_paid}</td>
|
||||||
|
</tr>
|
||||||
|
<tr class="conf_body">
|
||||||
|
<td bgcolor="#fbfbfb" align="right" colspan="4" class="total"><strong><?php echo t('Total paid'); ?></strong></td>
|
||||||
|
<td bgcolor="#fbfbfb" align="right" class="total_amount">{total_paid}</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="box" colspan="3">
|
||||||
|
<p>
|
||||||
|
<?php echo t('Carrier:'); ?>
|
||||||
|
</p>
|
||||||
|
<span>
|
||||||
|
{carrier}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<table class="table">
|
||||||
|
<tr>
|
||||||
|
<td class="box" width="310">
|
||||||
|
<p>
|
||||||
|
<?php echo t('Delivery address'); ?>
|
||||||
|
</p>
|
||||||
|
<span>
|
||||||
|
{delivery_block_html}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td width="20"> </td>
|
||||||
|
<td class="box" width="310">
|
||||||
|
<p>
|
||||||
|
<?php echo t('Billing address'); ?>
|
||||||
|
</p>
|
||||||
|
<span>
|
||||||
|
{invoice_block_html}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="box" colspan="3">
|
||||||
|
<p>
|
||||||
|
<?php echo t('Customer message:'); ?>
|
||||||
|
</p>
|
||||||
|
<span>
|
||||||
|
{message}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php include ('footer.php'); ?>
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
<?php include ('header.php'); ?>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="center">
|
||||||
|
<span class="title"><?php echo t('Hi,'); ?></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="box">
|
||||||
|
<p>
|
||||||
|
{product} <?php echo t('is almost out of stock.'); ?>
|
||||||
|
</p>
|
||||||
|
<span>
|
||||||
|
<?php echo t('The stock cover is now less than the specified minimum of'); ?> <strong><span>{warning_coverage}.</span></strong><br /><br />
|
||||||
|
<strong><span><?php echo t('Current stock cover:'); ?></span></strong> {current_coverage}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php include ('footer.php'); ?>
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?php include ('header.php'); ?>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td align="center">
|
||||||
|
<span class="title"><?php echo t('Hi,'); ?></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="box">
|
||||||
|
<p>
|
||||||
|
{product} <?php echo t('is nearly out of stock.'); ?>
|
||||||
|
</p>
|
||||||
|
<span>
|
||||||
|
<?php echo t('The remaining stock is now less than the specified minimum of'); ?> <strong><span>{last_qty}.</span></strong><br /><br />
|
||||||
|
<strong><span><?php echo t('Remaining stock:'); ?></span></strong> {qty}<br/><br/>
|
||||||
|
<?php echo t('You are advised to open the product's admin Product Page in order to replenish your inventory.'); ?>
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php include ('footer.php'); ?>
|
||||||
Reference in new issue
Block a user