first commit
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
{$JSON_PRETTY_PRINT = 128}
|
||||
{*<div class="well">*}
|
||||
{*<p><b>{$name}</b></p>*}
|
||||
{*<pre>{json_encode($automation, $JSON_PRETTY_PRINT)}</pre>*}
|
||||
{*</div>*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Created at' mod='mailchimppro'}</th>
|
||||
<th>{l s='Started at' mod='mailchimppro'}</th>
|
||||
<th>{l s='Status' mod='mailchimppro'}</th>
|
||||
<th>{l s='Emails sent' mod='mailchimppro'}</th>
|
||||
<th>{l s='Recipients' mod='mailchimppro'}</th>
|
||||
<th>{l s='Settings' mod='mailchimppro'}</th>
|
||||
<th>{l s='Tracking' mod='mailchimppro'}</th>
|
||||
<th>{l s='Trigger settings' mod='mailchimppro'}</th>
|
||||
<th>{l s='Report summary' mod='mailchimppro'}</th>
|
||||
<th>{l s='' mod='mailchimppro'}</th>
|
||||
<th>{l s='' mod='mailchimppro'}</th>
|
||||
<th>#</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $automations as $automation}
|
||||
<tr>
|
||||
<td>
|
||||
{$automation.id|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$automation.create_time|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$automation.start_time|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$automation.status|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$automation.emails_sent|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
<div class="well">
|
||||
{* HTML code, no need for escape *}
|
||||
<pre>{json_encode($automation.recipients, $JSON_PRETTY_PRINT)}</pre>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="well">
|
||||
{* HTML code, no need for escape *}
|
||||
<pre>{json_encode($automation.settings, $JSON_PRETTY_PRINT)}</pre>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="well">
|
||||
{* HTML code, no need for escape *}
|
||||
<pre>{json_encode($automation.tracking, $JSON_PRETTY_PRINT)}</pre>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="well">
|
||||
{* HTML code, no need for escape *}
|
||||
<pre>{json_encode($automation.trigger_settings, $JSON_PRETTY_PRINT)}</pre>
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
<div class="well">
|
||||
{if isset($automation.report_summary)}
|
||||
{* HTML code, no need for escape *}
|
||||
<pre>{json_encode($automation.report_summary, $JSON_PRETTY_PRINT)}</pre>
|
||||
{/if}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,55 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Status' mod='mailchimppro'}</th>
|
||||
<th>{l s='Total operations' mod='mailchimppro'}</th>
|
||||
<th>{l s='Finished operations' mod='mailchimppro'}</th>
|
||||
<th>{l s='Failed operations' mod='mailchimppro'}</th>
|
||||
<th>{l s='Submitted at' mod='mailchimppro'}</th>
|
||||
<th>{l s='Completed at' mod='mailchimppro'}</th>
|
||||
<th>#</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $batches as $batch}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{LinkHelper::getAdminLink('AdminMailchimpProBatches', true, [], ['action' => 'single', 'entity_id' => $batch.id])|escape:'htmlall':'UTF-8'}">
|
||||
{$batch.id|escape:'htmlall':'UTF-8'}
|
||||
</a>
|
||||
</td>
|
||||
<td>{$batch.status|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$batch.total_operations|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$batch.finished_operations|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$batch.errored_operations|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$batch.submitted_at|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$batch.completed_at|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
<a href="{LinkHelper::getAdminLink('AdminMailchimpProBatches', true, [], ['action' => 'entitydelete', 'entity_id' => $batch.id])|escape:'htmlall':'UTF-8'}">
|
||||
Delete
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2018 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2018 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,25 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
{foreach $lines as $product}
|
||||
<p>
|
||||
<b>{$product.product_variant_title|escape:'htmlall':'UTF-8'}</b>
|
||||
<small style="color: red">PID: {$product.product_id|escape:'htmlall':'UTF-8'}, CID: {$product.product_variant_id|escape:'htmlall':'UTF-8'}</small>
|
||||
<small style="color: blue">QTY: {$product.quantity|escape:'htmlall':'UTF-8'}</small>
|
||||
<small style="color: green">{$product.price|escape:'htmlall':'UTF-8'} {$currency_code|escape:'htmlall':'UTF-8'}</small>
|
||||
</p>
|
||||
{/foreach}
|
||||
@@ -0,0 +1,51 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Customer' mod='mailchimppro'}</th>
|
||||
<th>{l s='Order total' mod='mailchimppro'}</th>
|
||||
<th>{l s='Products' mod='mailchimppro'}</th>
|
||||
<th>{l s='Created at' mod='mailchimppro'}</th>
|
||||
<th>{l s='Updated at' mod='mailchimppro'}</th>
|
||||
<th>#</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $carts as $cart}
|
||||
<tr>
|
||||
<td>{$cart.id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$cart.customer.email_address|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$cart.order_total|escape:'htmlall':'UTF-8'} {$cart.currency_code|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
{include file='./cart/line.tpl' lines=$cart.lines currency_code=$cart.currency_code}
|
||||
</td>
|
||||
<td>{$cart.created_at|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$cart.updated_at|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
<a href="{LinkHelper::getAdminLink('AdminMailchimpProCarts', true, [], ['action' => 'entitydelete', 'entity_id' => $cart.id])|escape:'htmlall':'UTF-8'}">
|
||||
Delete
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,49 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Email' mod='mailchimppro'}</th>
|
||||
<th>{l s='Name' mod='mailchimppro'}</th>
|
||||
<th>{l s='Orders' mod='mailchimppro'}</th>
|
||||
<th>{l s='Opt in status' mod='mailchimppro'}</th>
|
||||
<th>{l s='Total orders' mod='mailchimppro'}</th>
|
||||
<th>#</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $customers as $customer}
|
||||
<tr>
|
||||
<td>{$customer.id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$customer.email_address|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$customer.first_name|escape:'htmlall':'UTF-8'} {$customer.last_name|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$customer.orders_count|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$customer.opt_in_status|var_export:true|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$customer.total_spent|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
<a href="{LinkHelper::getAdminLink('AdminMailchimpProCustomers', true, [], ['action' => 'entitydelete', 'entity_id' => $customer.id])|escape:'htmlall':'UTF-8'}">
|
||||
Delete
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2018 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2018 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,92 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Web ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Name' mod='mailchimppro'}
|
||||
<th>#</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $lists as $list}
|
||||
<tr>
|
||||
|
||||
<td>{$list.id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$list.web_id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$list.name|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
<div class="btn-group btn-group-xs" role="group" aria-label="...">
|
||||
<a class="btn btn-default"
|
||||
href="{LinkHelper::getAdminLink('AdminMailchimpProLists', true, [], ['action' => 'entitydelete', 'entity_id' => $list.id])|escape:'htmlall':'UTF-8'}">
|
||||
Delete
|
||||
</a>
|
||||
|
||||
<a class="btn btn-default"
|
||||
href="{LinkHelper::getAdminLink('AdminMailchimpProListMembers', true, [], ['list_id' => $list.id])|escape:'htmlall':'UTF-8'}">
|
||||
{l s='Members' mod='mailchimppro'}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#new-list-modal" style="display: none">
|
||||
{l s='Add new list' mod='mailchimppro'}
|
||||
</button>
|
||||
<div class="modal fade" id="new-list-modal" tabindex="-1" role="dialog" aria-labelledby="new-list-modal-label">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<form class="form-horizontal" role="form"
|
||||
action="{LinkHelper::getAdminLink ('AdminMailchimpProLists', false, [], ['action' => 'new'])|escape:'htmlall':'UTF-8'}"
|
||||
method="post">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
<h4 class="modal-title" id="new-list-modal-label">
|
||||
{l s='Add new list' mod='mailchimppro'}
|
||||
</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<input type="hidden" value="{getAdminToken tab='AdminMailchimpProLists'}" name="token">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label" for="list-name-input">
|
||||
{l s='List name' mod='mailchimppro'}
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control" id="list-name-input"
|
||||
placeholder="{l s='List name' mod='mailchimppro'}" name="list_name"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">
|
||||
{l s='Cancel' mod='mailchimppro'}
|
||||
</button>
|
||||
<button type="submit" class="btn btn-primary">{l s='Save' mod='mailchimppro'}</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,50 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Email' mod='mailchimppro'}</th>
|
||||
<th>{l s='Email type' mod='mailchimppro'}</th>
|
||||
<th>{l s='Status' mod='mailchimppro'}</th>
|
||||
<th>{l s='IP signup' mod='mailchimppro'}</th>
|
||||
<th>{l s='Signup time' mod='mailchimppro'}</th>
|
||||
<th>{l s='IP Opt-in' mod='mailchimppro'}</th>
|
||||
<th>{l s='Language' mod='mailchimppro'}</th>
|
||||
<th>{l s='VIP' mod='mailchimppro'}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $members as $member}
|
||||
<tr>
|
||||
|
||||
<td>{$member.id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$member.email_address|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$member.email_type|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$member.status|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$member.ip_signup|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$member.timestamp_signup|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$member.ip_opt|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$member.language|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$member.vip|escape:'htmlall':'UTF-8'}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2018 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2018 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,61 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
|
||||
<tr>
|
||||
<td>{$order.id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
{if isset($order.customer)}
|
||||
<b>{$order.customer.email_address|escape:'htmlall':'UTF-8'}</b>
|
||||
<small>ID: {$order.customer.id|escape:'htmlall':'UTF-8'}</small>
|
||||
{else}
|
||||
<span class="text-danger">{l s='No customer' mod='mailchimppro'}</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td>
|
||||
{$order.store_id|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$order.financial_status|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$order.fulfillment_status|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$order.order_total|escape:'htmlall':'UTF-8'} {$order.currency_code|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$order.discount_total|escape:'htmlall':'UTF-8'} {$order.currency_code|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$order.tax_total|escape:'htmlall':'UTF-8'} {$order.currency_code|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$order.shipping_total|escape:'htmlall':'UTF-8'} {$order.currency_code|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{$order.processed_at_foreign|escape:'htmlall':'UTF-8'}
|
||||
</td>
|
||||
<td>
|
||||
{include file='./../cart/line.tpl' lines=$order.lines currency_code=$order.currency_code}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{$link->getAdminLink('AdminMailchimpProOrders', true, [], ['action' => 'entitydelete', 'entity_id' => $order.id])|escape:'htmlall':'UTF-8'}">
|
||||
Delete
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -0,0 +1,42 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Customer' mod='mailchimppro'}</th>
|
||||
<th>{l s='Store ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Financial status' mod='mailchimppro'}</th>
|
||||
<th>{l s='Fulfillment status' mod='mailchimppro'}</th>
|
||||
<th>{l s='Total' mod='mailchimppro'}</th>
|
||||
<th>{l s='Discount' mod='mailchimppro'}</th>
|
||||
<th>{l s='Tax' mod='mailchimppro'}</th>
|
||||
<th>{l s='Shipping' mod='mailchimppro'}</th>
|
||||
<th>{l s='Processed at' mod='mailchimppro'}</th>
|
||||
<th>{l s='Products' mod='mailchimppro'}</th>
|
||||
<th>#</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $orders as $order}
|
||||
{include file='./order/line.tpl' order=$order currency_code=$order.currency_code}
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* 2007-2018 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/afl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2018 PrestaShop SA
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
|
||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
|
||||
|
||||
header('Cache-Control: no-store, no-cache, must-revalidate');
|
||||
header('Cache-Control: post-check=0, pre-check=0', false);
|
||||
header('Pragma: no-cache');
|
||||
|
||||
header('Location: ../');
|
||||
exit;
|
||||
@@ -0,0 +1,28 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
{foreach $variants as $name => $variant}
|
||||
<p class="well">
|
||||
<b>
|
||||
<a href="{$variant.url|escape:'htmlall':'UTF-8'}" target="_blank" rel="nofollow">
|
||||
{$variant.title|escape:'htmlall':'UTF-8'}
|
||||
</a>
|
||||
</b>
|
||||
<small style="color: red">SKU: {$variant.sku|escape:'htmlall':'UTF-8'}</small>
|
||||
<small style="color: rebeccapurple">PRICE: {$variant.price|escape:'htmlall':'UTF-8'}</small>
|
||||
</p>
|
||||
{/foreach}
|
||||
@@ -0,0 +1,59 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='ID' mod='mailchimppro'}</th>
|
||||
<th></th>
|
||||
<th>{l s='Name' mod='mailchimppro'}</th>
|
||||
<th>{l s='Description' mod='mailchimppro'}</th>
|
||||
<th>{l s='Type' mod='mailchimppro'}</th>
|
||||
<th>{l s='Vendor' mod='mailchimppro'}</th>
|
||||
<th>{l s='Variants' mod='mailchimppro'}</th>
|
||||
<th>#</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $products as $product}
|
||||
<tr>
|
||||
<td>{$product.id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
<img src="{$product.image_url|escape:'htmlall':'UTF-8'}" class="img-responsive" style="max-width: 75px">
|
||||
</td>
|
||||
<td>
|
||||
<a href="{$product.url|escape:'htmlall':'UTF-8'}">
|
||||
{$product.title|escape:'htmlall':'UTF-8'}
|
||||
</a>
|
||||
</td>
|
||||
<td>{$product.description|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$product.type|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$product.vendor|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
{include file='./product/variants.tpl' variants=$product.variants}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{LinkHelper::getAdminLink('AdminMailchimpProProducts', true, [], ['action' => 'entitydelete', 'entity_id' => $product.id])|escape:'htmlall':'UTF-8'}">
|
||||
Delete
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,45 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Code' mod='mailchimppro'}</th>
|
||||
<th>{l s='Redemption url' mod='mailchimppro'}
|
||||
<th>{l s='Usage count' mod='mailchimppro'}
|
||||
<th>{l s='Enabled' mod='mailchimppro'}
|
||||
<th>#</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $promo_codes as $promo_code}
|
||||
<tr>
|
||||
<td>{$promo_code.id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$promo_code.code|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$promo_code.redemption_url|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$promo_code.usage_count|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$promo_code.enabled|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
#
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,62 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Title' mod='mailchimppro'}</th>
|
||||
<th>{l s='Starts at' mod='mailchimppro'}
|
||||
<th>{l s='Ends at' mod='mailchimppro'}
|
||||
<th>{l s='Amount' mod='mailchimppro'}
|
||||
<th>{l s='type' mod='mailchimppro'}
|
||||
<th>{l s='target' mod='mailchimppro'}
|
||||
<th>{l s='enabled' mod='mailchimppro'}
|
||||
<th>#</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $promo_rules as $promo_rule}
|
||||
<tr>
|
||||
<td>{$promo_rule.id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$promo_rule.title|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$promo_rule.starts_at|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$promo_rule.ends_at|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$promo_rule.amount|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$promo_rule.type|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$promo_rule.target|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$promo_rule.enabled|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
<div class="btn-group btn-group-xs" role="group" aria-label="...">
|
||||
<a class="btn btn-default"
|
||||
href="{LinkHelper::getAdminLink('AdminMailchimpProPromoCodes', true, [], ['action' => 'entitydelete', 'entity_id' => $promo_rule.id])|escape:'htmlall':'UTF-8'}">
|
||||
Delete
|
||||
</a>
|
||||
|
||||
<a class="btn btn-default"
|
||||
href="{LinkHelper::getAdminLink('AdminMailchimpProPromoCodes', true, [], ['rule_id' => $promo_rule.id])|escape:'htmlall':'UTF-8'}">
|
||||
{l s='Promo codes' mod='mailchimppro'}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,47 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='Foreign ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Store ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Platform' mod='mailchimppro'}</th>
|
||||
<th>{l s='Domain' mod='mailchimppro'}</th>
|
||||
<th>{l s='Site script' mod='mailchimppro'}</th>
|
||||
<th>#</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $sites as $site}
|
||||
<tr>
|
||||
<td>{$site.foreign_id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$site.store_id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$site.platform|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$site.domain|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$site.site_script.url|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
<a href="{LinkHelper::getAdminLink('AdminMailchimpProSites', true, [], ['action' => 'entitydelete', 'entity_id' => $site.foreign_id])|escape:'htmlall':'UTF-8'}">
|
||||
Delete
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,82 @@
|
||||
{*
|
||||
* PrestaChamps
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Commercial License
|
||||
* you can't distribute, modify or sell this code
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file
|
||||
* If you need help please contact leo@prestachamps.com
|
||||
*
|
||||
* @author Mailchimp
|
||||
* @copyright PrestaChamps
|
||||
* @license commercial
|
||||
*}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{l s='ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='List ID' mod='mailchimppro'}</th>
|
||||
<th>{l s='Name' mod='mailchimppro'}</th>
|
||||
<th>{l s='Platform' mod='mailchimppro'}</th>
|
||||
<th>{l s='Domain' mod='mailchimppro'}</th>
|
||||
<th>{l s='Is syncing' mod='mailchimppro'}</th>
|
||||
<th>{l s='Is active' mod='mailchimppro'}</th>
|
||||
<th>{l s='Email address' mod='mailchimppro'}</th>
|
||||
<th>{l s='Currency code' mod='mailchimppro'}</th>
|
||||
<th>{l s='Money format' mod='mailchimppro'}</th>
|
||||
<th>{l s='Primary locale' mod='mailchimppro'}</th>
|
||||
<th>{l s='Timezone' mod='mailchimppro'}</th>
|
||||
<th>{l s='Phone' mod='mailchimppro'}</th>
|
||||
<th>{l s='Address' mod='mailchimppro'}</th>
|
||||
<th>{l s='Automations' mod='mailchimppro'}</th>
|
||||
<th>{l s='List is active' mod='mailchimppro'}</th>
|
||||
<th>{l s='Created at' mod='mailchimppro'}</th>
|
||||
<th>{l s='Updated at' mod='mailchimppro'}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach $stores as $store}
|
||||
<tr>
|
||||
<td>{$store.id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.list_id|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.name|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.platform|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.domain|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.is_syncing|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.list_is_active|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.email_address|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.currency_code|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.money_format|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.primary_locale|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.timezone|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.phone|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{', '|implode:$store.address|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
{$JSON_PRETTY_PRINT = 128}
|
||||
{foreach $store.automations as $name => $automation}
|
||||
<div class="well">
|
||||
<p><b>{$name|escape:'htmlall':'UTF-8'}</b></p>
|
||||
{* HTML code, no need for escape *}
|
||||
<pre>{json_encode($automation, $JSON_PRETTY_PRINT)}</pre>
|
||||
</div>
|
||||
{/foreach}
|
||||
</td>
|
||||
<td>{$store.list_is_active|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.created_at|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>{$store.updated_at|escape:'htmlall':'UTF-8'}</td>
|
||||
<td>
|
||||
<a href="{LinkHelper::getAdminLink('AdminMailchimpProStores', true, [], ['action' => 'entitydelete', 'entity_id' => $store.id])|escape:'htmlall':'UTF-8'}">
|
||||
Delete
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
Reference in New Issue
Block a user