Subida del módulo y tema de PrestaShop

This commit is contained in:
Kaloyan
2026-04-09 18:31:51 +02:00
parent 12c253296f
commit 16b3ff9424
39262 changed files with 7418797 additions and 0 deletions

View File

@@ -0,0 +1 @@
/* mailalert.js */

View File

@@ -0,0 +1,15 @@
<?php
/**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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 @@
{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
<li class="ps-emailalerts__product" data-ps-ref="emailalerts-product">
<a href="{$mailAlert.link}" class="ps-emailalerts__product-image-link" rel="nofollow">
<img class="ps-emailalerts__product-image img-fluid" src="{$mailAlert.cover_url}" alt="{$mailAlert.name}" loading="lazy">
</a>
<div class="ps-emailalerts__product-content">
<a href="{$mailAlert.link}">
<span class="ps-emailalerts__product-name">{$mailAlert.name}</span>
</a>
{if $mailAlert.attributes_small}
<span class="ps-emailalerts__product-attributes">
{l s='Attributes: %attributes%' sprintf=['%attributes%' => $mailAlert.attributes_small] d='Modules.Emailalerts.Shop'}
</span>
{/if}
{capture name='deleteData'}{strip}{ldelim}
"id_product": "{$mailAlert.id_product|intval}",
"id_product_attribute": "{$mailAlert.id_product_attribute|intval}",
"url": "{url entity='module' name='ps_emailalerts' controller='actions' params=['process' => 'remove']}"
{rdelim}{/strip}{/capture}
<button type="button"
aria-label="{l s='Delete %productName% mail alert' sprintf=['%productName%' => $mailAlert.name] d='Modules.Emailalerts.Shop'}"
class="link-danger ps-emailalerts__product-delete"
data-ps-action="emailalerts-delete"
data-ps-data="{$smarty.capture.deleteData}"
>
{l s='Delete' d='Modules.Emailalerts.Shop'}
</button>
</div>
</li>

View File

@@ -0,0 +1,25 @@
{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
{extends file='customer/page.tpl'}
{block name='page_title'}
{l s='My alerts' d='Modules.Emailalerts.Shop'}
{/block}
{block name='page_content'}
<p>{l s='Manage your mail alerts to stay informed about product availability and updates.' d='Modules.Emailalerts.Shop'}</p>
{if $mailAlerts}
<ul class="ps-emailalerts__product-list" data-ps-ref="emailalerts-product-list">
{foreach from=$mailAlerts item=mailAlert}
{include 'module:ps_emailalerts/views/templates/front/mailalerts-account-line.tpl' mailAlert=$mailAlert}
{/foreach}
</ul>
<div class="alert alert-info d-none" role="alert" data-ps-ref="emailalerts-account-no-alerts">{l s='You do not have any mail alerts.' d='Modules.Emailalerts.Shop'}</div>
{else}
<div class="alert alert-info" role="alert" data-ps-ref="emailalerts-account-no-alerts">{l s='You do not have any mail alerts.' d='Modules.Emailalerts.Shop'}</div>
{/if}
{/block}

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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,10 @@
{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
<li>
<a href="{url entity='module' name='ps_emailalerts' controller='account'}" rel="nofollow">
{l s='My alerts' d='Shop.Theme.Catalog'}
</a>
</li>

View File

@@ -0,0 +1,14 @@
{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
<a
class="account-menu__link {if $urls.current_url === $link->getModuleLink(ps_emailalerts, 'account')} account-menu__link--active{/if}"
id="emailalerts_link"
href="{$link->getModuleLink(ps_emailalerts, 'account')}"
{if $urls.current_url === $link->getModuleLink(ps_emailalerts, 'account')}aria-current="page"{/if}
>
<i class="account-menu__icon material-icons" aria-hidden="true">&#xE151;</i>
{l s='My alerts' d='Shop.Theme.Catalog'}
</a>

View File

@@ -0,0 +1,87 @@
{*
* 2007-2015 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-2015 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*}
<div class="ps-emailalerts ps-emailalerts--product"
data-ps-ref="emailalerts"
data-ps-component="gdpr"
data-url="{url entity='module' name='ps_emailalerts' controller='actions' params=['process' => 'add']}">
{if empty($has_notification)}
<div class="ps-emailalerts__content" data-ps-ref="emailalerts-content">
<p class="h4 mb-0">
{l s='Notify me when available' d='Modules.Emailalerts.Shop'}
</p>
{if isset($email) AND $email}
<p class="mb-0">
{l s='Interested in this product? Drop us an email and we will let you know when it\'s available for order.' d='Modules.Emailalerts.Shop'}
</p>
<input class="form-control"
type="email"
name="email"
data-ps-ref="emailalerts-email"
placeholder="{l s='Your email address' d='Modules.Emailalerts.Shop'}"
aria-label="{l s='Your email address' d='Modules.Emailalerts.Shop'}"
autocomplete="email"
>
{else}
<p class="mb-0">
{l s='Interested in this product? Click below and we will let you know when it\'s available for order.' d='Modules.Emailalerts.Shop'}
</p>
{/if}
{capture name='subscribeData'}{strip}{ldelim}
"id_product": "{$product.id_product|intval}",
"id_product_attribute": "{$product.id_product_attribute|intval}"
{rdelim}{/strip}{/capture}
<button data-ps-action="emailalerts-subscribe"
data-ps-ref="gdpr-submit"
data-ps-data="{$smarty.capture.subscribeData}"
class="btn btn-primary"
rel="nofollow"
role="button"
>
{l s='Notify me when available' d='Modules.Emailalerts.Shop'}
</button>
{if !empty($id_module)}
{capture name='gdprContent'}{hook h='displayGDPRConsent' id_module=$id_module}{/capture}
{if $smarty.capture.gdprContent}
<div class="fs-6 text-body-secondary">
{$smarty.capture.gdprContent nofilter}
</div>
{/if}
{/if}
</div>
<div class="d-none" data-ps-target="emailalerts-alerts" aria-live="assertive"></div>
{else}
<div class="alert alert-info" role="alert">
{l s='You will be notified when this product is available.' d='Modules.Emailalerts.Shop'}
</div>
{/if}
</div>

View File

@@ -0,0 +1,14 @@
<?php
/**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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;