Mini Warenkorb

  • Keine Artikel im Warenkorb.
if("undefined"==typeof scaaffCheck&&(scaaffCheck=!1),!scaaffCheck){function scaaff_is_installed(){for(var e=!1,a=document.getElementsByTagName("script"),t=0;t=0&&a[t].innerText.indexOf("sca_affiliate.js")>=0||o&&o.indexOf("shop=")>=0&&o.indexOf("sca_affiliate.js")>=0){console.log("already has scripttag, load AFF"),e=!0;break}}return e}if(scaaff_is_installed()){scaaffCheck=!0;var scaAppUrl="https://af.secomapp.com",scaCdn="https://d1639lhkj5l89m.cloudfront.net",scaLoadScript=function(e,a){var t=document.createElement("script");t.type="text/javascript",t.readyState?t.onreadystatechange=function(){"loaded"!=t.readyState&&"complete"!=t.readyState||(t.onreadystatechange=null,a())}:t.onload=function(){a()},t.src=e,document.getElementsByTagName("head")[0].appendChild(t)};function scaParseQueryString(e){for(var a=e.split("&"),t={},o=0;o0&&jQuerySCAAF(".scaaf-message-bar").remove();let e=null;"none"!==scaGetCookie("scaaf_afn")&&(e=scaGetCookie("scaaf_afn"));let a="Arial|Helvetica+Neue|Courier+New|Times+New+Roman|Comic+Sans+MS|Impact".split("|");if(null!=e){let t=null;if("none"!==scaGetCookie("scaaf_afc")&&(t=scaGetCookie("scaaf_afc")),null!=t&&"null"!=t||(t=""),null!=SCAAFMessageBar.referral_content&&""!=SCAAFMessageBar.referral_content){let o=SCAAFMessageBar.referral_font.replace(/\+/g," ");o=o.split(":"),-1==a.indexOf(SCAAFMessageBar.referral_font)&&jQuerySCAAF("head").append('');let r='
\n

"+SCAAFMessageBar.referral_content+"

\n
";r=(r=r.replace("{affiliate_name}",e)).replace("{company}",t),jQuerySCAAF("body").prepend(r)}}else if(1==SCAAFMessageBar.not_referral_enable&&null!=SCAAFMessageBar.not_referral_content&&""!=SCAAFMessageBar.not_referral_content){let e=SCAAFMessageBar.not_referral_font.replace(/\+/g," ");e=e.split(":"),-1==a.indexOf(SCAAFMessageBar.not_referral_font)&&jQuerySCAAF("head").append(''),jQuerySCAAF("body").prepend('
\n

"+SCAAFMessageBar.not_referral_content+"

\n
")}}}function scaPostClickTracking(e,a){e.sca_source=localStorage.getItem("scaaf_sca_source_secomus")||void 0,jQuerySCAAF.ajax({type:"POST",async:!1,url:scaAppUrl+"/api/click_tracking",crossDomain:!0,data:e,dataType:"json",success:function(e,t,o){"ok"==e.status?(localStorage.setItem("scaaf_tid",e.tid),localStorage.setItem("scaaf_ep",1e3*e.ep),scaSetCookie("scaaf_tid",e.tid,360),scaSetCookie("scaaf_ep",1e3*e.ep,360),scaSetCookie("scaaf_afn",e.afd.affiliate_name,e.afcookie),scaSetCookie("scaaf_afc",e.afd.company,e.afcookie),localStorage.setItem("scaaf_received","true"),scaGetCouponCode(),scaGenerateMessageBar()):clearInterval(a)},error:function(e,t,o){console.warn(e,t,o),clearInterval(a)}})}function scaPostCartToken(e,a){e.ug=navigator.userAgent,e.sca_source=localStorage.getItem("scaaf_sca_source_secomus")||void 0,jQuerySCAAF.ajax({type:"POST",async:!1,url:scaAppUrl+"/api/ctk",crossDomain:!0,data:e,dataType:"json",success:function(t,o,r){"ok"==t.status?(scaSetCookie("scaaf_tid",t.tid,360),localStorage.setItem("scaaf_tid",t.tid),localStorage.setItem("scaaf_ctk",e.ctk),scaSetCookie("scaaf_ctk",e.ctk,360),localStorage.setItem("scaaf_received","true")):clearInterval(a)},error:function(e,t,o){console.warn(e,t,o),clearInterval(a)}})}function restoreLocalStorage(e,a,t,o,r){localStorage.setItem("scaaf_aid",e),localStorage.setItem("scaaf_tid",a),localStorage.setItem("scaaf_c_c",t),localStorage.setItem("scaaf_ctk",o),localStorage.setItem("scaaf_ep",r),"none"!=scaGetCookie("scaaf_sca_source_secomus")&&localStorage.setItem("scaaf_sca_source_secomus",scaGetCookie("scaaf_sca_source_secomus"))}function scaPostCheckoutToken(){let e={aid:localStorage.getItem("scaaf_aid"),ct_tk:Shopify.Checkout.token,s:shopName,hc:localStorage.getItem("scaaf_hc"),order_id:Shopify.checkout.order_id};e.sca_source=localStorage.getItem("scaaf_sca_source_secomus")||void 0,jQuerySCAAF.ajax({type:"POST",async:!1,url:scaAppUrl+"/api/ct_tk",crossDomain:!0,data:e,dataType:"json",success:function(e,a,t){e.status},error:function(e,a,t){console.warn(e,a,t)}})}function scaPostAffiliatePurchase(e){var a=e.target;jQuerySCAAF(a).text("Loading...."),jQuerySCAAF(a).prop("disabled",!0),data={email:Shopify.checkout.email,first_name:Shopify.checkout.billing_address.first_name,last_name:Shopify.checkout.billing_address.last_name,shop:Shopify.shop},jQuerySCAAF.ajax({type:"POST",async:!0,url:scaAppUrl+"/api/post_affiliate_purchase",crossDomain:!0,data:data,dataType:"json",beforeSend:function(){jQuerySCAAF(a).text("Loading....")},success:function(e,a,t){if("ok"==e.status){let a='
',t='';jQuerySCAAF("#sca_result_wrapper").html(a),jQuerySCAAF("#sca_share").html(t),jQuerySCAAF("#sca_share").show()}},error:function(e,a,t){console.warn(e,a,t)}})}function scaShowPurchasePopup(e){jQuerySCAAF("head").append('');let a='
';jQuerySCAAF("body").append(a)}function scaCopyToClipboard(e){if(e="string"==typeof e?document.querySelector(e):e,navigator.userAgent.match(/ipad|ipod|iphone/i)){var a=e.contentEditable,t=e.readOnly;e.contentEditable=!0,e.readOnly=!0;var o=document.createRange();o.selectNodeContents(e);var r=window.getSelection();r.removeAllRanges(),r.addRange(o),e.setSelectionRange(0,999999),e.contentEditable=a,e.readOnly=t}else e.select();document.execCommand("copy")}function scaCopy(e,a){var t=document.getElementById(e),o=document.getElementById(a);scaCopyToClipboard(t),o.innerHTML="Copied",setTimeout(function(){o.innerHTML="Copy link"},1e3)}var shopName=scaGetShopName();function scaGetCouponCode(){"none"!==scaGetCookie("scaaf_aid")&&jQuerySCAAF.ajax({type:"GET",url:scaAppUrl+"/api/get_coupon",crossDomain:!0,data:{aid:scaGetCookie("scaaf_aid")},dataType:"json",success:function(e,a,t){if("ok"==e.status){var o=e.coupon,r=encodeURI("/discount/"+o);r=r.replace("#","%2523"),jQuerySCAAF("body").prepend('')}}})}function scaTrackFbPixel(){var e=scaGetCookie("scaaf_aid"),a=Shopify.shop;console.log(e),"none"!==e&&a&&jQuerySCAAF.ajax({type:"GET",url:scaAppUrl+"/api/get_fb_pixel",crossDomain:!0,data:{aff_id:scaGetCookie("scaaf_aid"),shop:a},dataType:"json",success:function(e,a,t){if("ok"==e.status){var o=e.pixel;fbq("init",o),fbq("trackSingle",o,"PageView"),"undefined"!=typeof Shopify&&Shopify.checkout&&fbq("trackSingle",o,"Purchase",{value:Shopify.checkout.total_price,currency:Shopify.checkout.currency}),"undefined"!=typeof Shopify&&Shopify.Checkout&&"contact_information"===Shopify.Checkout.step&&fbq("trackSingle",o,"InitiateCheckout",{currency:Shopify.checkout.currency,value:Shopify.checkout.estimatedPrice}),document.location.pathname.startsWith("/cart")&&fbq("trackSingle",o,"AddToCart")}}})}scaLoadScript("//code.jquery.com/jquery-3.0.0.min.js",function(){jQuerySCAAF=jQuery.noConflict(!0);var e=scaParseQueryString(window.location.search.substring(1)),a=localStorage.getItem("scaaf_tid"),t=(scaGetCookie("tracked_start_checkout"),navigator.userAgent);if(void 0!==e.sca_ref){var o=e.sca_ref.split("."),r={aid:o[0],hc:o[1],s:shopName,tid:a,ug:t},s=localStorage.getItem("scaaf_c_c"),i=(new Date).getTime();localStorage.setItem("scaaf_received","false"),localStorage.setItem("scaaf_aid",r.aid),localStorage.setItem("scaaf_hc",r.hc),localStorage.setItem("scaaf_c_c",i),void 0!==e.sca_source&&(localStorage.setItem("scaaf_sca_source_secomus",e.sca_source),scaSetCookie("scaaf_sca_source_secomus",e.sca_source,360)),scaSetCookie("scaaf_aid",r.aid,360),scaSetCookie("scaaf_c_c",i,360),null==s?scaPostClickTracking(r):i-s>6e4&&scaPostClickTracking(r),void 0!==e.sca_rib&&(window.location.href=e.sca_rib)}scaGetCouponCode(),scaGenerateMessageBar(),null!=localStorage.getItem("scaaf_aid")&&Shopify.Checkout&&Shopify.Checkout.token&&localStorage.getItem("scaaf_ep")>(new Date).getTime()&&scaPostCheckoutToken();var c,n,l,d,p,f,u=setInterval(function(){var e=localStorage.getItem("scaaf_ctk"),a=scaGetCookie("cart");if("none"!==a){if(null!=localStorage.getItem("scaaf_tid")&&null!=localStorage.getItem("scaaf_aid")){var o=localStorage.getItem("scaaf_ep");if(null!=o&&o<(new Date).getTime())return clearInterval(u),"";if(a!=e)scaPostCartToken({aid:localStorage.getItem("scaaf_aid"),tid:localStorage.getItem("scaaf_tid"),ctk:a,s:shopName},u)}else{var r=scaGetCookie("scaaf_tid"),s=scaGetCookie("scaaf_aid");if("none"!==r&&"none"!==s){var i=scaGetCookie("scaaf_ctk");restoreLocalStorage(s,r,scaGetCookie("scaaf_c_c"),i,scaGetCookie("scaaf_ep"))}}if("false"==localStorage.getItem("scaaf_received"))scaPostClickTracking({aid:localStorage.getItem("scaaf_aid"),hc:localStorage.getItem("scaaf_hc"),s:shopName,tid:localStorage.getItem("scaaf_tid"),ug:t},u)}},1e3);Shopify.Checkout&&Shopify.checkout.email&&(jQuerySCAAF.ajax({type:"GET",url:scaAppUrl+"/api/purchase_popup/setting",crossDomain:!0,data:{shop:Shopify.shop,email:Shopify.checkout.email},dataType:"json",success:function(e,a,t){if("ok"==e.status){let a=e.settings;"none"!=scaGetCookie("sca_p_p_show_once")&&0!=a.show_only_once||(scaShowPurchasePopup(a.design),1==a.close_background_click&&(window.onclick=function(e){var a=document.getElementById("sca_modal_overlay");e.target==a&&(a.style.display="none")}),1==a.show_only_once&&scaSetCookie("sca_p_p_show_once",1,365))}},error:function(e,a,t){console.warn(e,a,t)}}),jQuerySCAAF(document).on("click",".sca_modal_close",function(){jQuerySCAAF("#sca_purchase_popup_modal_container").hide()})),c=window,n=document,l="script",c.fbq||(d=c.fbq=function(){d.callMethod?d.callMethod.apply(d,arguments):d.queue.push(arguments)},c._fbq||(c._fbq=d),d.push=d,d.loaded=!0,d.version="2.0",d.queue=[],(p=n.createElement(l)).async=!0,p.src="https://connect.facebook.net/en_US/fbevents.js",(f=n.getElementsByTagName(l)[0]).parentNode.insertBefore(p,f)),scaTrackFbPixel()})}}