hi there,
the add to cart button works totally fine, BUT when people click on the circular icon for their cart ~
nothing happens!
people cant buy anything!!!
very frustrating
please help!
website is teta.studio
thank you ~ ~ ~
hi there,
the add to cart button works totally fine, BUT when people click on the circular icon for their cart ~
nothing happens!
people cant buy anything!!!
very frustrating
please help!
website is teta.studio
thank you ~ ~ ~
it’s because of some js Issues,
You dont have to worry about it.
update your theme to new version of theme, your issues will be resolve.
Thank you
Remove the line no.71 code from index.js
Remove this code " function Ss(t){const e=t||{};this.settings=Object.assign({method:“scroll”,container:“#AjaxinateContainer”,pagination:“#AjaxinatePagination”,offset:0,loadingText:“Loading”,callback:null},e),this.addScrollListeners=this.addScrollListeners.bind(this),this.addClickListener=this.addClickListener.bind(this),this.checkIfPaginationInView=this.checkIfPaginationInView.bind(this),this.preventMultipleClicks=this.preventMultipleClicks.bind(this),this.removeClickListener=this.removeClickListener.bind(this),this.removeScrollListener=this.removeScrollListener.bind(this),this.removePaginationElement=this.removePaginationElement.bind(this),this.destroy=this.destroy.bind(this),this.containerElement=document.querySelector(this.settings.container),this.paginationElement=document.querySelector(this.settings.pagination),this.initialize()}Ss.prototype.initialize=function(){if(!this.containerElement)return;({click:this.addClickListener,scroll:this.addScrollListeners})this.settings.method},Ss.prototype.addScrollListeners=function(){this.paginationElement&&(document.addEventListener(“scroll”,this.checkIfPaginationInView),window.addEventListener(“resize”,this.checkIfPaginationInView),window.addEventListener(“orientationchange”,this.checkIfPaginationInView))},Ss.prototype.addClickListener=function(){this.paginationElement&&(this.nextPageLinkElement=this.paginationElement.querySelector(“a”),this.clickActive=!0,void 0!==this.nextPageLinkElement&&null!==this.nextPageLinkElement&&this.nextPageLinkElement.addEventListener(“click”,this.preventMultipleClicks))},Ss.prototype.preventMultipleClicks=function(t){t.preventDefault(),this.clickActive&&(this.nextPageLinkElement.innerText=this.settings.loadingText,this.nextPageUrl=this.nextPageLinkElement.href,this.clickActive=!1,this.loadMore())},Ss.prototype.checkIfPaginationInView=function(){const t=this.paginationElement.getBoundingClientRect().top-this.settings.offset,e=this.paginationElement.getBoundingClientRect().bottom+this.settings.offset;t<=window.innerHeight&&e>=0&&(this.nextPageLinkElement=this.paginationElement.querySelector(“a”),this.removeScrollListener(),this.nextPageLinkElement&&(this.nextPageLinkElement.innerText=this.settings.loadingText,this.nextPageUrl=this.nextPageLinkElement.href,this.loadMore()))},Ss.prototype.loadMore=function(){this.request=new XMLHttpRequest,this.request.onreadystatechange=function(){if(!this.request.responseXML)return;if(4===!this.request.readyState||200===!this.request.status)return;const t=this.request.responseXML.querySelectorAll(this.settings.container)[0],e=this.request.responseXML.querySelectorAll(this.settings.pagination)[0];this.containerElement.insertAdjacentHTML(“beforeend”,t.innerHTML),void 0===e?this.removePaginationElement():(this.paginationElement.innerHTML=e.innerHTML,this.settings.callback&&“function”==typeof this.settings.callback&&this.settings.callback(this.request.responseXML),this.initialize())}.bind(this),this.request.open(“GET”,this.nextPageUrl),this.request.responseType=“document”,this.request.send()},Ss.prototype.removeClickListener=function(){this.nextPageLinkElement.removeEventListener(“click”,this.preventMultipleClicks)},Ss.prototype.removePaginationElement=function(){this.paginationElement.innerHTML=“”,this.destroy()},Ss.prototype.removeScrollListener=function(){document.removeEventListener(“scroll”,this.checkIfPaginationInView),window.removeEventListener(“resize”,this.checkIfPaginationInView),window.removeEventListener(“orientationchange”,this.checkIfPaginationInView)},Ss.prototype.destroy=function(){return{click:this.removeClickListener,scroll:this.removeScrollListener}this.settings.method,this};function As(){try{return localStorage.setItem(“test”,“test”),localStorage.removeItem(“test”),!0}catch(t){return!1}}var Ls=function(t){return B(“collection:filters:add”,null,{tags:t})},ks=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return B(“collection:filters:remove”,null,{tags:t,fetch:e})},xs=function(t){return B(“collection:sort:set”,null,{method:t})},Ts=function(){return B(“collection:sort:clear”,null)},qs=function(t){return R(“collection:filters:remove”,t)},Os=function(t){return R(“collection:sort:set”,t)},Cs=function(t){return R(“collection:sort:clear”,t)},Ps=function(t){return R(“collection:clear”,t)},Ds=“active”,Is=“closed”,Ns=function(){return function(t){if(As())return JSON.parse(localStorage.getItem(“neon_”+t))}(“closed_sidebar_groups”)||},js=function(t){return function(t,e){if(As())return localStorage.setItem(“neon_”+t,e)}(“closed_sidebar_groups”,JSON.stringify(t))},Ms=“[data-heading]”,Rs=“[data-tag]”,Bs=“[data-sort]”,Hs=function(t){return’[data-group=“‘.concat(t,’”]‘)},zs=“[data-filter]”,Fs=“[data-filter-flyout]”,Us=“[data-button]”,Vs=“[data-filter-wash]”,Ws=“[data-tag]”,Gs=“[data-sort]”,$s=“[data-close-icon]”,Ys=“active”,Js=“.product-item”,Ks=“.collection__infinite-container”,Xs=“.collection__infinite-trigger”,Zs=“[data-sidebar]”,Qs=“[data-partial]”;pe(“collection”,{infiniteScroll:null,onLoad:function(){var t,e=this,n=this.container.dataset.paginationType;this.paginationType=n,this.infiniteScrollTrigger=Wt(Xs,this.container),this.collection=function(t){var e=new Es.a(t||window.location.href);function n(t){var n=e.paths().slice(0,2);e.paths(.concat(n,[t]))}function r(){var t=e.paths().filter(Boolean);return t[2]?t[2].split(" “):}return{getState:function(){return{handle:e.paths()[1],page:Number(e.query.page)||1,sort_by:e.query.sort_by||null,tags:r(),url:e.toString().replace(/%20/g,”+“)}},addTags:function(t,i){return n(.concat(r(),t).filter((function(t,e,n){return n.indexOf(t)==e})).join(” “)),delete e.query.page,i(this.getState())},removeTags:function(t,i){return n(r().filter((function(e){return!t.includes(e)})).join(” “)),delete e.query.page,i(this.getState())},setSort:function(t,n){return e.query.sort_by=t,n(this.getState())},clearSort:function(t){return delete e.query.sort_by,t(this.getState())},clearAll:function(t){return delete e.query.sort_by,n(”"),t(this.getState())}}}(window.location.href),this.sidebar=function(t){if(!t)return Function();var e=Gt(Rs,t),n=Gt(Bs,t),r=Jt(t,“click”,(function(t){t.preventDefault();var e=t.target.dataset,n=e.heading,r=e.tag,i=e.sort;r&&(z().tags.includes(r)?ks([r]):Ls([r]));i&&(z().sort_by===i?Ts():xs(i));if(n){var o=t.target.nextElementSibling;v(o);var a=Ns();y(o)?(Xt(t.target,Is),g(o),js(.concat(Ct()(a),[n]))):(Zt(t.target,Is),m(o),js(a.filter((function(t){return t!==n}))))}})),i=R(“tags”,(function(t){var n=t.tags;return e.forEach((function(t){return Qt(t.parentElement,Ds,n.includes(t.dataset.tag))}))})),o=R(“sort_by”,(function(t){var e=t.sort_by;return n.forEach((function(t){return Qt(t.parentElement,Ds,t.dataset.sort===e)}))}));return Ns().forEach((function(e){var n=Wt(Hs(e),t);n&&(Xt(Wt(Ms,n),Is),g(n.querySelector(“ul”),{duration:1}))})),function(){r(),i(),o()}}(this.container.querySelector(Zs)),this.filtering=function(t){var e=Gt(Fs,t),n=Wt(Vs,t),r=Gt(Ws,t),i=Gt(’[data-filter-flyout=“__sort”] ‘.concat(Gs)),o=null,a=[Jt(Gt(zs,t),“click”,(function(e){e.preventDefault();var r=e.currentTarget.dataset.filter,i=Wt(’[data-filter-flyout=“‘.concat(r,’”]‘),t);(o=bt(i,{allowOutsideClick:!0})).activate(),Xt(n,Ys),Xt(i,Ys),ui(t,{allowTouchMove:function(t){for(;t&&t!==document.body;){if(null!==t.getAttribute(“data-scroll-lock-ignore”))return!0;t=t.parentNode}},reserveScrollBarGap:!0})})),Jt(r,“click”,(function(t){t.preventDefault(),Qt(t.target.parentNode,Ys)})),Jt(i,“click”,(function(t){if(t.preventDefault(),te(t.currentTarget.parentNode,Ys))return;i.forEach((function(e){return Qt(e.parentNode,Ys,e===t.currentTarget)}))})),Jt(n,“click”,u),Jt(Gt(Us,t),“click”,(function(t){t.preventDefault();var e=t.currentTarget.dataset.button,n=t.currentTarget.closest(Fs);if(“__sort”===n.dataset.filterFlyout){if(“clear”===e&&Zt(i.map((function(t){return t.parentNode})),Ys),“apply”===e){var r=Wt(“.”.concat(Ys),n);return r?xs(r.firstElementChild.dataset.sort):Ts(),void u()}}else{var o=Gt(Ws,n);if(“clear”===e&&Zt(o.map((function(t){return t.parentNode})),Ys),“apply”===e){var a=,s=;o.forEach((function(t){var e=t.parentNode,n=t.dataset.tag;te(e,Ys)?a.push(n):s.push(n)})),s.length>0&&ks(s,a.length<=0),a.length>0&&Ls(a),u()}}})),Jt(Gt($s,t),“click”,u)],s=R(“tags”,(function(t){var e=t.tags;return r.forEach((function(t){return Qt(t.parentElement,Ys,e.includes(t.dataset.tag))}))})),c=R(“sort_by”,(function(t){var e=t.sort_by;return i.forEach((function(t){return Qt(t.parentElement,Ys,t.dataset.sort===e)}))}));function u(r){r&&r.preventDefault(),o&&o.deactivate(),Zt(.concat(Ct()(e),[n]),Ys),li(t)}return function(){s(),c(),a.forEach((function(t){return t()}))}}(this.container),H(this.collection.getState()),this.partial=Wt(Qs,this.container),this.subscriptions=[(t=function(t,n){var r=n.tags;return e.collection.addTags(r,(function(t){e._renderView(t.url),H(t)()}))},R(“collection:filters:add”,t)),qs((function(t,n){var r=n.tags,i=n.fetch;e.collection.removeTags(r,(function(t){i&&(e._renderView(t.url),H(t)())}))})),Os((function(t,n){var r=n.method;e.collection.setSort(r,(function(t){e._renderView(t.url),H(t)()}))})),Cs((function(){e.collection.clearSort((function(t){e._renderView(t.url),H(t)()}))})),Ps((function(){e.collection.clearAll((function(t){e._renderView(t.url),H(t)()}))}))],this.delegate=new Do.a(this.partial),this.delegate.on(“click”,’[data-pill=“filter”]‘,(function(t){t.preventDefault();var e=t.target.dataset.tag;ks([e])})),this.delegate.on(“click”,’[data-pill=“sort”]‘,(function(t){t.preventDefault(),Ts()})),this.delegate.on(“click”,“[data-clear]”,(function(t){t.preventDefault(),B(“collection:clear”)})),this.delegate.on(“click”,“[data-pagination]”,(function(t){t.preventDefault(),e._renderView(t.target.href)})),this._initInfiniteScroll(),this._initProductItems(),this.collectionUpdatedHanlder=R(“collection:updated”,(function(){e.productItems.forEach((function(t){return t.unload()})),e._initProductItems()}))},_initInfiniteScroll:function(){if(!(“paginated”===this.paginationType)){var t={container:Ks,pagination:Xs,loadingText:“Loading…”,callback:function(){return B(“collection:updated”)}};“click”===this.paginationType&&(t.method=“click”),Ss.prototype.loadMore=function(){this.request=new XMLHttpRequest,this.request.onreadystatechange=function(){if(4===this.request.readyState&&200===this.request.status){var t=(new DOMParser).parseFromString(this.request.responseText,“text/html”),e=t.querySelectorAll(this.settings.container)[0],n=t.querySelectorAll(this.settings.pagination)[0];this.containerElement.insertAdjacentHTML(“beforeend”,e.innerHTML),this.paginationElement.innerHTML=n.innerHTML,this.settings.callback&&“function”==typeof this.settings.callback&&this.settings.callback(this.request.responseXML),this.initialize()}}.bind(this),this.request.open(“GET”,this.nextPageUrl,!1),this.request.send()},this.infiniteScroll=new Ss(t)}},_initProductItems:function(){var t=this,e=this.container.querySelectorAll(Js);this.productItems=,e.forEach((function(e){t.productItems.push(zo(e))}))},_renderView:function(t){var e=this,n=Wt(“.collection__loading”,this.container);Xt(n,“is-active”),fetch(t,{credentials:“include”}).then((function(t){return t.text()})).then((function(r){window.history.pushState({},“”,t);var i=(new window.DOMParser).parseFromString(r,“text/html”),o=Wt(Qs,i).innerHTML;e.partial.innerHTML=o,e.infiniteScrollTrigger.innerHTML=“”,e._initInfiniteScroll(),Zt(n,“is-active”),B(“collection:updated”)}))},onUnload:function(){this.infiniteScroll&&this.infiniteScroll.destroy(),this.productItems.forEach((function(t){return t.unload()})),this.sidebar(),this.filtering(),this.delegate.off(),this.subscriptions.forEach((function(t){return t()})),this.collectionUpdatedHanlder()}});var tc=“#RecoverPassword”,ec=“#RecoverPasswordForm”,nc=“#HideRecoverPasswordLink”,rc=“#CustomerLoginForm”,ic=“.reset-password-success”,oc=“#ResetSuccess”;function ac(t){if(“string”!=typeof t)throw new TypeError(t+" is not a string.“);this.countryOptions=t}function sc(t,e){return t.querySelector('option[value=”’+e+‘"]’)}function cc(t,e,n){var r=sc(t,n),i=JSON.parse(r.getAttribute(“data-provinces”));return e.options.length=0,i.length&&function(t,e){var n=t.getAttribute(“data-default”);e.forEach((function(e){var n=document.createElement(“option”);n.value=e[0],n.textContent=e[1],t.appendChild(n)})),n&&sc(t,n)&&(t.value=n)}(e,i),i}pe(“login”,{onLoad:function(){this.recoverPasswordLink=this.container.querySelector(tc),this.hideRecoverPasswordLink=this.container.querySelector(nc),this.customerLoginForm=this.container.querySelector(rc),this._onShowHidePasswordForm=this._onShowHidePasswordForm.bind(this),this.recoverPasswordLink&&(this._checkUrlHash(),this._resetPasswordSuccess(),this.recoverPasswordLink.addEventListener(“click”,this._onShowHidePasswordForm),this.hideRecoverPasswordLink.addEventListener(“click”,this._onShowHidePasswordForm))},_onShowHidePasswordForm:function(t){t.preventDefault(),this._toggleRecoverPasswordForm()},_checkUrlHash:function(){“recover”===window.location.hash&&this._toggleRecoverPasswordForm()},_toggleRecoverPasswordForm:function(){this.container.querySelector(ec).classList.toggle(“hide”),this.customerLoginForm.classList.toggle(“hide”)},_resetPasswordSuccess:function(){var t=this.container.querySelector(ic),e=this.container.querySelector(oc);t&&e.classList.remove(“hide”)},onUnload:function(){}}),ac.prototype.build=function(t,e,n){if(“object”!=typeof t)throw new TypeError(t+" is not a object.“);if(“object”!=typeof e)throw new TypeError(e+” is not a object.“);var r=t.getAttribute(“data-default”);if(n=n||{},t.innerHTML=this.countryOptions,t.value=r,r&&sc(t,r)){var i=cc(t,e,r);n.onCountryChange&&n.onCountryChange(i,e,t)}t.addEventListener(“change”,(function(r){var i=r.target,o=i.value,a=cc(i,e,o);n.onCountryChange&&n.onCountryChange(a,e,t)})),n.onProvinceChange&&e.addEventListener(“change”,n.onProvinceChange)};var uc=”[data-address]“,lc=”[data-address-toggle]“,dc=”[data-address-country]“,hc=”[data-address-province]“,fc=”[data-address-province-wrapper]“,pc=”[data-address-form]“,mc=”[data-address-delete-form]“;pe(“addresses”,{onLoad:function(){var t=this,e=this.container.querySelectorAll(uc);if(e.length){var n=new ac(window.theme.allCountryOptionTags);e.forEach((function(e){t._initializeAddressForm(n,e)}))}},_initializeAddressForm:function(t,e){var n=e.querySelector(dc),r=e.querySelector(hc),i=e.querySelector(fc),o=e.querySelector(pc),a=e.querySelector(mc);t.build(n,r,{onCountryChange:function(t){return i.classList.toggle(“hide”,!t.length)}}),e.querySelectorAll(lc).forEach((function(t){t.addEventListener(“click”,(function(){o.classList.toggle(“hide”)}))})),a&&a.addEventListener(“submit”,(function(t){var e=a.getAttribute(“data-confirm-message”);window.confirm(e||“Are you sure you wish to delete this address?”)||t.preventDefault()}))},onUnload:function(){}}),pe(“page”,{onLoad:function(){},onUnload:function(){}});var gc=”[data-js-toggle]“;if(pe(“password”,{onLoad:function(){var t=this;this.toggleButton=this.container.querySelector(gc),this.toggleButton.addEventListener(“click”,(function(e){return t.toggleView(e)}))},onUnload:function(){var t=this;this.toggleButton.removeEventListener(“click”,(function(e){return t.toggleView(e)}))},toggleView:function(t){t.preventDefault(),this.container.classList.toggle(“welcome”)}}),document.addEventListener(“DOMContentLoaded”,(function(){a(”*“),ce().then((function(t){H({cart:t});var e=document.querySelector(”[data-cart-drawer]“);Pe(e)}))})),window.SHA=“unknown”,!0===Shopify.designMode)document.documentElement.classList.add(“theme-editor”);else{var vc=document.querySelector(”.theme-editor-scroll-offset");vc&&vc.remove()}var yc=document.querySelectorAll(“.accordion”);function bc(t){9===t.keyCode&&(document.body.classList.add(“user-is-tabbing”),window.removeEventListener(“keydown”,bc),window.addEventListener(“mousedown”,wc))}function wc(){document.body.classList.remove(“user-is-tabbing”),window.removeEventListener(“mousedown”,wc),window.addEventListener(“keydown”,bc)}yc.length&&yc.forEach((function(t){C(t)})),$(document.querySelector(“.header-container”)),tt(document.querySelector(“[data-header-overlay]”)),it(document.querySelector(“[data-drawer-overlay]”)),Me(document.querySelector(“[data-modal]”)),Fe(document.querySelector(“[data-store-availability-drawer]”)),window.addEventListener(“keydown”,bc);var _c=function(){var t=document.querySelector(“meta[name=viewport]”);if(null!==t){var e=t.getAttribute(“content”),n=/maximum-scale=[0-9.]+/g;e=n.test(e)?e.replace(n,“maximum-scale=1.0”):[e,“maximum-scale=1.0”].join(", "),t.setAttribute(“content”,e)}};/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&_c(),document.querySelectorAll(“table”).forEach((function(t){var e=document.createElement(“div”);e.classList.add(“rte-table”),t.parentNode.insertBefore(e,t),e.appendChild(t)}))}]);"
i hope it will work,
Thank you