-
+
- ${errorMsg} +
{l s='Shopping Cart' d='Shop.Theme.Checkout'}
+{block name='cart_overview'} {include file='checkout/_partials/cart-detailed.tpl' cart=$cart} {/block}
0&&C.length>s&&!C.warned){C.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+C.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=l,o.type=n,o.count=C.length,un(o)}return l}fe.prototype.addListener=function(n,t){return Qt(this,n,t,!1)},fe.prototype.on=fe.prototype.addListener,fe.prototype.prependListener=function(n,t){return Qt(this,n,t,!0)};function fn(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Yt(l,n,t){var w={fired:!1,wrapFn:void 0,target:l,type:n,listener:t},s=fn.bind(w);return s.listener=t,w.wrapFn=s,s}fe.prototype.once=function(n,t){return St(t),this.on(n,Yt(this,n,t)),this},fe.prototype.prependOnceListener=function(n,t){return St(t),this.prependListener(n,Yt(this,n,t)),this},fe.prototype.removeListener=function(n,t){var w,s,k,C,o;if(St(t),s=this._events,s===void 0)return this;if(w=s[n],w===void 0)return this;if(w===t||w.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete s[n],s.removeListener&&this.emit("removeListener",n,w.listener||t));else if(typeof w!="function"){for(k=-1,C=w.length-1;C>=0;C--)if(w[C]===t||w[C].listener===t){o=w[C].listener,k=C;break}if(k<0)return this;k===0?w.shift():dn(w,k),w.length===1&&(s[n]=w[0]),s.removeListener!==void 0&&this.emit("removeListener",n,o||t)}return this},fe.prototype.off=fe.prototype.removeListener,fe.prototype.removeAllListeners=function(n){var t,w,s;if(w=this._events,w===void 0)return this;if(w.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):w[n]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete w[n]),this;if(arguments.length===0){var k=Object.keys(w),C;for(s=0;s=0;s--)this.removeListener(n,t[s]);return this};function Zt(l,n,t){var w=l._events;if(w===void 0)return[];var s=w[n];return s===void 0?[]:typeof s=="function"?t?[s.listener||s]:[s]:t?pn(s):Jt(s,s.length)}fe.prototype.listeners=function(n){return Zt(this,n,!0)},fe.prototype.rawListeners=function(n){return Zt(this,n,!1)},fe.listenerCount=function(l,n){return typeof l.listenerCount=="function"?l.listenerCount(n):Gt.call(l,n)},fe.prototype.listenerCount=Gt;function Gt(l){var n=this._events;if(n!==void 0){var t=n[l];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}fe.prototype.eventNames=function(){return this._eventsCount>0?xt(this._events):[]};function Jt(l,n){for(var t=new Array(n),w=0;w + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + */class $t{constructor(n){this.el=n}init(){this.el.on("show.bs.dropdown",(n,t)=>{t?i(`#${t}`).find(".dropdown-menu").first().stop(!0,!0).slideDown():i(n.target).find(".dropdown-menu").first().stop(!0,!0).slideDown()}),this.el.on("hide.bs.dropdown",(n,t)=>{t?i(`#${t}`).find(".dropdown-menu").first().stop(!0,!0).slideUp():i(n.target).find(".dropdown-menu").first().stop(!0,!0).slideUp()}),this.el.find("select.link").each((n,t)=>{i(t).on("change",function(){window.location=i(this).val()})})}}/** + * 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. + * + * 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 https://devdocs.prestashop.com/ for more information. + * + * @author PrestaShop SA and Contributors + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + */class vn{init(){this.parentFocus(),this.togglePasswordVisibility()}parentFocus(){i(".js-child-focus").on("focus",function(){i(this).closest(".js-parent-focus").addClass("focus")}),i(".js-child-focus").on("focusout",function(){i(this).closest(".js-parent-focus").removeClass("focus")})}togglePasswordVisibility(){i('button[data-action="show-password"]').on("click",function(){const n=i(this).closest(".input-group").children("input.js-visible-password");n.attr("type")==="password"?(n.attr("type","text"),i(this).text(i(this).data("textHide"))):(n.attr("type","password"),i(this).text(i(this).data("textShow")))})}}var Mt={};(function(l){(function(){var n={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function t(o){return s(C(o),arguments)}function w(o,p){return t.apply(null,[o].concat(p||[]))}function s(o,p){var Q=1,_=o.length,u,S="",d,V,O,A,c,N,G,ie;for(d=0;d<_;d++)if(typeof o[d]=="string")S+=o[d];else if(typeof o[d]=="object"){if(O=o[d],O.keys)for(u=p[Q],V=0;V =0),O.type){case"b":u=parseInt(u,10).toString(2);break;case"c":u=String.fromCharCode(parseInt(u,10));break;case"d":case"i":u=parseInt(u,10);break;case"j":u=JSON.stringify(u,null,O.width?parseInt(O.width):0);break;case"e":u=O.precision?parseFloat(u).toExponential(O.precision):parseFloat(u).toExponential();break;case"f":u=O.precision?parseFloat(u).toFixed(O.precision):parseFloat(u);break;case"g":u=O.precision?String(Number(u.toPrecision(O.precision))):parseFloat(u);break;case"o":u=(parseInt(u,10)>>>0).toString(8);break;case"s":u=String(u),u=O.precision?u.substring(0,O.precision):u;break;case"t":u=String(!!u),u=O.precision?u.substring(0,O.precision):u;break;case"T":u=Object.prototype.toString.call(u).slice(8,-1).toLowerCase(),u=O.precision?u.substring(0,O.precision):u;break;case"u":u=parseInt(u,10)>>>0;break;case"v":u=u.valueOf(),u=O.precision?u.substring(0,O.precision):u;break;case"x":u=(parseInt(u,10)>>>0).toString(16);break;case"X":u=(parseInt(u,10)>>>0).toString(16).toUpperCase();break}n.json.test(O.type)?S+=u:(n.number.test(O.type)&&(!G||O.sign)?(ie=G?"+":"-",u=u.toString().replace(n.sign,"")):ie="",c=O.pad_char?O.pad_char==="0"?"0":O.pad_char.charAt(1):" ",N=O.width-(ie+u).length,A=O.width&&N>0?c.repeat(N):"",S+=O.align?ie+u+A:c==="0"?ie+A+u:A+ie+u)}return S}var k=Object.create(null);function C(o){if(k[o])return k[o];for(var p=o,Q,_=[],u=0;p;){if((Q=n.text.exec(p))!==null)_.push(Q[0]);else if((Q=n.modulo.exec(p))!==null)_.push("%");else if((Q=n.placeholder.exec(p))!==null){if(Q[2]){u|=1;var S=[],d=Q[2],V=[];if((V=n.key.exec(d))!==null)for(S.push(V[1]);(d=d.substring(V[0].length))!=="";)if((V=n.key_access.exec(d))!==null)S.push(V[1]);else if((V=n.index_access.exec(d))!==null)S.push(V[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");Q[2]=S}else u|=2;if(u===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");_.push({placeholder:Q[0],param_no:Q[1],keys:Q[2],sign:Q[3],pad_char:Q[4],align:Q[5],width:Q[6],precision:Q[7],type:Q[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");p=p.substring(Q[0].length)}return k[o]=_}l.sprintf=t,l.vsprintf=w,typeof window<"u"&&(window.sprintf=t,window.vsprintf=w)})()})(Mt);/** + * 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. + * + * 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 https://devdocs.prestashop.com/ for more information. + * + * @author PrestaShop SA and Contributors + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + */const{passwordPolicy:$e}=prestashop.themeSelectors,bn="The password policy elements are undefined.",wn=l=>{switch(l){case 0:return{color:"bg-danger"};case 1:return{color:"bg-danger"};case 2:return{color:"bg-warning"};case 3:return{color:"bg-success"};case 4:return{color:"bg-success"};default:throw new Error("Invalid password strength indicator.")}},yn=async(l,n,t)=>{const{prestashop:w}=window,s=l.value,k=n.querySelector($e.requirementScoreIcon),C=await w.checkPasswordScore(s),o=wn(C.score),p=s.length,Q=[];$(l).popover("dispose"),n.style.display=s===""?"none":"block",C.feedback.warning!==""&&C.feedback.warning in t&&Q.push(t[C.feedback.warning]),C.feedback.suggestions.forEach(V=>{V in t&&Q.push(t[V])}),$(l).popover({html:!0,placement:"top",content:Q.join("
")}).popover("show");const _=p>=parseInt(l.dataset.minlength,10)&&p<=parseInt(l.dataset.maxlength,10),u=parseInt(l.dataset.minscore,10)<=C.score;n.querySelector($e.requirementLengthIcon).classList.toggle("text-success",_),k.classList.toggle("text-success",u),l.classList.remove("border-success","border-danger"),l.classList.add(u&&_?"border-success":"border-danger"),l.classList.add("form-control","border");const S=C.score*20+20,d=n.querySelector($e.progressBar);d&&(d.style.width=`${S}%`,d.classList.remove("bg-success","bg-danger","bg-warning"),d.classList.add(o.color))},xn=l=>{document.querySelectorAll(l).forEach(t=>{const w=t==null?void 0:t.querySelector($e.inputColumn),s=t==null?void 0:t.querySelector("input"),k=document.createElement("div"),C=document.querySelector($e.template);let o;if(C&&t&&w&&s&&(k.innerHTML=C.innerHTML,w.append(k),o=t.querySelector($e.container),o)){const p=document.querySelector($e.hint);if(p){const Q=JSON.parse(p.innerHTML),_=o.querySelector($e.requirementLength),u=o.querySelector($e.requirementScore),S=_==null?void 0:_.querySelector("span"),d=u==null?void 0:u.querySelector("span");S&&_&&_.dataset.translation&&(S.innerText=Mt.sprintf(_.dataset.translation,s.dataset.minlength,s.dataset.maxlength)),d&&u&&u.dataset.translation&&(d.innerText=Mt.sprintf(u.dataset.translation,Q[s.dataset.minscore])),s.addEventListener("keyup",()=>yn(s,o,Q)),s.addEventListener("blur",()=>{$(s).popover("dispose")})}}return t?{element:t}:{error:new Error(bn)}})};/** + * 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. + * + * 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 https://devdocs.prestashop.com/ for more information. + * + * @author PrestaShop SA and Contributors+ * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + */class Sn extends $t{init(){let n;const t=this;this.el.find("li").on("mouseenter mouseleave",w=>{if(this.el.parent().hasClass("mobile"))return;const s=i(w.currentTarget).attr("class");n!==s&&(n=Array.prototype.slice.call(w.currentTarget.classList).map(C=>typeof C=="string"?`.${C}`:!1).join(""),n&&i(w.target).data("depth")===0&&i(`${n} .js-sub-menu`).css({top:i(`${n}`).height()+i(`${n}`).position().top}))}),i("#menu-icon").on("click",()=>{i("#mobile_top_menu_wrapper").toggle(),t.toggleMobileMenu()}),this.el.on("click",w=>{this.el.parent().hasClass("mobile")||w.stopPropagation()}),b.on("responsive update",()=>{i(".js-sub-menu").removeAttr("style"),t.toggleMobileMenu()}),super.init()}toggleMobileMenu(){i("#header").toggleClass("is-open"),i("#mobile_top_menu_wrapper").is(":visible")?i("#notifications, #wrapper, #footer").hide():i("#notifications, #wrapper, #footer").show()}}/** + * 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. + * + * 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 https://devdocs.prestashop.com/ for more information. + * + * @author PrestaShop SA and Contributors + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + */b.blockcart=b.blockcart||{},b.blockcart.showModal=l=>{function n(){return i("#blockcart-modal")}let t=n();t.length&&t.remove(),i("body").append(l),t=n(),t.modal("show").on("hidden.bs.modal",w=>{b.emit("updateProduct",{reason:w.currentTarget.dataset,event:w})})};/** + * 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. + * + * 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 https://devdocs.prestashop.com/ for more information. + * + * @author PrestaShop SA and Contributors + * @copyright Since 2007 PrestaShop SA and Contributors + * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) + */for(const l in Xt.prototype)b[l]=Xt.prototype[l];i(document).ready(()=>{const l=i(".js-dropdown"),n=new vn,t=i('.js-top-menu ul[data-depth="0"]'),w=new $t(l),s=new Sn(t),k=new qt,C=new Ht;w.init(),n.init(),s.init(),k.init(),C.init(),xn(".field-password-policy"),i('.carousel[data-touch="true"]').swipe({swipe(o,p){p==="left"&&i(this).carousel("next"),p==="right"&&i(this).carousel("prev")},allowPageScroll:"vertical"})})})(jQuery,prestashop); diff --git a/modules/ps_advertising/index.php b/modules/ps_advertising/index.php deleted file mode 100644 index 99e1f25..0000000 --- a/modules/ps_advertising/index.php +++ /dev/null @@ -1,35 +0,0 @@ - - * @copyright 2007-2019 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; diff --git a/modules/ps_categoryproducts/views/templates/hook/ps_categoryproducts.tpl b/modules/ps_categoryproducts/views/templates/hook/ps_categoryproducts.tpl index 3139444..e4b9049 100644 --- a/modules/ps_categoryproducts/views/templates/hook/ps_categoryproducts.tpl +++ b/modules/ps_categoryproducts/views/templates/hook/ps_categoryproducts.tpl @@ -22,15 +22,15 @@ * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) * International Registered Trademark & Property of PrestaShop SA *} - - +
-+ {if $products|@count == 1} {l s='%s other product in the same category:' sprintf=[$products|@count] d='Shop.Theme.Catalog'} {else} {l s='%s other products in the same category:' sprintf=[$products|@count] d='Shop.Theme.Catalog'} {/if} - + +{foreach from=$products item="product"} {include file="catalog/_partials/miniatures/product.tpl" product=$product} {/foreach} diff --git a/modules/ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl b/modules/ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl index 544d208..1f18155 100644 --- a/modules/ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl +++ b/modules/ps_featuredproducts/views/templates/hook/ps_featuredproducts.tpl @@ -26,7 +26,7 @@{l s='Popular Products' d='Shop.Theme.Catalog'}
-+{foreach from=$products item="product"} {include file="catalog/_partials/miniatures/product.tpl" product=$product} {/foreach} diff --git a/modules/ps_imageslider/views/templates/hook/slider.tpl b/modules/ps_imageslider/views/templates/hook/slider.tpl index c670467..55775ad 100644 --- a/modules/ps_imageslider/views/templates/hook/slider.tpl +++ b/modules/ps_imageslider/views/templates/hook/slider.tpl @@ -24,17 +24,17 @@ *} {if $homeslider.slides} -