first commit

This commit is contained in:
2025-01-06 20:47:25 +01:00
commit 3bdbd78c2f
25591 changed files with 3586440 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
/**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (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,35 @@
<?php
/*
* 2007-2016 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-2016 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,35 @@
<?php
/*
* 2007-2016 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-2016 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,36 @@
{*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file="helpers/list/list_content.tpl"}
{block name="td_content"}
{if isset($params.type) && $params.type == 'priority'}
<span class="label label-default">{$priority[$tr.$key]}</span>
{elseif isset($params.type) && $params.type == 'image'}
<img src="{$tr.$key}"/>
{else}
{$smarty.block.parent}
{/if}
{/block}

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 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,54 @@
{#**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*#}
{% extends '@PrestaShop/Admin/layout.html.twig' %}
{% block content %}
{{ form_start(configurationForm) }}
<div class="row justify-content-center">
<div class="col-xl-10">
<div class="card">
<h3 class="card-header">
<i class="material-icons">edit</i> {{ 'Wording'|trans({}, 'Modules.Blockwishlist.Admin') }}
</h3>
<div class="card-block row">
<div class="card-text">
{{ form_widget(configurationForm) }}
</div>
</div>
<div class="card-footer">
<div class="d-flex justify-content-end">
<button class="btn btn-primary">{{ 'Save'|trans({}, 'Modules.Blockwishlist.Admin') }}</button>
</div>
</div>
</div>
</div>
</div>
{{ form_end(configurationForm) }}
{% if resultHandleForm != null %}
{# resutHandleForm represent the save of every config (can be true/false/null) null = no submission #}
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="{{ asset('../modules/blockwishlist/public/form.bundle.js') }}"></script>
{% endblock %}

View File

@@ -0,0 +1,28 @@
<?php
/**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (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,83 @@
{#**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*#}
{% extends '@PrestaShop/Admin/layout.html.twig' %}
{% block content %}
{% if shopId is same as(null) %}
<div class="alert medium-alert alert-warning" role="alert">
<p class="alert-text">
{{ 'You need to choose a specific shop to display the top 10 most added products'|trans({}, 'Modules.Blockwishlist.Admin') }}
</p>
</div>
{% endif %}
<div class="row justify-content-center wishlist-stats">
<div class="col-xl-10">
<div class="card">
<h3 class="card-header">
<i class="material-icons">star</i> {{ 'Top 10 most added products'|trans({}, 'Modules.Blockwishlist.Admin') }}
</h3>
<div class="card-block">
<div class="card-text">
<div class="row wishlist-stats-topbar">
<div class="btn-group">
<button class="btn btn-default active" data-tab="1">Day</button>
<button class="btn btn-default" data-tab="2">Month</button>
<button class="btn btn-default" data-tab="3">Year</button>
<button class="btn btn-default" data-tab="4">All time</button>
</div>
<button class="btn btn-default refresh js-refresh">
<i class="material-icons">history</i> {{ 'Refresh'|trans({}, 'Modules.Blockwishlist.Admin') }}
</button>
</div>
<div class="wishlist-tab active" data-tab="1">
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': allTimeStatisticsGrid} %}
</div>
<div class="wishlist-tab" data-tab="2">
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': currentYearStatisticsGrid} %}
</div>
<div class="wishlist-tab" data-tab="3">
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': currentMonthStatisticsGrid} %}
</div>
<div class="wishlist-tab" data-tab="4">
{% include '@PrestaShop/Admin/Common/Grid/grid.html.twig' with {'grid': currentDayStatisticsGrid} %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
var blockwishlistModule = {
'resetCacheUrl': '{{ url('blockwishlist_statistics_reset')|e('js') }}',
};
</script>
<script src="{{ asset('../modules/blockwishlist/public/backoffice.bundle.js') }}"></script>
{% endblock %}

View File

@@ -0,0 +1,80 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div
class="wishlist-add-to"
data-url="{$url|escape:'html':'UTF-8'}"
>
<div
class="wishlist-modal modal fade"
{literal}
:class="{show: !isHidden}"
{/literal}
tabindex="-1"
role="dialog"
aria-modal="true"
>
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">
{l s='Add to wishlist' d='Modules.Blockwishlist.Shop'}
</h5>
<button
type="button"
class="close"
@click="toggleModal"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<choose-list
@hide="toggleModal"
:product-id="productId"
:product-attribute-id="productAttributeId"
:quantity="quantity"
url="{$url|escape:'html':'UTF-8'}"
add-url="{$addUrl|escape:'html':'UTF-8'}"
empty-text="{l s='No list found.' d='Modules.Blockwishlist.Shop'}"
></choose-list>
</div>
<div class="modal-footer">
<a @click="openNewWishlistModal" class="wishlist-add-to-new">
<i class="material-icons">add_circle_outline</i> {$newWishlistCTA|escape:'html':'UTF-8'}
</a>
</div>
</div>
</div>
</div>
<div
class="modal-backdrop fade"
{literal}
:class="{in: !isHidden}"
{/literal}
>
</div>
</div>

View File

@@ -0,0 +1,95 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div
class="wishlist-create"
data-url="{$url|escape:'html':'UTF-8'}"
data-title="{l s='Create wishlist' d='Modules.Blockwishlist.Shop'}"
data-label="{l s='Wishlist name' d='Modules.Blockwishlist.Shop'}"
data-placeholder="{l s='Add name' d='Modules.Blockwishlist.Shop'}"
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}"
data-create-text="{l s='Create wishlist' d='Modules.Blockwishlist.Shop'}"
data-length-text="{l s='List title is too short' d='Modules.Blockwishlist.Shop'}"
>
<div
class="wishlist-modal modal fade"
{literal}
:class="{show: !isHidden}"
{/literal}
tabindex="-1"
role="dialog"
aria-modal="true"
>
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">((title))</h5>
<button
type="button"
class="close"
@click="toggleModal"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group form-group-lg">
<label class="form-control-label" for="input2">((label))</label>
<input
type="text"
class="form-control form-control-lg"
v-model="value"
id="input2"
:placeholder="placeholder"
/>
</div>
</div>
<div class="modal-footer">
<button
type="button"
class="modal-cancel btn btn-secondary"
data-dismiss="modal"
@click="toggleModal"
>
((cancelText))
</button>
<button
type="button"
class="btn btn-primary"
@click="createWishlist"
>
((createText))
</button>
</div>
</div>
</div>
</div>
<div
class="modal-backdrop fade"
{literal}
:class="{in: !isHidden}"
{/literal}
>
</div>
</div>

View File

@@ -0,0 +1,91 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div
class="wishlist-delete"
{if isset($listUrl)}
data-delete-list-url="{$listUrl|escape:'html':'UTF-8'}"
{/if}
{if isset($deleteProductUrl)}
data-delete-product-url="{$deleteProductUrl|escape:'html':'UTF-8'}"
{/if}
data-title="{l s='Remove product from wishlist' d='Modules.Blockwishlist.Shop'}"
data-title-list="{l s='Delete wishlist' d='Modules.Blockwishlist.Shop'}"
data-placeholder='{l s='The product will be removed from "%nameofthewishlist%".' d='Modules.Blockwishlist.Shop'}'
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}"
data-delete-text="{l s='Remove' d='Modules.Blockwishlist.Shop'}"
data-delete-text-list="{l s='Delete' d='Modules.Blockwishlist.Shop'}"
>
<div
class="wishlist-modal modal fade"
{literal}
:class="{show: !isHidden}"
{/literal}
tabindex="-1"
role="dialog"
aria-modal="true"
>
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">((modalTitle))</h5>
<button
type="button"
class="close"
@click="toggleModal"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" v-if="productId">
<p class="modal-text">((confirmMessage))</p>
</div>
<div class="modal-footer">
<button
type="button"
class="modal-cancel btn btn-secondary"
data-dismiss="modal"
@click="toggleModal"
>
((cancelText))
</button>
<button
type="button"
class="btn btn-primary"
@click="deleteWishlist"
>
((modalDeleteText))
</button>
</div>
</div>
</div>
</div>
<div
class="modal-backdrop fade"
{literal}
:class="{in: !isHidden}"
{/literal}
>
</div>
</div>

View File

@@ -0,0 +1,81 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div
class="wishlist-login"
data-login-text="{l s='Sign in' d='Modules.Blockwishlist.Shop'}"
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}"
>
<div
class="wishlist-modal modal fade"
{literal}
:class="{show: !isHidden}"
{/literal}
tabindex="-1"
role="dialog"
aria-modal="true"
>
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{l s='Sign in' d='Modules.Blockwishlist.Shop'}</h5>
<button
type="button"
class="close"
@click="toggleModal"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p class="modal-text">{l s='You need to be logged in to save products in your wishlist.' d='Modules.Blockwishlist.Shop'}</p>
</div>
<div class="modal-footer">
<button
type="button"
class="modal-cancel btn btn-secondary"
data-dismiss="modal"
@click="toggleModal"
>
((cancelText))
</button>
<a
type="button"
class="btn btn-primary"
:href="prestashop.urls.pages.authentication"
>
((loginText))
</a>
</div>
</div>
</div>
</div>
<div
class="modal-backdrop fade"
{literal}
:class="{in: !isHidden}"
{/literal}
>
</div>
</div>

View File

@@ -0,0 +1,93 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div
class="wishlist-rename"
data-url="{$url|escape:'html':'UTF-8'}"
data-title="{l s='Rename wishlist' d='Modules.Blockwishlist.Shop'}"
data-label="{l s='Wishlist name' d='Modules.Blockwishlist.Shop'}"
data-placeholder="{l s='Wishlist name' d='Modules.Blockwishlist.Shop'}"
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}"
data-rename-text="{l s='Rename wishlist' d='Modules.Blockwishlist.Shop'}"
>
<div
class="wishlist-modal modal fade"
{literal}
:class="{show: !isHidden}"
{/literal}
tabindex="-1"
role="dialog"
aria-modal="true"
>
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">((title))</h5>
<button
type="button"
class="close"
@click="toggleModal"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group form-group-lg">
<label class="form-control-label" for="input2"
>((label))</label
>
<input
type="text"
class="form-control form-control-lg"
v-model="value"
id="input2"
/>
</div>
</div>
<div class="modal-footer">
<button
type="button"
class="modal-cancel btn btn-secondary"
data-dismiss="modal"
@click="toggleModal"
>
((cancelText))
</button>
<button
type="button"
class="btn btn-primary"
@click="renameWishlist"
>
((renameText))
</button>
</div>
</div>
</div>
</div>
<div
class="modal-backdrop fade"
{literal}
:class="{in: !isHidden}"
{/literal}
>
</div>
</div>

View File

@@ -0,0 +1,94 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div
class="wishlist-share"
data-url="{$url|escape:'html':'UTF-8'}"
data-title="{l s='Share wishlist' d='Modules.Blockwishlist.Shop'}"
data-copied-text="{l s='Copied!' d='Modules.Blockwishlist.Shop'}"
data-label="{l s='Share link' d='Modules.Blockwishlist.Shop'}"
data-cancel-text="{l s='Cancel' d='Modules.Blockwishlist.Shop'}"
data-copy-text="{l s='Copy text' d='Modules.Blockwishlist.Shop'}"
>
<div
class="wishlist-modal modal fade"
{literal}
:class="{show: !isHidden}"
{/literal}
tabindex="-1"
role="dialog"
aria-modal="true"
>
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">((title))</h5>
<button
type="button"
class="close"
@click="toggleModal"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group form-group-lg">
<label class="form-control-label" for="input2">((label))</label>
<input
type="text"
class="form-control form-control-lg"
v-model="value"
id="input2"
placeholder="Share link"
/>
</div>
</div>
<div class="modal-footer">
<button
type="button"
class="modal-cancel btn btn-secondary"
data-dismiss="modal"
@click="toggleModal"
>
((cancelText))
</button>
<button
type="button"
class="btn btn-primary"
@click="copyLink"
>
(( actionText ))
</button>
</div>
</div>
</div>
</div>
<div
class="modal-backdrop fade"
{literal}
:class="{in: !isHidden}"
{/literal}
>
</div>
</div>

View File

@@ -0,0 +1,45 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<nav class="wishlist-pagination pagination">
<template v-if="display">
<div class="col-md-4">
{l s='Showing %min% - %max% of %total% item(s)' sprintf=['%min%' => '((minShown))', '%max%' => '((maxShown))', '%total%' => '((total))'] d='Modules.Blockwishlist.Shop'}
</div>
<div class="col-md-6 offset-md-2 pr-0">
<ul class="page-list clearfix text-sm-center">
<li :class="{literal}{current: page.current}{/literal}" v-for="page of pages">
<a class="js-search-link" @click="paginate(page)" key="page.page" :class="{literal}{disabled: page.current, next: page.type === 'next', previous: page.type === 'previous'}{/literal}">
<span v-if="page.type === 'previous'">
<i class="material-icons">keyboard_arrow_left</i> {l s='Previous' d='Modules.Blockwishlist.Shop'}
</span>
<template v-if="page.type !== 'previous' && page.type !== 'next'">
((page.page))
</template>
<span v-if="page.type === 'next'">
{l s='Next' d='Modules.Blockwishlist.Shop'} <i class="material-icons"></i>
</span>
</a>
</li>
</ul>
</div>
</template>
</nav>

View File

@@ -0,0 +1,28 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div
class="wishlist-toast"
data-rename-wishlist-text="{l s='Wishlist name modified!' d='Modules.Blockwishlist.Shop'}"
data-added-wishlist-text="{l s='Product added to wishlist!' d='Modules.Blockwishlist.Shop'}"
data-create-wishlist-text="{l s='Wishlist created!' d='Modules.Blockwishlist.Shop'}"
data-delete-wishlist-text="{l s='Wishlist deleted!' d='Modules.Blockwishlist.Shop'}"
data-copy-text="{l s='Share link copied!' d='Modules.Blockwishlist.Shop'}"
data-delete-product-text="{l s='Product deleted!' d='Modules.Blockwishlist.Shop'}"
></div>

View File

@@ -0,0 +1,35 @@
<?php
/*
* 2007-2016 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-2016 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,241 @@
{*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $products}
{if !$refresh}
<div class="wishlistLinkTop">
<a id="hideWishlist" class="button_account icon pull-right" href="#" onclick="WishlistVisibility('wishlistLinkTop', 'Wishlist'); return false;" rel="nofollow" title="{l s='Close this wishlist' mod='blockwishlist'}">
<i class="icon-remove"></i>
</a>
<ul class="clearfix display_list">
<li>
<a id="hideBoughtProducts" class="button_account" href="#" onclick="WishlistVisibility('wlp_bought', 'BoughtProducts'); return false;" title="{l s='Hide products' mod='blockwishlist'}">
{l s='Hide products' mod='blockwishlist'}
</a>
<a id="showBoughtProducts" class="button_account" href="#" onclick="WishlistVisibility('wlp_bought', 'BoughtProducts'); return false;" title="{l s='Show products' mod='blockwishlist'}">
{l s='Show products' mod='blockwishlist'}
</a>
</li>
{if count($productsBoughts)}
<li>
<a id="hideBoughtProductsInfos" class="button_account" href="#" onclick="WishlistVisibility('wlp_bought_infos', 'BoughtProductsInfos'); return false;" title="{l s='Hide products' mod='blockwishlist'}">
{l s="Hide bought products' info" mod='blockwishlist'}
</a>
<a id="showBoughtProductsInfos" class="button_account" href="#" onclick="WishlistVisibility('wlp_bought_infos', 'BoughtProductsInfos'); return false;" title="{l s='Show products' mod='blockwishlist'}">
{l s="Show bought products' info" mod='blockwishlist'}
</a>
</li>
{/if}
</ul>
<p class="wishlisturl form-group">
<label>{l s='Permalink' mod='blockwishlist'}:</label>
<input type="text" class="form-control" value="{$link->getModuleLink('blockwishlist', 'view', ['token' => $token_wish])|escape:'html':'UTF-8'}" readonly="readonly"/>
</p>
<p class="submit">
<div id="showSendWishlist">
<a class="btn btn-primary button button-small" href="#" onclick="WishlistVisibility('wl_send', 'SendWishlist'); return false;" title="{l s='Send this wishlist' mod='blockwishlist'}">
<span>{l s='Send this wishlist' mod='blockwishlist'}</span>
</a>
</div>
</p>
{/if}
<div class="wlp_bought">
{assign var='nbItemsPerLine' value=4}
{assign var='nbItemsPerLineTablet' value=3}
{assign var='nbLi' value=$products|@count}
{math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
{math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
<ul class="row wlp_bought_list">
{foreach from=$products item=product name=i}
{math equation="(total%perLine)" total=$smarty.foreach.i.total perLine=$nbItemsPerLine assign=totModulo}
{math equation="(total%perLineT)" total=$smarty.foreach.i.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
{if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
{if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
<li id="wlp_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}"
class="col-xs-12 col-sm-4 col-md-3 wlp_bought_item {if $smarty.foreach.i.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.i.iteration%$nbItemsPerLine == 1} first-in-line{/if} {if $smarty.foreach.i.iteration > ($smarty.foreach.i.total - $totModulo)}last-line{/if} {if $smarty.foreach.i.iteration%$nbItemsPerLineTablet == 0}last-item-of-tablet-line{elseif $smarty.foreach.i.iteration%$nbItemsPerLineTablet == 1}first-item-of-tablet-line{/if} {if $smarty.foreach.i.iteration > ($smarty.foreach.i.total - $totModuloTablet)}last-tablet-line{/if}">
<div class="wlp_bought_container">
<div class="col-xs-6 col-sm-12">
<div class="product_image">
<a href="{$link->getProductlink($product.id_product, $product.link_rewrite, $product.category_rewrite)|escape:'html':'UTF-8'}" title="{l s='Product detail' mod='blockwishlist'}">
<img class="replace-2x img-responsive" src="{$link->getImageLink($product.link_rewrite, $product.cover, 'home_default')|escape:'html':'UTF-8'}" alt="{$product.name|escape:'html':'UTF-8'}"/>
</a>
</div>
</div>
<div class="col-xs-6 col-sm-12">
<div class="product_infos">
<a class="lnkdel" href="javascript:;" onclick="WishlistProductManage('wlp_bought', 'delete', '{$id_wishlist|escape:'html':'UTF-8'}', '{$product.id_product|escape:'html':'UTF-8'}', '{$product.id_product_attribute|escape:'html':'UTF-8'}', $('#quantity_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}').val(), $('#priority_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}').val());" title="{l s='Delete' mod='blockwishlist'}">
<i class="icon-remove-sign"></i>
</a>
<p id="s_title" class="product-name">
{$product.name|truncate:30:'...'|escape:'html':'UTF-8'}
{if isset($product.attributes_small)}
<small>
<a href="{$link->getProductlink($product.id_product, $product.link_rewrite, $product.category_rewrite)|escape:'html':'UTF-8'}" title="{l s='Product detail' mod='blockwishlist'}">
{$product.attributes_small|escape:'html':'UTF-8'}
</a>
</small>
{/if}
</p>
<div class="wishlist_product_detail">
<p class="form-group">
<label for="quantity_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}">
{l s='Quantity' mod='blockwishlist'}:
</label>
<input type="text" class="form-control grey" id="quantity_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}" value="{$product.quantity|intval}" size="3"/>
</p>
<p class="form-group">
<label for="priority_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}">
{l s='Priority' mod='blockwishlist'}:
</label>
<select id="priority_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}" class="form-control grey">
<option value="0"{if $product.priority eq 0} selected="selected"{/if}>
{l s='High' mod='blockwishlist'}
</option>
<option value="1"{if $product.priority eq 1} selected="selected"{/if}>
{l s='Medium' mod='blockwishlist'}
</option>
<option value="2"{if $product.priority eq 2} selected="selected"{/if}>
{l s='Low' mod='blockwishlist'}
</option>
</select>
</p>
</div>
<div class="btn_action">
<a class="btn btn-primary button button-small" href="javascript:;" onclick="WishlistProductManage('wlp_bought_{$product.id_product_attribute|escape:'html':'UTF-8'}', 'update', '{$id_wishlist|escape:'html':'UTF-8'}', '{$product.id_product|escape:'html':'UTF-8'}', '{$product.id_product_attribute|escape:'html':'UTF-8'}', $('#quantity_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}').val(), $('#priority_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}').val());" title="{l s='Save' mod='blockwishlist'}">
<span>{l s='Save' mod='blockwishlist'}</span>
</a>
{if $wishlists|count > 1}
{foreach name=wl from=$wishlists item=wishlist}
{if $smarty.foreach.wl.first}
<a class="btn btn-default button button-small wishlist_change_button" tabindex="0" data-toggle="popover" data-trigger="focus" title="{l s='Move to a wishlist' mod='blockwishlist'}" data-placement="bottom">
<span>{l s='Move' mod='blockwishlist'}</span>
</a>
<div hidden class="popover-content">
<table class="table" border="1">
<tbody>
{/if}
{if $id_wishlist != {$wishlist.id_wishlist|escape:'html':'UTF-8'}}
<tr title="{$wishlist.name|escape:'html':'UTF-8'}" value="{$wishlist.id_wishlist|escape:'html':'UTF-8'}" onclick="wishlistProductChange({$product.id_product|escape:'html':'UTF-8'}, {$product.id_product_attribute|escape:'html':'UTF-8'}, '{$id_wishlist|escape:'html':'UTF-8'}', '{$wishlist.id_wishlist|escape:'html':'UTF-8'}');">
<td>
{l s='Move to %s'|sprintf:$wishlist.name mod='blockwishlist'}
</td>
</tr>
{/if}
{if $smarty.foreach.wl.last}
</tbody>
</table>
</div>
{/if}
{/foreach}
{/if}
</div>
</div>
</div>
</div>
</li>
{/foreach}
</ul>
</div>
{if !$refresh}
<form method="post" class="wl_send box unvisible" onsubmit="return (false);">
<a id="hideSendWishlist" class="button_account btn icon" href="#" onclick="WishlistVisibility('wl_send', 'SendWishlist'); return false;" rel="nofollow" title="{l s='Close this wishlist' mod='blockwishlist'}">
<i class="icon-remove"></i>
</a>
<fieldset>
<div class="required form-group">
<label for="email1">{l s='Email' mod='blockwishlist'}1 <sup>*</sup></label>
<input type="text" name="email1" id="email1" class="form-control"/>
</div>
{section name=i loop=11 start=2}
<div class="form-group">
<label for="email{$smarty.section.i.index|escape:'html':'UTF-8'}">{l s='Email' mod='blockwishlist'}{$smarty.section.i.index|escape:'html':'UTF-8'}</label>
<input type="text" name="email{$smarty.section.i.index|escape:'html':'UTF-8'}" id="email{$smarty.section.i.index|escape:'html':'UTF-8'}"
class="form-control"/>
</div>
{/section}
<div class="submit">
<button class="btn btn-primary button button-small" type="submit" name="submitWishlist"
onclick="WishlistSend('wl_send', '{$id_wishlist|escape:'html':'UTF-8'}', 'email');">
<span>{l s='Send' mod='blockwishlist'}</span>
</button>
</div>
<p class="required">
<sup>*</sup> {l s='Required field' mod='blockwishlist'}
</p>
</fieldset>
</form>
{if count($productsBoughts)}
<table class="wlp_bought_infos unvisible table table-bordered table-responsive">
<thead>
<tr>
<th class="first_item">{l s='Product' mod='blockwishlist'}</th>
<th class="item">{l s='Quantity' mod='blockwishlist'}</th>
<th class="item">{l s='Offered by' mod='blockwishlist'}</th>
<th class="last_item">{l s='Date' mod='blockwishlist'}</th>
</tr>
</thead>
<tbody>
{foreach from=$productsBoughts item=product name=i}
{foreach from=$product.bought item=bought name=j}
{if $bought.quantity > 0}
<tr>
<td class="first_item">
<span style="float:left;">
<img
src="{$link->getImageLink($product.link_rewrite, $product.cover, 'small_default')|escape:'html':'UTF-8'}"
alt="{$product.name|escape:'html':'UTF-8'}"/>
</span>
<span style="float:left;">
{$product.name|truncate:40:'...'|escape:'html':'UTF-8'}
{if isset($product.attributes_small)}
<br/>
<i>{$product.attributes_small|escape:'html':'UTF-8'}</i>
{/if}
</span>
</td>
<td class="item align_center">
{$bought.quantity|intval}
</td>
<td class="item align_center">
{$bought.firstname|escape:'html':'UTF-8'} {$bought.lastname|escape:'html':'UTF-8'}
</td>
<td class="last_item align_center">
{$bought.date_add|date_format:"%Y-%m-%d"}
</td>
</tr>
{/if}
{/foreach}
{/foreach}
</tbody>
</table>
{/if}
{/if}
{else}
<p class="alert alert-warning">
{l s='No products' mod='blockwishlist'}
</p>
{/if}

View File

@@ -0,0 +1,157 @@
{*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='page.tpl'}
{block name='page_content'}
<div class="col-sm-12 col-xs-12">
<div id="mywishlist">
{*capture name=path}
<a href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
{l s='My account' mod='blockwishlist'}
</a>
<span class="navigation-pipe">
{if isset($navigationPipe)}{$navigationPipe|escape:'html':'UTF-8'}{/if}
</span>
<span class="navigation_page">
{l s='My wishlists' mod='blockwishlist'}
</span>
{/capture*}
{*<h1 class="page-heading">{l s='My wishlists' mod='blockwishlist'}</h1>*}
{if isset($errors) && $errors}
<div class="alert alert-danger">
<p>{if $errors|@count > 1}{l s='There are %d errors' sprintf=$errors|@count}{else}{l s='There is %d error' sprintf=$errors|@count}{/if}</p>
<ol>
{foreach from=$errors key=k item=error}
<li>{$error|escape:'html':'UTF-8'}</li>
{/foreach}
</ol>
{if isset($smarty.server.HTTP_REFERER) && !strstr($request_uri, 'authentication') && preg_replace('#^https?://[^/]+/#', '/', $smarty.server.HTTP_REFERER) != $request_uri}
<p class="lnk"><a class="alert-link" href="#" title="{l s='Back'}">&laquo; {l s='Back'}</a></p>
{/if}
</div>
{/if}
{if $id_customer|intval neq 0}
<form method="post" class="std box" id="form_wishlist">
<fieldset>
<h3 class="page-subheading">{l s='New wishlist' mod='blockwishlist'}</h3>
<div class="form-group">
<input type="hidden" name="token" value="{$token|escape:'html':'UTF-8'}" />
<label class="align_right" for="name">
{l s='Name' mod='blockwishlist'}
</label>
<input type="text" id="name" name="name" class="inputTxt form-control" value="{if isset($smarty.post.name) and $errors|@count > 0}{$smarty.post.name|escape:'html':'UTF-8'}{/if}" />
</div>
<p class="submit">
<button id="submitWishlist" class="btn btn-primary button button-medium" type="submit" name="submitWishlist">
<span>{l s='Save' mod='blockwishlist'}</span>
</button>
</p>
</fieldset>
</form>
{if $wishlists}
<div id="block-history" class="block-center">
<table class="table table-bordered">
<thead>
<tr>
<th class="first_item">{l s='Name' mod='blockwishlist'}</th>
<th class="item mywishlist_first">{l s='Qty' mod='blockwishlist'}</th>
<th class="item mywishlist_first">{l s='Viewed' mod='blockwishlist'}</th>
<th class="item mywishlist_second">{l s='Created' mod='blockwishlist'}</th>
<th class="item mywishlist_second">{l s='Direct Link' mod='blockwishlist'}</th>
<th class="item mywishlist_second">{l s='Default' mod='blockwishlist'}</th>
<th class="last_item mywishlist_first">{l s='Delete' mod='blockwishlist'}</th>
</tr>
</thead>
<tbody>
{section name=i loop=$wishlists}
<tr id="wishlist_{$wishlists[i].id_wishlist|intval}">
<td style="width:200px;">
<a href="#" onclick="javascript:event.preventDefault();WishlistManage('block-order-detail', '{$wishlists[i].id_wishlist|intval}');">
{$wishlists[i].name|truncate:30:'...'|escape:'htmlall':'UTF-8'}
</a>
</td>
<td class="bold align_center">
{assign var=n value=0}
{foreach from=$nbProducts item=nb name=i}
{if $nb.id_wishlist eq $wishlists[i].id_wishlist}
{assign var=n value=$nb.nbProducts|intval}
{/if}
{/foreach}
{if $n}
{$n|intval}
{else}
0
{/if}
</td>
<td>{$wishlists[i].counter|intval}</td>
<td>{$wishlists[i].date_add|date_format:"%Y-%m-%d"}</td>
<td>
<a href="#" onclick="javascript:event.preventDefault();WishlistManage('block-order-detail', '{$wishlists[i].id_wishlist|intval}');">
{l s='View' mod='blockwishlist'}
</a>
</td>
<td class="wishlist_default">
{if isset($wishlists[i].default) && $wishlists[i].default == 1}
<p class="is_wish_list_default">
<i class="fa fa-check-square"></i>
</p>
{else}
<a href="#" onclick="javascript:event.preventDefault();(WishlistDefault('wishlist_{$wishlists[i].id_wishlist|intval}', '{$wishlists[i].id_wishlist|intval}'));">
<i class="fa fa-square"></i>
</a>
{/if}
</td>
<td class="wishlist_delete">
<a class="icon" href="#" onclick="javascript:event.preventDefault();return (WishlistDelete('wishlist_{$wishlists[i].id_wishlist|intval}', '{$wishlists[i].id_wishlist|intval}', '{l s='Do you really want to delete this wishlist ?' mod='blockwishlist' js=1}'));">
<i class="fa fa-remove"></i>
</a>
</td>
</tr>
{/section}
</tbody>
</table>
</div>
<div id="block-order-detail">&nbsp;</div>
{/if}
{/if}
<div class="footer_links wishlist_footer clearfix">
<a class="btn btn-secondary button button-small" href="{$link->getPageLink('my-account', true)|escape:'html':'UTF-8'}">
<span>
{l s='Back to Your Account' mod='blockwishlist'}
</span>
</a>
<a class="btn btn-primary button button-small pull-right" href="{if isset($base_url) && $base_url}{$base_url|escape:'html':'UTF-8'}{else}#{/if}">
<span>
{l s='Home' mod='blockwishlist'}
</span>
</a>
</div>
</div>
</div>
{/block}

View File

@@ -0,0 +1,139 @@
{*
* 2007-2016 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-2016 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='page.tpl'}
{block name='page_content'}
<div id="view_wishlist">
<h1 class="page-heading bottom-indent">
{l s='Wishlist' mod='blockwishlist'}
</h1>
{if $wishlists}
<p>
<strong class="dark">
{l s='Other wishlists of %1s %2s:' sprintf=[$current_wishlist.firstname, $current_wishlist.lastname] mod='blockwishlist'}
</strong>
{foreach from=$wishlists item=wishlist name=i}
{if $wishlist.id_wishlist != $current_wishlist.id_wishlist}
<a href="{$link->getModuleLink('blockwishlist', 'view', ['token' => $wishlist.token])|escape:'html':'UTF-8'}" rel="nofollow" title="{$wishlist.name|escape:'html':'UTF-8'}">
{$wishlist.name|escape:'htmlall':'UTF-8'}
</a>
{if !$smarty.foreach.i.last}
/
{/if}
{/if}
{/foreach}
</p>
{/if}
<div class="wlp_bought">
{assign var='nbItemsPerLine' value=3}
{assign var='nbItemsPerLineTablet' value=2}
{assign var='nbLi' value=$products|@count}
{math equation="nbLi/nbItemsPerLine" nbLi=$nbLi nbItemsPerLine=$nbItemsPerLine assign=nbLines}
{math equation="nbLi/nbItemsPerLineTablet" nbLi=$nbLi nbItemsPerLineTablet=$nbItemsPerLineTablet assign=nbLinesTablet}
<ul class="row wlp_bought_list">
{foreach from=$products item=product name=i}
{math equation="(total%perLine)" total=$smarty.foreach.i.total perLine=$nbItemsPerLine assign=totModulo}
{math equation="(total%perLineT)" total=$smarty.foreach.i.total perLineT=$nbItemsPerLineTablet assign=totModuloTablet}
{if $totModulo == 0}{assign var='totModulo' value=$nbItemsPerLine}{/if}
{if $totModuloTablet == 0}{assign var='totModuloTablet' value=$nbItemsPerLineTablet}{/if}
<li
id="wlp_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}"
class="ajax_block_product col-xs-12 col-sm-6 col-md-4 {if $smarty.foreach.i.iteration%$nbItemsPerLine == 0} last-in-line{elseif $smarty.foreach.i.iteration%$nbItemsPerLine == 1} first-in-line{/if} {if $smarty.foreach.i.iteration > ($smarty.foreach.i.total - $totModulo)}last-line{/if} {if $smarty.foreach.i.iteration%$nbItemsPerLineTablet == 0}last-item-of-tablet-line{elseif $smarty.foreach.i.iteration%$nbItemsPerLineTablet == 1}first-item-of-tablet-line{/if} {if $smarty.foreach.i.iteration > ($smarty.foreach.i.total - $totModuloTablet)}last-tablet-line{/if}">
<div class="row">
<div class="col-xs-6 col-sm-12">
<div class="product_image">
<a
href="{$link->getProductlink($product.id_product, $product.link_rewrite, $product.category_rewrite)|escape:'html':'UTF-8'}"
title="{l s='Product detail' mod='blockwishlist'}">
<img
class="replace-2x img-responsive"
src="{$link->getImageLink($product.link_rewrite, $product.cover, 'home_default')|escape:'html':'UTF-8'}"
alt="{$product.name|escape:'html':'UTF-8'}"/>
</a>
</div>
</div>
<div class="col-xs-6 col-sm-12">
<div class="product_infos">
<p id="s_title" class="product-name">
{$product.name|truncate:30:'...'|escape:'html':'UTF-8'}
{if isset($product.attributes_small)}
<a
href="{$link->getProductlink($product.id_product, $product.link_rewrite, $product.category_rewrite)|escape:'html':'UTF-8'}"
title="{l s='Product detail' mod='blockwishlist'}">
<small>{$product.attributes_small|escape:'html':'UTF-8'}</small>
</a>
{/if}
</p>
<div class="wishlist_product_detail">
<p class="form-group">
<label for="quantity_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}">
{l s='Quantity' mod='blockwishlist'}:
</label>
<input class="form-control grey" type="text"
id="quantity_{$product.id_product|escape:'html':'UTF-8'}_{$product.id_product_attribute|escape:'html':'UTF-8'}"
value="{$product.quantity|intval}" size="3"/>
</p>
<p class="form-group selector1">
<span><strong>{l s='Priority' mod='blockwishlist'}:</strong> {$product.priority_name|escape:'html':'UTF-8'}</span>
</p>
<div class="btn_action">
{if (isset($product.attribute_quantity) && $product.attribute_quantity >= 1) || (!isset($product.attribute_quantity) && $product.product_quantity >= 1) || (isset($product.allow_oosp) && $product.allow_oosp)}
<form action="{$urls.pages.cart|escape:'html':'UTF-8'}" method="post">
<input type="hidden" name="token" value="{$static_token|escape:'html':'UTF-8'}" />
<input type="hidden" value="{$product.id_product|escape:'html':'UTF-8'}" name="id_product" />
<input type="hidden" class="input-group form-control" name="qty" min="1" value="1" />
<button data-button-action="add-to-cart" class="btn btn-primary">
{l s='Buy Now' d='Shop.Theme.Actions'}
<i class="fa fa-shopping-cart"></i>
</button>
</form>
{else}
<span class="button ajax_add_to_cart_button btn btn-default disabled">
<span>{l s='Add to cart' mod='blockwishlist'}</span>
</span>
{/if}
<a
class="button lnk_view btn btn-default"
href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category_rewrite)|escape:'html':'UTF-8'}"
title="{l s='View' mod='blockwishlist'}"
rel="nofollow">
<span>{l s='View' mod='blockwishlist'}</span>
</a>
</div>
<!-- .btn_action -->
</div>
<!-- .wishlist_product_detail -->
</div>
<!-- .product_infos -->
</div>
</div>
</li>
{/foreach}
</ul>
</div>
</div> <!-- #view_wishlist -->
{/block}

View File

@@ -0,0 +1,26 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $customer.is_logged}
<li>
<a href="{$url|escape:'html':'UTF-8'}" title="{$wishlistsTitlePage|escape:'html':'UTF-8'}" rel="nofollow">
{$blockwishlist|escape:'html':'UTF-8'}
<a>
</li>
{/if}

View File

@@ -0,0 +1,46 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $isPrestaShopVersionLessThan176}
<div class="col-lg-12">
<div class="panel">
<div class="panel-heading">
<i class="icon-file"></i>
{$blockwishlist|escape:'html':'UTF-8'}
<span class="badge">0</span>
</div>
<div class="panel-body">
{$blockwishlist|escape:'html':'UTF-8'}
</div>
</div>
</div>
{else}
<div class="col">
<div class="card">
<h3 class="card-header">
<i class="material-icons">remove_red_eye</i>
{$blockwishlist|escape:'html':'UTF-8'}
<span class="badge badge-primary rounded">0</span>
</h3>
<div class="card-body">
{$blockwishlist|escape:'html':'UTF-8'}
</div>
</div>
</div>
{/if}

View File

@@ -0,0 +1,25 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<a class="col-lg-4 col-md-6 col-sm-6 col-xs-12" id="wishlist-link" href="{$url|escape:'html':'UTF-8'}">
<span class="link-item">
<i class="material-icons">favorite</i>
{$wishlistsTitlePage|escape:'html':'UTF-8'}
</span>
</a>

View File

@@ -0,0 +1,34 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{if $context === "product"}
{include file="module:blockwishlist/views/templates/components/modals/add-to-wishlist.tpl" url=$url addUrl=$addUrl newWishlistCTA=$newWishlistCTA}
{include file="module:blockwishlist/views/templates/components/modals/create.tpl" url=$createUrl}
{include file="module:blockwishlist/views/templates/components/modals/login.tpl"}
{include file="module:blockwishlist/views/templates/components/toast.tpl"}
{/if}
{if $context === "index" || $context === "category" || $context === "blockwishlist" || $context === 'search'}
{include file="module:blockwishlist/views/templates/components/modals/add-to-wishlist.tpl" url=$url addUrl=$addUrl newWishlistCTA=$newWishlistCTA}
{include file="module:blockwishlist/views/templates/components/modals/create.tpl" url=$createUrl}
{include file="module:blockwishlist/views/templates/components/modals/delete.tpl" productUrl=$deleteProductUrl}
{include file="module:blockwishlist/views/templates/components/modals/login.tpl"}
{include file="module:blockwishlist/views/templates/components/toast.tpl"}
{/if}

View File

@@ -0,0 +1,28 @@
<?php
/**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (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,29 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div
class="wishlist-button"
data-url="{$url|escape:'html':'UTF-8'}"
data-product-id="{$product.id|escape:'html':'UTF-8'}"
data-product-attribute-id="{$product.id_product_attribute|escape:'html':'UTF-8'}"
data-is-logged="{$customer.is_logged|escape:'html':'UTF-8'}"
data-list-id="1"
data-checked="true"
data-is-product="true"
></div>

View File

@@ -0,0 +1,28 @@
<?php
/**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (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,47 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='page.tpl'}
{block name='page_header_container'}
{/block}
{block name='page_content_container'}
<div
class="wishlist-container"
data-url="{$url|escape:'html':'UTF-8'}"
data-title="{$wishlistsTitlePage|escape:'html':'UTF-8'}"
data-empty-text="{l s='No wishlist found.' d='Modules.Blockwishlist.Shop'}"
data-rename-text="{l s='Rename' d='Modules.Blockwishlist.Shop'}"
data-share-text="{l s='Share' d='Modules.Blockwishlist.Shop'}"
data-add-text="{$newWishlistCTA|escape:'html':'UTF-8'}"
></div>
{include file="module:blockwishlist/views/templates/components/modals/create.tpl" url=$createUrl}
{include file="module:blockwishlist/views/templates/components/modals/delete.tpl" listUrl=$deleteListUrl productUrl=$deleteProductUrl}
{include file="module:blockwishlist/views/templates/components/modals/share.tpl" url=$shareUrl}
{include file="module:blockwishlist/views/templates/components/modals/rename.tpl" url=$renameUrl}
{include file="module:blockwishlist/views/templates/components/toast.tpl"}
{/block}
{block name='page_footer_container'}
<div class="wishlist-footer-links">
<a href="{$link->getPageLink('my-account', true)|escape:'html'}"><i class="material-icons">chevron_left</i>{l s='Return to your account' d='Modules.Blockwishlist.Shop'}</a>
<a href="{$urls.base_url|escape:'html':'UTF-8'}"><i class="material-icons">home</i>{l s='Home' d='Shop.Theme.Global'}</a>
</div>
{/block}

View File

@@ -0,0 +1,51 @@
{**
* 2007-2020 PrestaShop and Contributors
*
* 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.txt.
* 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 2007-2020 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
{extends file='page.tpl'}
{block name='page_header_container'}
{/block}
{block name='page_content_container'}
<div
class="wishlist-products-container"
data-url="{$url|escape:'html':'UTF-8'}"
data-list-id="{$id|escape:'html':'UTF-8'}"
data-default-sort="{l s='Last added' d='Modules.Blockwishlist.Shop'}"
data-add-to-cart="{l s='Add to cart' d='Shop.Theme.Actions'}"
data-share="{if $isGuest}true{else}false{/if}"
data-customize-text="{l s='Customize' d='Modules.Blockwishlist.Shop'}"
data-quantity-text="{l s='Quantity' d='Shop.Theme.Catalog'}"
data-title="{$wishlistName|escape:'html':'UTF-8'}"
data-no-products-message="{l s='No products found' d='Modules.Blockwishlist.Shop'}"
data-filter="{l s='Filter' d='Shop.Theme.Actions'}"
>
</div>
{include file="module:blockwishlist/views/templates/components/pagination.tpl"}
{include file="module:blockwishlist/views/templates/components/modals/delete.tpl" deleteProductUrl=$deleteProductUrl}
{include file="module:blockwishlist/views/templates/components/toast.tpl"}
{/block}
{block name='page_footer_container'}
<div class="wishlist-footer-links">
<a href="{$wishlistsLink|escape:'html':'UTF-8'}"><i class="material-icons">chevron_left</i>{l s='Return to wishlists' d='Modules.Blockwishlist.Shop'}</a>
<a href="{$urls.base_url|escape:'html':'UTF-8'}"><i class="material-icons">home</i>{l s='Home' d='Shop.Theme.Global'}</a>
</div>
{/block}