forked from brooksbingham/theme-elegance
fix:display out of stock notification on cart page
parent
23daeb6e32
commit
4e434d72d7
|
@ -28,7 +28,7 @@ const CheckUpdateQuantityOperations = {
|
||||||
|
|
||||||
if (errorMsg !== "") {
|
if (errorMsg !== "") {
|
||||||
const strError = `
|
const strError = `
|
||||||
<article class="alert alert-danger" role="alert" data-alert="danger">
|
<article class="alert text-center w-fit flex mt-12 p-2 bg-red-100 border border-red-300 alert-danger" role="alert" data-alert="danger">
|
||||||
<ul>
|
<ul>
|
||||||
<li>${errorMsg}</li>
|
<li>${errorMsg}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -100,7 +100,7 @@ prestashop.themeSelectors = {
|
||||||
},
|
},
|
||||||
notifications: {
|
notifications: {
|
||||||
dangerAlert: "#notifications article.alert-danger",
|
dangerAlert: "#notifications article.alert-danger",
|
||||||
container: "#notifications .notifications-container",
|
container: "#notifications.notifications-container",
|
||||||
},
|
},
|
||||||
passwordPolicy,
|
passwordPolicy,
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -22,57 +22,57 @@
|
||||||
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0)
|
||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
|
{if isset($notifications)}
|
||||||
|
|
||||||
{if isset($notifications)}
|
<div id="notifications" class="notifications-container container">
|
||||||
<aside id="notifications">
|
{if $notifications.error}
|
||||||
<div class="container">
|
{block name='notifications_error'}
|
||||||
{if $notifications.error}
|
<article class="alert alert-danger" role="alert" data-alert="danger">
|
||||||
{block name='notifications_error'}
|
<ul>
|
||||||
<article class="alert alert-danger" role="alert" data-alert="danger">
|
{foreach $notifications.error as $notif}
|
||||||
<ul>
|
<li>{$notif nofilter}</li>
|
||||||
{foreach $notifications.error as $notif}
|
{/foreach}
|
||||||
<li>{$notif nofilter}</li>
|
</ul>
|
||||||
{/foreach}
|
</article>
|
||||||
</ul>
|
{/block}
|
||||||
</article>
|
{/if}
|
||||||
{/block}
|
|
||||||
{/if}
|
|
||||||
|
|
||||||
{if $notifications.warning}
|
{if $notifications.warning}
|
||||||
{block name='notifications_warning'}
|
{block name='notifications_warning'}
|
||||||
<article class="alert alert-warning" role="alert" data-alert="warning">
|
<article class="alert alert-warning " role="alert" data-alert="warning">
|
||||||
<ul>
|
<ul>
|
||||||
{foreach $notifications.warning as $notif}
|
{foreach $notifications.warning as $notif}
|
||||||
<li>{$notif nofilter}</li>
|
<li>{$notif nofilter}</li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
</article>
|
</article>
|
||||||
{/block}
|
{/block}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if $notifications.success}
|
{if $notifications.success}
|
||||||
{block name='notifications_success'}
|
{block name='notifications_success'}
|
||||||
<article class="alert alert-success" role="alert" data-alert="success">
|
<article class="alert alert-success" role="alert" data-alert="success">
|
||||||
<ul>
|
<ul>
|
||||||
{foreach $notifications.success as $notif}
|
{foreach $notifications.success as $notif}
|
||||||
<li>{$notif nofilter}</li>
|
<li>{$notif nofilter}</li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
</article>
|
</article>
|
||||||
{/block}
|
{/block}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
{if $notifications.info}
|
||||||
|
{block name='notifications_info'}
|
||||||
|
<article class="alert alert-info" role="alert" data-alert="info">
|
||||||
|
<ul>
|
||||||
|
{foreach $notifications.info as $notif}
|
||||||
|
<li>{$notif nofilter}</li>
|
||||||
|
{/foreach}
|
||||||
|
</ul>
|
||||||
|
</article>
|
||||||
|
{/block}
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
</aside>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{if $notifications.info}
|
|
||||||
{block name='notifications_info'}
|
|
||||||
<article class="alert alert-info" role="alert" data-alert="info">
|
|
||||||
<ul>
|
|
||||||
{foreach $notifications.info as $notif}
|
|
||||||
<li>{$notif nofilter}</li>
|
|
||||||
{/foreach}
|
|
||||||
</ul>
|
|
||||||
</article>
|
|
||||||
{/block}
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
</aside>
|
|
||||||
{/if}
|
|
||||||
|
|
|
@ -61,6 +61,10 @@
|
||||||
{include file='_partials/breadcrumb.tpl'}
|
{include file='_partials/breadcrumb.tpl'}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
{block name='notifications'}
|
||||||
|
{include file='_partials/notifications.tpl'}
|
||||||
|
{/block}
|
||||||
|
|
||||||
{block name='wrapperTop'}
|
{block name='wrapperTop'}
|
||||||
{hook h="displayWrapperTop"}
|
{hook h="displayWrapperTop"}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
Loading…
Reference in New Issue