The 4-2-4 Method - Magic Touch for your skin (2024)

The 4-2-4 Method - Magic Touch for your skin (1)<\/img><\/div>

After {{{billingCycleBlock}}} orders, get a FREE {{freeProductName}} <\/span><\/div>

{{\/isDiscountTypeFreeProduct}}{{#isDiscountTypePercentage}}After {{{billingCycleBlock}}}<\/span> order<\/span>, get {{{discount}}}% OFF<\/span><\/span>. Subscribers in DE, AU and UK only, receive FREE delivery.<\/strong>{{\/isDiscountTypePercentage}}{{#isDiscountTypeShipping}}After {{{billingCycleBlock}}}<\/span> order<\/span>, get shipping at {{{formatDiscountedPrice}}}<\/span><\/span>{{\/isDiscountTypeShipping}}{{#isDiscountTypeFixed}}After {{{billingCycleBlock}}}<\/span> order<\/span>, get {{{formatDiscountedPrice}}} OFF<\/span><\/span>.{{\/isDiscountTypeFixed}}\",\"appstle.subscription.wg.unsubscribeFrequencyTextV2\":\"unsubscribe\",\"appstle.subscription.wg.oneTimeFrequencyTextV2\":\"One Time\",\"appstle.subscription.wg.dayFrequencyTextV2\":\"day\",\"appstle.subscription.wg.allowFulfilmentCountViaPropertiesV2\":\"true\",\"appstle.subscription.wg.monthsFrequencyTextV2\":\"Months\",\"appstle.subscription.wg.manageSubscriptionButtonTextV2\":\"Manage Subscription\",\"appstle.subscription.wg.offFrequencyTextV2\":\"Off\",\"appstle.subscription.wg.yearFrequencyTextV2\":\"Year\",\"appstle.subscription.wg.prepayLabelTextV2\":\"Prepay\",\"appstle.subscription.wg.selectDeliverOptionV2\":\"select deliver option\",\"appstle.subscription.wg.yearlyLabelTextV2\":\"Yearly\"}", "css": { "appstle_subscription_widget": { "margin-top": "" , "margin-bottom": "", }, "appstle_subscription_wrapper": { "border-width": "", "border-color": "#c65238", }, "appstle_circle": { "border-color": "#000000", }, "appstle_dot": { "background-color": "#000000", }, "appstle_select": { "padding-top": "", "padding-bottom": "", "padding-left": "", "padding-right": "", "border-width": "0px", "border-style": "none", "border-color": "#000000", "border-radius": "0", }, "tooltip_subscription_svg": { "fill": "#c65238", }, "appstle_tooltip": { "color": "#000000", "background-color": "#ffffff", }, "appstle_tooltip_border_top_color": { "border-top-color": "#ffffff", }, "appstle_subscription_final_price": { "color": "", }, "appstle_widget_text_color": { "color": "#000000", }, "appstle_selected_background": { "background": "transparent", }, "elementCSS": "[]", "customCSS": "\n.appstle_tooltip_content {\nbackground-color: white!important;\n}\n\n.appstle_subscription_wrapper{\nborder-radius: 33px!important;\n}\n#appstle_subscription_widget0 .appstle_subscription_wrapper {\nbackground-color: white;\n}\n.appstle-loyalty-billing-cycle-count {\ncolor:black!important;\n}\n\n#appstle_subscription_widget0 .tooltip_subscription_svg{\n fill: #9E422D !important;\n}\n\n#appstle_subscription_widget0 .appstle_subscription_wrapper {\n border-color: #9E422D !important;\n}\n", "customerPortalCss": ".h1, h2, h3, h4, h5, h6 {\nfont-family: \"MONOTYPE BODONI\" !important;\n}\n\n.as-bg-indigo-600 {\n background-color: #9E422D !important;\n}\n.as-text-indigo-600{\ncolor: #FFFFFF !important;\n}\n.as-text-blue-500 {\n color: black!important;\n}\n\n.as-text-sm\n.as-stroke-indigo-500{\nstroke: #9E422D !important;\n}\n.as-edit-product-cta{\ncolor: #9E422D !important;\n}\n\n", } }; sessionStorage['appstleSubscriptionConfig'] = JSON.stringify(RS.Config); var _RSConfig = _RSConfig || {}; _RSConfig.shop = 'naya-glow.myshopify.com'; _RSConfig.shopMoneyFormat = '€{{amount_with_comma_separator}}'; _RSConfig.shopMoneyFormatWithCurrencyFormat = '€{{amount_with_comma_separator}} EUR'; }

`; document.querySelector("body").insertAdjacentHTML("beforeend", mainHTMLString); window.addEventListener("message", appstleLoyaltyIframeListener, false); function appstleLoyaltyIframeListener(event) { if (event?.data && typeof event?.data.indexOf === "function" && event?.data?.indexOf("appstle_message_to_redirect_to_account") !== -1) { window.location.href = "https://" + window.location.host + "/account"; } else if (event?.data && typeof event?.data.indexOf === "function" && event?.data?.indexOf("appstle_message_to_redirect_to_signup") !== -1) { window.location.href = "https://" + window.location.host + "/account/register"; } else if (event?.data && typeof event?.data.indexOf === "function" && event?.data?.indexOf("appstle_message_to_redirect_to_after_copied_discount_redirect_url") !== -1) { window.location.href = "https://" + window.location.host + _ALConfig?.widget_setting?.afterCopiedDiscountRedirectUrl; } else if (event?.data && typeof event?.data.indexOf === "function" && event?.data?.indexOf("appstle_message_to_apply_discount") !== -1) { var discountCode = (event.data.split("|"))[1]; var discountURL = location.origin + "/discount/" + discountCode; fetch(discountURL).then(res => { if (res.ok) { console.log("Discount Code Applied"); } else { console.log("Discount Code NOT Applied"); } }); } else if (event?.data && typeof event?.data.indexOf === "function" && event?.data?.indexOf("appstle_message_for_notification") !== -1) { var message = event?.data?.split("|")[1]; showAppstleLoyaltyToaster(message); } else if (event?.data && typeof event?.data.indexOf === "function" && event?.data?.indexOf("appstle_message_for_showWidget") !== -1) { toggleWidgetNow(); } else if (event?.data && typeof event?.data.indexOf === "function" && event?.data?.indexOf("appstle_widget_showHide") !== -1) { document.querySelector("#appstle-loyalty-button").classList.remove("appstle-loyalty-hidden"); toggleWidget(); } else if (event?.data && typeof event?.data.indexOf === "function" && event?.data?.indexOf("appstle_message_to_redirect_to_custom_url") !== -1) { if(_ALConfig?.widget_setting?.createAccountLink){ window.location.href = "https://" + window.location.host + _ALConfig?.widget_setting?.createAccountLink; } } } function removeAppstleLoyaltyWidget() { document.querySelector("#appstle-loyalty-button").classList.add("appstle-loyalty-hidden"); document.querySelector("#appstle_loyalty_iframe").classList.add("appstle-loyalty-hidden"); } function checkForWidgetRestrictions() { let isShowWidget = true; if (_ALConfig?.widget_setting?.allowedCustomersTag?.length) { let allowedTags = _ALConfig?.widget_setting?.allowedCustomersTag.split(","); if (allowedTags?.length > 0 && !_ALConfig?.customerTags?.some((tags) => allowedTags?.includes(tags))) { isShowWidget = false; } } if (_ALConfig?.widget_setting?.restrictedCustomersTag?.length && isShowWidget) { let restrictedTags = _ALConfig?.widget_setting?.restrictedCustomersTag?.split(","); if (restrictedTags?.length > 0 && _ALConfig?.customerTags?.some((tags) => restrictedTags?.includes(tags))) { isShowWidget = false; } } if (_ALConfig?.widget_setting?.blockWidgetOnPages?.length && isShowWidget) { let restrictedPages = _ALConfig?.widget_setting?.blockWidgetOnPages?.split(","); const currentPage = window?.location?.pathname; if (restrictedPages?.length > 0) { if (restrictedPages?.includes("/homepage") && currentPage === "/") { isShowWidget = false; } else if (restrictedPages?.some((page) => currentPage?.includes(page))) { isShowWidget = false; } } } if (isShowWidget) { showAppstleLoyaltyWidget(); } else { removeAppstleLoyaltyWidget(); } } checkForWidgetRestrictions(); let appstleRefferalUrl = new URL(window.location.href); let searchParams = new URLSearchParams(appstleRefferalUrl.search); let referralPage = searchParams.get("appstle_referral"); if (referralPage) { document.querySelector("#appstle_loyalty_iframe").classList.add("open"); document.querySelector("#appstle_loyalty_iframe").classList.remove("appstle-loyalty-hidden"); setTimeout(function() { document.querySelector("#appstle_loyalty_iframe").classList.toggle("show-close-icon"); }, 900); } if (window?.location?.hash?.indexOf("#appstle-refer") !== -1) { handleDeepLink(); } function handleDeepLink() { document.querySelector("#appstle_loyalty_iframe").classList.toggle("open"); showAppstleLoyaltyWidget(); setTimeout(function() { document.querySelector("#appstle_loyalty_iframe").classList.toggle("show-close-icon"); }, 900); } function showAppstleLoyaltyWidget() { document.querySelector("#appstle-loyalty-button").classList.remove("appstle-loyalty-hidden"); document.querySelector("#appstle_loyalty_iframe").classList.remove("appstle-loyalty-hidden"); } function toggleWidget() { if (_ALConfig?.widget_setting?.widgetType?.toUpperCase() === "LAUNCHER" && _ALConfig?.widget_setting?.forceRedirectDedicatedPage === true) { window.open(`/${_ALConfig?.proxy_path_prefix}`); } else { document.querySelector("#appstle_loyalty_iframe").classList.toggle("open"); showAppstleLoyaltyWidget(); setTimeout(function() { document.querySelector("#appstle_loyalty_iframe").classList.toggle("show-close-icon"); }, 900); } } function toggleWidgetNow() { if (location?.hash?.indexOf("#appstle-loyalty") !== -1 && _ALConfig.widget_setting.showWidget) { toggleWidget(); } } document.querySelector(".appstle-loyalty-button").addEventListener("click", toggleWidget); if (_ALConfig?.widget_setting?.widgetPosition === "LEFT") { document.getElementById("appstle_loyalty_iframe").classList.add("appstle-loyalty-left"); document.querySelector(".appstle-loyalty-button").classList.add("appstle-loyalty-left"); document.getElementById("appstle_loyalty_iframe").classList.add("appstle-loyalty-left"); document.getElementById("snackbar").classList.add("left_snackbar"); } else { document.getElementById("appstle_loyalty_iframe").classList.add("appstle-loyalty-right"); document.querySelector(".appstle-loyalty-button").classList.add("appstle-loyalty-right"); document.getElementById("snackbar").classList.add("right_snackbar"); } document.getElementById("loyalty-widget-title").innerHTML = _ALConfig?.widget_setting?.widgetTitle || "Appstle Loyalty"; const alIframeSrc = "" + " " + "

" + "" + "body" + ">" + ""; addEventListener("load", (event) => { var iframe = document.querySelectorAll("#appstle_loyalty_iframe"); iframe.forEach(function(item) { item.contentWindow._ALConfig = _ALConfig; item.contentWindow.document.open("text/html", "replace"); item.contentWindow.document.write(alIframeSrc); item.contentWindow.document.close(); }); }); const alDOMObserver = new MutationObserver(function(mutations_list) { mutations_list.forEach(function(mutation) { mutation.addedNodes.forEach(function(added_node) { if(added_node.id == "appstle_loyalty_iframe") { var iframe = document.querySelectorAll("#appstle_loyalty_iframe"); iframe.forEach(function(item) { item.contentWindow._ALConfig = _ALConfig; item.contentWindow.document.open("text/html", "replace"); item.contentWindow.document.write(alIframeSrc); item.contentWindow.document.close(); }); alDOMObserver.disconnect(); } }); }); }); alDOMObserver.observe(document.querySelector("body"), { subtree: true, childList: true }); if (_ALConfig?.customerLoyalty && _ALConfig?.customerLoyalty?.availablePoints) { document.querySelector("#appstle-loyalty-button").classList.add("appstle_show_points"); document.querySelector(".loyalty_widget_available_points").innerHTML = _ALConfig?.customerLoyalty?.availablePoints?.toLocaleString(); } let index = 0; function showAppstleLoyaltyToaster(msg) { var snackBar = document.getElementById("snackbar"); snackBar.classList.add("show"); snackBar.insertAdjacentHTML("beforeend", `

`); const el = index; setTimeout(function() { if (document.getElementById(`elem${el}`)) document.getElementById(`elem${el}`).remove(); }, 5000); index++; } // showAppstleLoyaltyToaster("Test message"); function closeSnackBar(el) { document.getElementById(el).remove(); } function initiateAppstleLoyaltyPage() { if (document.querySelector("#appstleLoyaltyPage")) { const appstleLoyaltyPageElement = document.getElementById("appstleLoyaltyPage"); while (appstleLoyaltyPageElement.firstChild) { appstleLoyaltyPageElement.firstChild.remove(); } var s = document.createElement("script"); s.setAttribute("src", "https://loyalty-admin.appstle.com/app/loyalty-widget.bundle.js?v=1710590277947"); s.setAttribute("defer", "defer"); document.body.appendChild(s); var head = document.head; var link = document.createElement("link"); link.type = "text/css"; link.rel = "stylesheet"; link.href = "https://loyalty-admin.appstle.com/content/loyalty-widget.css?v=1710590277947"; head.appendChild(link); } else { setTimeout(() => { initiateAppstleLoyaltyPage(); }, 2000); } } initiateAppstleLoyaltyPage();

The 4-2-4 Method - Magic Touch for your skin (2024)
Top Articles
Latest Posts
Article information

Author: Geoffrey Lueilwitz

Last Updated:

Views: 6222

Rating: 5 / 5 (80 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Geoffrey Lueilwitz

Birthday: 1997-03-23

Address: 74183 Thomas Course, Port Micheal, OK 55446-1529

Phone: +13408645881558

Job: Global Representative

Hobby: Sailing, Vehicle restoration, Rowing, Ghost hunting, Scrapbooking, Rugby, Board sports

Introduction: My name is Geoffrey Lueilwitz, I am a zealous, encouraging, sparkling, enchanting, graceful, faithful, nice person who loves writing and wants to share my knowledge and understanding with you.