first commit

This commit is contained in:
2024-12-17 13:43:22 +01:00
commit 8e6cd8b410
21292 changed files with 3514826 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
{*
* 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="panel table-responsive">
<div class="panel-heading">
{l s='Account info' mod='mailchimppro'}
</div>
<div class="panel-body">
<table class="table">
<tbody>
<tr>
<td>{l s='Account name' mod='mailchimppro'}</td>
<td>{$info.account_name|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='E-mail' mod='mailchimppro'}</td>
<td>{$info.email|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Name' mod='mailchimppro'}</td>
<td>{$info.first_name|escape:'htmlall':'UTF-8'} {$info.last_name|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Pricing plan' mod='mailchimppro'}</td>
<td>{$info.pricing_plan_type|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Timezone' mod='mailchimppro'}</td>
<td>{$info.account_timezone|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Industry' mod='mailchimppro'}</td>
<td>{$info.account_industry|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Pro enabled' mod='mailchimppro'}</td>
<td>{$info.pro_enabled|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Total subscribers' mod='mailchimppro'}</td>
<td>{$info.total_subscribers|escape:'htmlall':'UTF-8'}</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,39 @@
{*
* 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="panel table-responsive">
<div class="panel-heading">
{l s='Delete e-commerce data' mod='mailchimppro'}
</div>
<div class="panel-body">
<div class="alert alert-danger">
<p>
{l s='Delete all e-commerce data from your Mailchimp account' mod='mailchimppro'}
</p>
<p>
{l s='Once you delete a these datas, there is no going back. Please be certain.' mod='mailchimppro'}
</p>
</div>
<div class="row text-center">
<a class="btn btn-danger"
onclick="return confirm('Are you sure?')"
href="{LinkHelper::getAdminLink('AdminMailchimpProConfig', true, [], ['action' => 'deleteEcommerceData'])|escape:'htmlall':'UTF-8'}">
{l s='Delete e-commerce' mod='mailchimppro'}
</a>
</div>
</div>
</div>

View File

@@ -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;

View File

@@ -0,0 +1,98 @@
{*
* 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="row">
<div class="col-sm-6 hidden-xs">
<img class="img-responsive" src="../modules/mailchimppro/views/img/logo-horizontal.png" height="326" width="1200" style="max-height: 32px; width: auto">
</div>
<div class="col-sm-6">
<div class="btn-group pull-right" role="group" style="height:100%; vertical-align:center;line-height : 100%;">
<a class="btn btn-default" href="{LinkHelper::getAdminLink('AdminMailchimpProWizard')|escape:'htmlall':'UTF-8'}">
<i class="icon icon-floppy-o" aria-hidden="true"></i>
{l s='Setup wizard' mod='mailchimppro'}
</a>
<a class="btn btn-default hidden" href="{LinkHelper::getAdminLink('AdminMailchimpProSync')|escape:'htmlall':'UTF-8'}">
<i class="icon icon-retweet" aria-hidden="true"></i>
{l s='Sync' mod='mailchimppro'}
</a>
<div class="btn-group" role="group">
<button type="button" class="btn btn-primary btn-mc dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
<i class="icon icon-folder-open-o" aria-hidden="true"></i>
{l s='Mailchimp Objects' mod='mailchimppro'}
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li>
<a href="{LinkHelper::getAdminLink('AdminMailchimpProBatches')|escape:'htmlall':'UTF-8'}">
{l s='Batches' mod='mailchimppro'}
</a>
</li>
<li>
<a href="{LinkHelper::getAdminLink('AdminMailchimpProCarts')|escape:'htmlall':'UTF-8'}">
{l s='Carts' mod='mailchimppro'}
</a>
</li>
<li>
<a href="{LinkHelper::getAdminLink('AdminMailchimpProCustomers')|escape:'htmlall':'UTF-8'}">
{l s='Customers' mod='mailchimppro'}
</a>
</li>
<li>
<a href="{LinkHelper::getAdminLink('AdminMailchimpProLists')|escape:'htmlall':'UTF-8'}">
{l s='Lists' mod='mailchimppro'}
</a>
</li>
<li>
<a href="{LinkHelper::getAdminLink('AdminMailchimpProOrders')|escape:'htmlall':'UTF-8'}">
{l s='Orders' mod='mailchimppro'}
</a>
</li>
<li>
<a href="{LinkHelper::getAdminLink('AdminMailchimpProProducts')|escape:'htmlall':'UTF-8'}">
{l s='Products' mod='mailchimppro'}
</a>
</li>
<li>
<a href="{LinkHelper::getAdminLink('AdminMailchimpProStores')|escape:'htmlall':'UTF-8'}">
{l s='Stores' mod='mailchimppro'}
</a>
</li>
<li>
<a href="{LinkHelper::getAdminLink('AdminMailchimpProSites')|escape:'htmlall':'UTF-8'}">
{l s='Sites' mod='mailchimppro'}
</a>
</li>
<li>
<a href="{LinkHelper::getAdminLink('AdminMailchimpProAutomations')|escape:'htmlall':'UTF-8'}">
{l s='Automations' mod='mailchimppro'}
</a>
</li>
<li>
<a href="{LinkHelper::getAdminLink('AdminMailchimpProPromoRules')|escape:'htmlall':'UTF-8'}">
{l s='Promo rules' mod='mailchimppro'}
</a>
</li>
</ul>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<hr>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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;

View File

@@ -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}

View File

@@ -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>

View File

@@ -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>

View File

@@ -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;

View File

@@ -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">&times;</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>

View File

@@ -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>

View File

@@ -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;

View File

@@ -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>

View File

@@ -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>

View File

@@ -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;

View File

@@ -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}

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -0,0 +1,32 @@
{*
* 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 $responses as $key => $response}
<div class="panel {if $response->status_code == 200}panel-success{else}panel-warning{/if}" id="panel-{$key|escape:'htmlall':'UTF-8'}">
<div class="panel-heading">
<a data-toggle="collapse" data-target="#collapse-{$key|escape:'htmlall':'UTF-8'}" href="#collapse-{$key|escape:'htmlall':'UTF-8'}">
{$response->operation_id|escape:'htmlall':'UTF-8'}
</a>
</div>
<div id="collapse-{$key|escape:'htmlall':'UTF-8'}" class="panel-collapse collapse">
<div class="panel-body">
{* HTML, no need for escape*}
<pre>{var_export($response->response)}</pre>
</div>
</div>
</div>
{/foreach}

View File

@@ -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
*}
<div class="panel">
<div class="panel-heading">
{l s='Batch operation' mod='mailchimppro'} #{$entity.id|escape:'htmlall':'UTF-8'}
</div>
<div class="panel-body">
<table class="table table-striped table-bordered">
<thead>
<tbody>
<tr>
<td>{l s='ID' mod='mailchimppro'}</td>
<td>{$entity.id|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Status' mod='mailchimppro'}</td>
<td>{$entity.status|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Total operations' mod='mailchimppro'}</td>
<td>{$entity.total_operations|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Finished operations' mod='mailchimppro'}</td>
<td>{$entity.finished_operations|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Errored operations' mod='mailchimppro'}</td>
<td>{$entity.errored_operations|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Submitted at' mod='mailchimppro'}</td>
<td>{$entity.submitted_at|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Completed at' mod='mailchimppro'}</td>
<td>{$entity.completed_at|escape:'htmlall':'UTF-8'}</td>
</tr>
<tr>
<td>{l s='Response body url' mod='mailchimppro'}</td>
<td>{$entity.response_body_url|escape:'htmlall':'UTF-8'}</td>
</tr>
</tbody>
</table>
</div>
</div>

View File

@@ -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;

View File

@@ -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;

View File

@@ -0,0 +1,44 @@
{*
* 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="panel">
<h3>MailChimp Cart info</h3>
<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>
</tr>
</thead>
<tbody>
<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='./entity_list/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>
</tr>
</tbody>
</table>
</div>

View File

@@ -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
*}
<div class="tab-pane" id="mailchimp-order-detail">
<h4 class="visible-print">{l s='MailChimp detail' mod='mailchimppro'}</h4>
<div class="table-responsive">
<div class="alert alert-info">
{l s='There is no Mailchimp order associated to this order' mod='mailchimppro'}
</div>
</div>
</div>

View File

@@ -0,0 +1,43 @@
{*
* 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="tab-pane" id="mailchimp-order-detail">
<h4 class="visible-print">{l s='MailChimp detail' mod='mailchimppro'}</h4>
<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>
{include file='./entity_list/order/line.tpl' order=$order currency_code=$order.currency_code}
</tbody>
</table>
</div>
</div>

View File

@@ -0,0 +1,24 @@
{*
* 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
*}
<li class="">
<!--suppress HtmlUnknownAnchorTarget -->
<a href="#mailchimp-order-detail">
<i class="icon-time"></i>
{l s='MailChimp detail' mod='mailchimppro'} <span class="badge" style="opacity: 0">1</span>
</a>
</li>

View File

@@ -0,0 +1,58 @@
{*
* 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="panel" id="customer-sync">
<div class="panel-heading">
{l s='Customer sync' mod='mailchimppro'}
</div>
<div class="panel-body">
<form>
<h4>
{l s='Add Customers to your Store to track their orders and to view E-Commerce Data for your Mailchimp lists and campaigns. Each Customer is connected to a Mailchimp list member, so adding a Customer can also add or update a list member.' mod='mailchimppro'}
</h4>
<br>
{include file="./_radio-btns.tpl"}
<pre id="result"></pre>
</form>
</div>
<div class="panel-footer">
<a class="btn btn-primary pull-right submit">
<i class="process-icon-export"></i>
{l s='Customer sync' mod='mailchimppro'}
</a>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$("#customer-sync .submit").click(function () {
$.ajax({
url: syncUrl,
type: 'POST',
data: {
action: 'customerSync',
method: $('#customer-sync input[name=method]:checked').val()
},
}).success(function (response) {
$("#customer-sync #result").html(JSON.stringify(response, null, 2));
toastr.success("Customer sync batch started");
}).fail(function (xhr, status, error) {
console.log(xhr);
toastr.error("Error while launching customer sync batch");
});
});
});
</script>

View File

@@ -0,0 +1,58 @@
{*
* 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="panel" id="order-sync">
<div class="panel-heading">
{l s='Order sync' mod='mailchimppro'}
</div>
<div class="panel-body">
<form>
<h4>
{l s='Orders represent successful e-commerce transactions, and this data can be used to provide more detailed campaign reports, track sales, and personalize emails to your targeted consumers, and view other e-commerce data in your Mailchimp account.' mod='mailchimppro'}
</h4>
<br>
{include file="./_radio-btns.tpl"}
<pre id="result"></pre>
</form>
</div>
<div class="panel-footer">
<a class="btn btn-primary pull-right submit">
<i class="process-icon-export"></i>
{l s='Order sync' mod='mailchimppro'}
</a>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$("#order-sync .submit").click(function () {
$.ajax({
url: syncUrl,
type: 'POST',
data: {
action: 'orderSync',
method: $('#order-sync input[name=method]:checked').val()
},
}).success(function (response) {
$("#order-sync #result").html(JSON.stringify(response, null, 2));
toastr.success("Order sync batch started");
}).fail(function (xhr, status, error) {
console.log(xhr);
toastr.error("Error while launching order sync batch");
});
});
});
</script>

View File

@@ -0,0 +1,47 @@
{*
* MailChimp
*
* 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 Mailchimp
* @license commercial
*}
<div class="panel" id="product-sync">
<div class="panel-heading">
{l s='Product sync' mod='mailchimppro'}
</div>
<div class="panel-body">
<h4>
{l s='E-commerce items for sale in your store need to be created as Products so you can add the items to a Cart or an Order.' mod='mailchimppro'}
</h4>
<br>
<form>
{include file="./_radio-btns.tpl"}
<pre id="result">
</pre>
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
<div class="progress hidden">
<div class="progress-bar" style="width:0"></div>
</div>
</form>
</div>
<div class="panel-footer">
<a class="btn btn-primary pull-right submit">
<i class="process-icon-export"></i>
{l s='Product sync' mod='mailchimppro'}
</a>
</div>
</div>

View File

@@ -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="panel" id="promo-code-sync">
<div class="panel-heading">
{l s='Promo code sync' mod='mailchimppro'}
</div>
<div class="panel-body">
<form>
<h4>
{l s='Connect your Prestashop to Mailchimp to take advantage of powerful reporting and personalization features and to learn more about your customers.' mod='mailchimppro'}
</h4>
<br>
{include file="./_radio-btns.tpl"}
<pre id="result">
</pre>
</form>
</div>
<div class="panel-footer">
<a class="btn btn-primary pull-right submit">
<i class="process-icon-export"></i>
{l s='Promo code sync' mod='mailchimppro'}
</a>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$("#promo-code-sync .submit").click(function () {
$.ajax({
url: syncUrl,
type: 'POST',
data: {
action: 'promoCodeSync',
method: $('#promo-code-sync input[name=method]:checked').val()
},
}).success(function (response) {
$("#promo-code-sync #result").html(JSON.stringify(response, null, 2));
toastr.success("Store sync batch started");
}).fail(function (xhr, status, error) {
console.log(xhr);
toastr.error("Error while launching promo code sync batch");
});
});
});
</script>

View File

@@ -0,0 +1,64 @@
{*
* MailChimp
*
* 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 Mailchimp
* @license commercial
*}
<h4>{l s='Sync method' mod='mailchimppro'}</h4>
<div class="radio">
<label>
<input type="radio" name="method" value="post" checked="checked">
POST
<small class="text-muted">
{l s='New items willl be added. Existing items will remain unaffected. Upon encountering an existing item an error message will appear but this can be ignored and the sync will continue.' mod='mailchimppro'}
</small>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="method" value="patch">
PATCH
<small class="text-muted">
{l s='Existing items will be updated. New items will not be added. In case there are new items which have not yet been added, an error message will appear but this can be ignored and the sync will continue.' mod='mailchimppro'}
</small>
</label>
</div>
<div class="radio control-label">
<label>
<input type="radio" name="method" value="delete">
DELETE
<small class="text-muted">
{l s='All items of this type will be deleted from Mailchimp' mod='mailchimppro'}
</small>
</label>
</div>
<h4>{l s='Sync mode' mod='mailchimppro'}</h4>
<div class="radio">
<label>
<input type="radio" name="syncMode" value="batch" checked="checked">
Batch
<small class="text-muted">
{l s='Faster process where large batches of items are sent to Mailchimp. Progress will be displayed only when an entire batch has been processed.' mod='mailchimppro'}
</small>
</label>
</div>
<div class="radio">
<label>
<input type="radio" name="syncMode" value="regular">
Regular
<small class="text-muted">
{l s='Slower process where items are updated one by one. Progress can be monitored in real time.' mod='mailchimppro'}
</small>
</label>
</div>

View File

@@ -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="panel" id="store-sync">
<div class="panel-heading">
{l s='store sync' mod='mailchimppro'}
</div>
<div class="panel-body">
<form>
<h4>
{l s='Connect your Prestashop to Mailchimp to take advantage of powerful reporting and personalization features and to learn more about your customers.' mod='mailchimppro'}
</h4>
<br>
{include file="./_radio-btns.tpl"}
<pre id="result">
</pre>
</form>
</div>
<div class="panel-footer">
<a class="btn btn-primary pull-right submit">
<i class="process-icon-export"></i>
{l s='Store sync' mod='mailchimppro'}
</a>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$("#store-sync .submit").click(function () {
$.ajax({
url: syncUrl,
type: 'POST',
data: {
action: 'storeSync',
method: $('#store-sync input[name=method]:checked').val()
},
}).success(function (response) {
$("#store-sync #result").html(JSON.stringify(response, null, 2));
toastr.success("Store sync batch started");
}).fail(function (xhr, status, error) {
console.log(xhr);
toastr.error("Error while launching store sync batch");
});
});
});
</script>

View File

@@ -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;

View File

@@ -0,0 +1,25 @@
{*
* MailChimp
*
* 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 Mailchimp
* @license commercial
*}
<div class="alert alert-info" role="alert">
{l s='In this area you will be able to sync information from your store with Mailchimp (products, custmers, etc.). If you have multistore enabled, please make sure you have selected the correct store you want to synchronize.' mod='mailchimppro'}
</div>
{include file="./_product.tpl"}
{include file="./_store.tpl"}
{include file="./_customer.tpl"}
{include file="./_order.tpl"}
{include file="./_promo-code.tpl"}

View File

@@ -0,0 +1,84 @@
{*
* 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 id="setup-wizard">
<ul>
<li>
<a href="#step-1">{l s='Log-in to Mailchimp' mod='mailchimppro'}</a>
</li>
<li>
<a href="#step-2">{l s='Select list' mod='mailchimppro'}</a>
</li>
<li>
<a href="#step-3">
{l s='Order status mapping' mod='mailchimppro'}
</a>
</li>
<li>
<a href="#step-4">
{l s='Shop sync' mod='mailchimppro'}
</a>
</li>
<li>
<a href="#step-5">
{l s='Product sync' mod='mailchimppro'}
</a>
</li>
<li>
<a href="#step-6">
{l s='Customer sync' mod='mailchimppro'}
</a>
</li>
<li>
<a href="#step-7">
{l s='promo-code sync' mod='mailchimppro'}
</a>
</li>
<li>
<a href="#step-8">
{l s='Order sync' mod='mailchimppro'}
</a>
</li>
</ul>
<div>
<div id="step-1">
{include file="./wizard/step-1.tpl"}
</div>
<div id="step-2">
{include file="./wizard/step-2.tpl"}
</div>
<div id="step-3">
{include file="./wizard/step-3.tpl"}
</div>
<div id="step-4" class="text-center">
{include file="./wizard/step-4.tpl"}
</div>
<div id="step-5" class="text-center">
{include file="./wizard/step-5.tpl"}
</div>
<div id="step-6" class="text-center">
{include file="./wizard/step-6.tpl"}
</div>
<div id="step-7" class="text-center">
{include file="./wizard/step-7.tpl"}
</div>
<div id="step-8" class="text-center">
{include file="./wizard/step-8.tpl"}
</div>
</div>
</div>

View File

@@ -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;

View File

@@ -0,0 +1,32 @@
{*
* 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="form-group">
<label for="api-key" class="hidden">{l s='API key' mod='mailchimppro'}</label>
<p id="logged-in-as-container" {if empty($apiKey) && empty($mcEmail)}class="hidden"{/if}>
{l s='Logged in as:' mod='mailchimppro'} <b id="logged-in-as">{$mcEmail}</b>
</p>
<input type="hidden" class="form-control" name="api-key" id="api-key"
placeholder="{l s='API key' mod='mailchimppro'}" required="" value="{$apiKey}">
<a class="btn btn-default" id="oauth2-start">
{if empty($apiKey) && empty($mcEmail)}
Log in to Mailchimp
{else}
Log in as somebody else
{/if}
</a>
</div>

View File

@@ -0,0 +1,31 @@
{*
* 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="form-group">
<div class="alert alert-info alert-mc" id="loading-lists-in-progress">
{l s='Loading lists, please wait' mod='mailchimppro'}
</div>
<div id="input-container" class="hidden">
<label for="list-select">{l s='Select list' mod='mailchimppro'}</label>
<select class="form-control" id="list-select">
</select>
</div>
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>

View File

@@ -0,0 +1,87 @@
{*
* 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="alert alert-info alert-mc" id="loading-states-in-progress">
{l s='Loading statuses, please wait' mod='mailchimppro'}
</div>
<div id="status-inputs-container" class="hidden">
<div class="form-group">
<label class="control-label col-lg-3" for="module-mailchimpproconfig-statuses-for-pending">
{l s='Status for pending' mod='mailchimppro'}
</label>
<div class="col-lg-9">
<select name="module-mailchimpproconfig-statuses-for-pending[]"
id="module-mailchimpproconfig-statuses-for-pending" multiple="multiple">
</select>
</div>
</div>
<div class="clearfix"></div>
<hr>
<div class="form-group">
<label class="control-label col-lg-3" for="module-mailchimpproconfig-statuses-for-refunded">
{l s='Status for refunded' mod='mailchimppro'}
</label>
<div class="col-lg-9">
<select name="module-mailchimpproconfig-statuses-for-refunded[]"
id="module-mailchimpproconfig-statuses-for-refunded" multiple="multiple">
</select>
</div>
</div>
<div class="clearfix"></div>
<hr>
<div class="form-group">
<label class="control-label col-lg-3" for="module-mailchimpproconfig-statuses-for-cancelled">
{l s='Status for cancelled' mod='mailchimppro'}
</label>
<div class="col-lg-9">
<select name="module-mailchimpproconfig-statuses-for-cancelled[]"
id="module-mailchimpproconfig-statuses-for-cancelled" multiple="multiple">
</select>
</div>
</div>
<div class="clearfix"></div>
<hr>
<div class="form-group">
<label class="control-label col-lg-3" for="module-mailchimpproconfig-statuses-for-shipped">
{l s='Status for shipped' mod='mailchimppro'}
</label>
<div class="col-lg-9">
<select name="module-mailchimpproconfig-statuses-for-shipped[]"
id="module-mailchimpproconfig-statuses-for-shipped" multiple="multiple">
</select>
</div>
</div>
<div class="clearfix"></div>
<hr>
<div class="form-group">
<label class="control-label col-lg-3" for="module-mailchimpproconfig-statuses-for-paid">
{l s='Status for paid' mod='mailchimppro'}
</label>
<div class="col-lg-9">
<select name="module-mailchimpproconfig-statuses-for-paid[]"
id="module-mailchimpproconfig-statuses-for-paid" multiple="multiple">
</select>
</div>
</div>
<div class="clearfix"></div>
<hr>
</div>
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>

View File

@@ -0,0 +1,33 @@
{*
* 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="text-center">
<div class="alert alert-info alert-mc" id="shop-sync-in-progress">
{l s='Syncing shops, please wait' mod='mailchimppro'}
</div>
<div class="alert alert-success alert-mc hidden" id="shop-sync-completed">
{l s='Syncing shops completed' mod='mailchimppro'}
</div>
<div class="alert alert-error hidden" id="shop-sync-error">
{l s='Error during shop sync error' mod='mailchimppro'}
</div>
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>

View File

@@ -0,0 +1,31 @@
{*
* 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="text-center">
<div class="alert alert-info alert-mc" id="product-sync-in-progress">
{l s='Syncing products, please wait' mod='mailchimppro'}
</div>
<div class="alert alert-success alert-mc hidden" id="product-sync-completed">
{l s='The batch operation of syncing the products has been sent to the Mailchimp servers.' mod='mailchimppro'}
</div>
<div class="alert alert-error hidden" id="product-sync-error">
{l s='Error during product sync error' mod='mailchimppro'}
</div>
<div class="progress hidden">
<div class="progress-bar" style="width:0"></div>
</div>
</div>

View File

@@ -0,0 +1,31 @@
{*
* 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="text-center">
<div class="alert alert-info alert-mc" id="customer-sync-in-progress">
{l s='Syncing customers, please wait' mod='mailchimppro'}
</div>
<div class="alert alert-success alert-mc hidden" id="customer-sync-completed">
{l s='The batch operation of syncing the customers has been sent to the Mailchimp servers.' mod='mailchimppro'}
</div>
<div class="alert alert-error hidden" id="customer-sync-error">
{l s='Error during customer sync' mod='mailchimppro'}
</div>
<div class="progress hidden">
<div class="progress-bar" style="width:0"></div>
</div>
</div>

View File

@@ -0,0 +1,31 @@
{*
* 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="text-center">
<div class="alert alert-info alert-mc" id="promo-code-sync-in-progress">
{l s='Syncing promo-codes, please wait' mod='mailchimppro'}
</div>
<div class="alert alert-success alert-mc hidden" id="promo-code-sync-completed">
{l s='The batch operation of syncing the promo-codes has been sent to the Mailchimp servers.' mod='mailchimppro'}
</div>
<div class="alert alert-error hidden" id="promo-code-sync-error">
{l s='Error during promo-code sync' mod='mailchimppro'}
</div>
<div class="progress hidden">
<div class="progress-bar" style="width:0"></div>
</div>
</div>

View File

@@ -0,0 +1,31 @@
{*
* 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="text-center">
<div class="alert alert-info alert-mc" id="order-sync-in-progress">
{l s='Syncing orders, please wait' mod='mailchimppro'}
</div>
<div class="alert alert-success alert-mc hidden" id="order-sync-completed">
{l s='The batch operation of syncing the orders has been sent to the Mailchimp servers. The setup is now complete' mod='mailchimppro'}
</div>
<div class="alert alert-error hidden" id="order-sync-error">
{l s='Error during orders sync' mod='mailchimppro'}
</div>
<div class="progress hidden">
<div class="progress-bar" style="width:0"></div>
</div>
</div>

View File

@@ -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;