first commit
This commit is contained in:
24
modules/psgdpr/views/templates/front/customerAccount.tpl
Normal file
24
modules/psgdpr/views/templates/front/customerAccount.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="psgdpr-link" href="{$front_controller}">
|
||||
<span class="link-item">
|
||||
<i class="material-icons">account_box</i> {l s='GDPR - Personal data' mod='psgdpr'}
|
||||
</span>
|
||||
</a>
|
||||
@@ -0,0 +1,47 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
{extends file='customer/page.tpl'}
|
||||
|
||||
{block name='page_title'}
|
||||
{l s='GDPR - Personal data' mod='psgdpr'}
|
||||
{/block}
|
||||
|
||||
{block name='page_content'}
|
||||
<div class="container">
|
||||
<section class="page_content">
|
||||
<div class="col-xs-12 psgdprinfo17">
|
||||
<h2>{l s='Access to my data' mod='psgdpr'}</h2>
|
||||
<p>{l s='At any time, you have the right to retrieve the data you have provided to our site. Click on "Get my data" to automatically download a copy of your personal data on a pdf or csv file.' mod='psgdpr'}</p>
|
||||
<a id="exportDataToCsv" class="btn btn-primary psgdprgetdatabtn17" target="_blank" href="{$psgdpr_csv_controller|escape:'htmlall':'UTF-8'}">{l s='GET MY DATA TO CSV' mod='psgdpr'}</a>
|
||||
<a id="exportDataToPdf" class="btn btn-primary psgdprgetdatabtn17" target="_blank" href="{$psgdpr_pdf_controller|escape:'htmlall':'UTF-8'}">{l s='GET MY DATA TO PDF' mod='psgdpr'}</a>
|
||||
</div>
|
||||
<div class="col-xs-12 psgdprinfo17">
|
||||
<h2>{l s='Rectification & Erasure requests' mod='psgdpr'}</h2>
|
||||
<p>{l s='You have the right to modify all the personal information found in the "My Account" page. For any other request you might have regarding the rectification and/or erasure of your personal data, please contact us through our' mod='psgdpr'} <a href="{$psgdpr_contactUrl|escape:'htmlall':'UTF-8'}">{l s='contact page' mod='psgdpr'}</a>. {l s='We will review your request and reply as soon as possible.' mod='psgdpr'}</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
var psgdpr_front_controller = "{/literal}{$psgdpr_front_controller|escape:'htmlall':'UTF-8'}{literal}";
|
||||
var psgdpr_id_customer = "{/literal}{$psgdpr_front_controller|escape:'htmlall':'UTF-8'}{literal}";
|
||||
var psgdpr_ps_version = "{/literal}{$psgdpr_ps_version|escape:'htmlall':'UTF-8'}{literal}";
|
||||
</script>
|
||||
{/literal}
|
||||
{/block}
|
||||
28
modules/psgdpr/views/templates/front/index.php
Normal file
28
modules/psgdpr/views/templates/front/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
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;
|
||||
28
modules/psgdpr/views/templates/front/pdf/index.php
Normal file
28
modules/psgdpr/views/templates/front/pdf/index.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*/
|
||||
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,51 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<h2>{l s='Addresses' mod='psgdpr'}</h2>
|
||||
<br>
|
||||
<table id="summary-tab" width="100%">
|
||||
<tr>
|
||||
<th class="header" valign="middle">{l s='Alias' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Company' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Name' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Address' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Phone(s)' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Country' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Date' mod='psgdpr'}</th>
|
||||
</tr>
|
||||
|
||||
{if count($addresses) >= 1}
|
||||
{foreach from=$addresses item=address}
|
||||
<tr>
|
||||
<td class="center white">{$address['alias']}</td>
|
||||
<td class="center white">{$address['company']}</td>
|
||||
<td class="center white">{$address['firstname']} {$address['lastname']}</td>
|
||||
<td class="center white">{$address['address1']} {$address['address2']} {$address['postcode']} {$address['city']}</td>
|
||||
<td class="center white">{$address['phone']} {$address['phone_mobile']}</td>
|
||||
<td class="center white">{$address['country']}</td>
|
||||
<td class="center white">{$address['date_add']}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="7" class="center white">{l s='No addresses' mod='psgdpr'}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<h2>{l s='Carts' mod='psgdpr'}</h2>
|
||||
<br>
|
||||
<table id="summary-tab" width="100%">
|
||||
<tr>
|
||||
<th class="header" valign="middle">{l s='Id' mod='psgdpr'}</th>
|
||||
<th colspan="2" class="header" valign="middle">{l s='Total products' mod='psgdpr'}</th>
|
||||
<th colspan="2" class="header" valign="middle">{l s='Date' mod='psgdpr'}</th>
|
||||
</tr>
|
||||
|
||||
{if count($carts) >= 1}
|
||||
{foreach from=$carts item=cart}
|
||||
<tr class="separator">
|
||||
<td class="center white"><b>#{$cart['id_cart']|escape:'html':'UTF-8'}</b></td>
|
||||
<td colspan="2" class="center white">{$cart['nb_products']|escape:'html':'UTF-8'}</td>
|
||||
<td colspan="2" class="center white">{$cart['date_add']|escape:'html':'UTF-8'}</td>
|
||||
</tr>
|
||||
{if count($cart['products']) >= 1}
|
||||
<tr>
|
||||
<td colspan="3" class="center white"><b>{l s='Product(s) in the cart' mod='psgdpr'} :</b></td>
|
||||
<td colspan="2" class="center white"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="center white"></td>
|
||||
<td colspan="4" class="center white">
|
||||
<table id="total-tab" width="100%">
|
||||
<tr>
|
||||
<th class="header" valign="middle"><i>{l s='Reference' mod='psgdpr'}</i></th>
|
||||
<th class="header" valign="middle"><i>{l s='Name' mod='psgdpr'}</i></th>
|
||||
<th class="header" valign="middle"><i>{l s='Quantity' mod='psgdpr'}</i></th>
|
||||
</tr>
|
||||
{foreach from=$cart['products'] item=product}
|
||||
<tr>
|
||||
<td class="center white">{$product['product_reference']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$product['product_name']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$product['product_quantity']|escape:'html':'UTF-8'}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="5" class="center white">{l s='No carts' mod='psgdpr'}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
@@ -0,0 +1,46 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<h2>{l s='Last connections' mod='psgdpr'}</h2>
|
||||
<br>
|
||||
<table id="summary-tab" width="100%">
|
||||
<tr>
|
||||
<th class="header" valign="middle">{l s='Origin request' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Page viewed' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Time on the page' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='IP address' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Date' mod='psgdpr'}</th>
|
||||
</tr>
|
||||
|
||||
{if count($connections) >= 1}
|
||||
{foreach from=$connections item=connection}
|
||||
<tr>
|
||||
<td class="center white">{$connection['http_referer']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$connection['pages']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$connection['time']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$connection['ipaddress']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$connection['date_add']|escape:'html':'UTF-8'}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="5" class="center white">{l s='No connections' mod='psgdpr'}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
@@ -0,0 +1,191 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<h2>{l s='General info' mod='psgdpr'}</h2>
|
||||
<br>
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td width="47%">
|
||||
<table id="total-tab" width="100%">
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Gender' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['gender']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Name' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['firstname']} {$customerInfo['lastname']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Birth date' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['birthday']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Age' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['age']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Email' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['email']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Language' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['language']}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td width="5%"></td>
|
||||
<td width="47%">
|
||||
<table id="total-tab" width="100%">
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Creation account date' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['date_add']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Last visit' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['last_visit']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Siret' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['siret']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Ape' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['ape']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Company' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['company']}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Website' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['website']}
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{* <tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Gender' mod='psgdpr'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
{$customerInfo['gender']}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
</td>
|
||||
</tr> *}
|
||||
|
||||
{* {if $footer.product_discounts_tax_excl > 0}
|
||||
<tr>
|
||||
<td class="grey" width="50%">
|
||||
{l s='Total Discounts' d='Shop.Pdf' pdf='true'}
|
||||
</td>
|
||||
<td class="white" width="50%">
|
||||
- {displayPrice currency=$order->id_currency price=$footer.product_discounts_tax_excl}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{/if}
|
||||
|
||||
<tr class="bold">
|
||||
<td class="grey">
|
||||
{l s='Total (Tax excl.)' d='Shop.Pdf' pdf='true'}
|
||||
</td>
|
||||
<td class="white">
|
||||
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_excl}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="bold big">
|
||||
<td class="grey">
|
||||
{l s='Total' d='Shop.Pdf' pdf='true'}
|
||||
</td>
|
||||
<td class="white">
|
||||
{displayPrice currency=$order->id_currency price=$footer.total_paid_tax_incl}
|
||||
</td>
|
||||
</tr> *}
|
||||
|
||||
</table>
|
||||
@@ -0,0 +1,42 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<h2>{l s='Messages' mod='psgdpr'}</h2>
|
||||
<br>
|
||||
<table id="summary-tab" width="100%">
|
||||
<tr>
|
||||
<th class="header" valign="middle">{l s='IP' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Message' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Date' mod='psgdpr'}</th>
|
||||
</tr>
|
||||
|
||||
{if count($messages) >= 1}
|
||||
{foreach from=$messages item=message}
|
||||
<tr>
|
||||
<td class="center white">{$message['ip']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$message['message']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$message['date_add']|escape:'html':'UTF-8'}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="3" class="center white">{l s='No messages' mod='psgdpr'}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
@@ -0,0 +1,40 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{foreach from=$modules item=module key=key}
|
||||
<h2>{l s='Module' mod='psgdpr'} : {$key}</h2>
|
||||
<br>
|
||||
|
||||
{foreach from=$module item=table}
|
||||
<table id="summary-tab" width="100%">
|
||||
<tr>
|
||||
{foreach from=$table item=value key=index}
|
||||
<th class="header" valign="middle">{$index}</th>
|
||||
{/foreach}
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
{foreach from=$table item=value key=index}
|
||||
<td class="center white">{$value|escape:'html':'UTF-8'}</td>
|
||||
{/foreach}
|
||||
</tr>
|
||||
</table>
|
||||
{/foreach}
|
||||
|
||||
{/foreach}
|
||||
@@ -0,0 +1,69 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
<h2>{l s='Orders' mod='psgdpr'}</h2>
|
||||
<br>
|
||||
<table id="summary-tab" width="100%">
|
||||
<tr>
|
||||
<th class="header" valign="middle">{l s='Reference' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Payment' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Order state' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Total paid' mod='psgdpr'}</th>
|
||||
<th class="header" valign="middle">{l s='Date' mod='psgdpr'}</th>
|
||||
</tr>
|
||||
|
||||
{if count($orders) >= 1}
|
||||
{foreach from=$orders item=order}
|
||||
<tr class="separator">
|
||||
<td class="center white"><b>{$order['reference']|escape:'html':'UTF-8'}</b></td>
|
||||
<td class="center white">{$order['payment']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$order['order_state']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$order['total_paid_tax_incl']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$order['date_add']|escape:'html':'UTF-8'}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="3" class="center white"><b>{l s='Product(s) in the order' mod='psgdpr'} :</b></td>
|
||||
<td colspan="2" class="center white"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="center white"></td>
|
||||
<td colspan="4" class="center white">
|
||||
<table id="total-tab" width="100%">
|
||||
<tr>
|
||||
<th class="header" valign="middle"><i>{l s='Reference' mod='psgdpr'}</i></th>
|
||||
<th class="header" valign="middle"><i>{l s='Name' mod='psgdpr'}</i></th>
|
||||
<th class="header" valign="middle"><i>{l s='Quantity' mod='psgdpr'}</i></th>
|
||||
</tr>
|
||||
{foreach from=$order['products'] item=product}
|
||||
<tr>
|
||||
<td class="center white">{$product['product_reference']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$product['product_name']|escape:'html':'UTF-8'}</td>
|
||||
<td class="center white">{$product['product_quantity']|escape:'html':'UTF-8'}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
{else}
|
||||
<tr>
|
||||
<td colspan="5" class="center white">{l s='No orders' mod='psgdpr'}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
</table>
|
||||
@@ -0,0 +1,193 @@
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{assign var=color_header value="#F0F0F0"}
|
||||
{assign var=color_border value="#F0F0F0"}
|
||||
{assign var=color_border_lighter value="#CCCCCC"}
|
||||
{assign var=color_line_even value="#FFFFFF"}
|
||||
{assign var=color_line_odd value="#F9F9F9"}
|
||||
{assign var=font_size_text value="9pt"}
|
||||
{assign var=font_size_header value="9pt"}
|
||||
{assign var=font_size_product value="9pt"}
|
||||
{assign var=height_header value="20px"}
|
||||
{assign var=table_padding value="4px"}
|
||||
|
||||
<style>
|
||||
table, th, td {
|
||||
margin: 0!important;
|
||||
padding: 0!important;
|
||||
vertical-align: middle;
|
||||
font-size: {$font_size_text};
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
table.product {
|
||||
border: 1px solid {$color_border};
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table#addresses-tab tr td {
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
table#summary-tab {
|
||||
padding: {$table_padding};
|
||||
border: 1px solid {$color_border};
|
||||
}
|
||||
table#total-tab {
|
||||
padding: {$table_padding};
|
||||
border: 1px solid {$color_border};
|
||||
}
|
||||
table#note-tab {
|
||||
padding: {$table_padding};
|
||||
border: 1px solid {$color_border};
|
||||
}
|
||||
table#note-tab td.note{
|
||||
word-wrap: break-word;
|
||||
}
|
||||
table#tax-tab {
|
||||
padding: {$table_padding};
|
||||
border: 1pt solid {$color_border};
|
||||
}
|
||||
table#payment-tab,
|
||||
table#shipping-tab {
|
||||
padding: {$table_padding};
|
||||
border: 1px solid {$color_border};
|
||||
}
|
||||
|
||||
th.product {
|
||||
border-bottom: 1px solid {$color_border};
|
||||
}
|
||||
|
||||
tr.discount th.header {
|
||||
border-top: 1px solid {$color_border};
|
||||
}
|
||||
|
||||
tr.product td {
|
||||
border-bottom: 1px solid {$color_border_lighter};
|
||||
}
|
||||
|
||||
tr.color_line_even {
|
||||
background-color: {$color_line_even};
|
||||
}
|
||||
|
||||
tr.color_line_odd {
|
||||
background-color: {$color_line_odd};
|
||||
}
|
||||
|
||||
tr.customization_data td {
|
||||
}
|
||||
|
||||
td.product {
|
||||
vertical-align: middle;
|
||||
font-size: {$font_size_product};
|
||||
}
|
||||
|
||||
th.header {
|
||||
font-size: {$font_size_header};
|
||||
height: {$height_header};
|
||||
background-color: {$color_header};
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
th.header-right {
|
||||
font-size: {$font_size_header};
|
||||
height: {$height_header};
|
||||
background-color: {$color_header};
|
||||
vertical-align: middle;
|
||||
text-align: right;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
th.payment,
|
||||
th.shipping {
|
||||
background-color: {$color_header};
|
||||
vertical-align: middle;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
th.tva {
|
||||
background-color: {$color_header};
|
||||
vertical-align: middle;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
tr.separator td {
|
||||
border-top: 1px solid #000000;
|
||||
}
|
||||
|
||||
.left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.fright {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.border {
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
.no_top_border {
|
||||
border-top:hidden;
|
||||
border-bottom:1px solid black;
|
||||
border-left:1px solid black;
|
||||
border-right:1px solid black;
|
||||
}
|
||||
|
||||
.no_border {
|
||||
border-top:hidden;
|
||||
border-bottom:hidden;
|
||||
border-left:hidden;
|
||||
border-right:hidden;
|
||||
}
|
||||
|
||||
.grey {
|
||||
background-color: {$color_header};
|
||||
|
||||
}
|
||||
|
||||
/* This is used for the border size */
|
||||
.white {
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.big,
|
||||
tr.big td{
|
||||
font-size: 110%;
|
||||
}
|
||||
|
||||
.small, table.small th, table.small td {
|
||||
font-size:small;
|
||||
}
|
||||
</style>
|
||||
116
modules/psgdpr/views/templates/front/pdf/personalData.tpl
Normal file
116
modules/psgdpr/views/templates/front/pdf/personalData.tpl
Normal file
@@ -0,0 +1,116 @@
|
||||
|
||||
{**
|
||||
* Copyright since 2007 PrestaShop SA and Contributors
|
||||
* PrestaShop is an International Registered Trademark & Property of PrestaShop SA
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License 3.0 (AFL-3.0)
|
||||
* that is bundled with this package in the file LICENSE.md.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* https://opensource.org/licenses/AFL-3.0
|
||||
* 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.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright Since 2007 PrestaShop SA and Contributors
|
||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||
*}
|
||||
|
||||
{$style_tab}
|
||||
|
||||
|
||||
<table width="100%" id="body" border="0" cellpadding="0" cellspacing="0" style="margin:0;">
|
||||
<!-- general customer info -->
|
||||
<tr>
|
||||
<td colspan="12">
|
||||
|
||||
{$generalInfo_tab}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="12" height="30"> </td>
|
||||
</tr>
|
||||
|
||||
<!-- addresses tab -->
|
||||
<tr>
|
||||
<td colspan="12">
|
||||
|
||||
{$addresses_tab}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="12" height="10"> </td>
|
||||
</tr>
|
||||
|
||||
<!-- order list tab -->
|
||||
<tr>
|
||||
<td colspan="12">
|
||||
|
||||
{$orders_tab}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="12" height="20"> </td>
|
||||
</tr>
|
||||
|
||||
<!-- cart list tab -->
|
||||
<tr>
|
||||
<td colspan="12">
|
||||
|
||||
{$carts_tab}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="12" height="10"> </td>
|
||||
</tr>
|
||||
|
||||
<!-- messages tab -->
|
||||
<tr>
|
||||
<td colspan="12">
|
||||
|
||||
{$messages_tab}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="12" height="10"> </td>
|
||||
</tr>
|
||||
|
||||
<!-- connections tab -->
|
||||
<tr>
|
||||
<td colspan="12">
|
||||
|
||||
{$connections_tab}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="12" height="10"> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
<!-- modules tab -->
|
||||
<tr>
|
||||
<td colspan="12">
|
||||
|
||||
{$modules_tab}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="12" height="10"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
Reference in New Issue
Block a user