Skip to content

You are not logged in.
'; } else { var baseUrl = Navigator.getBaseUrl(); var baseUrlWithLocale = Navigator.getBaseUrlWithLocale(); var urlLocale = Navigator.getUrlLocale(); var backLink = 'back=manage'; var sealKey = Navigator.getQueryParam('sealkey'); if (sealKey !== '') { backLink = 'back='+encodeURIComponent('manage/?sealkey='+sealKey); } for(var i = 0; i'; html += ''; html += '
'; } } $('.seal-subscriptions-list').html(html); $('[data-convert-time]').each(function(key, el) { if (typeof Shopify.locale === 'string') { $(el).html(DateTimeUtility.formatToLocale($(el).html(), Shopify.locale)); } else { $(el).html(DateTimeUtility.formatToLocale($(el).html())); } }); $('[data-seal-format-money]').each(function(key, el) { var value = $(el).attr('data-value')*1; var currency = $(el).attr('data-currency'); var locale = $(el).attr('data-locale'); var newFormat = MoneyUtility.formatMoney(value, currency, locale); if (typeof newFormat === 'string' && newFormat !== '') { $(el).html(newFormat); } }); } $(document).on('click', '.js-seal-clickable', function() { var href = $(this).find('a').first().attr('href'); if (typeof href !== 'undefined' && href.length > 0) { } }); var api = { getSubscriptions: function(customer_id, customer_email, customer_hash, customer_hash_2, magic_link_login, success, fail) { //var path = window.location.pathname; var data = {}; //data['path'] = path; data['shop'] = Shopify.shop; data['customer_id'] = customer_id; data['customer_email'] = customer_email; data['customer_hash'] = customer_hash; data['customer_hash_2'] = customer_hash_2; data['locale'] = this.getLocale(); data['magic_link_login'] = magic_link_login; var jqxhr = $.get("https://cdn-app.sealsubscriptions.com/shopify/public/proxy/api/get-subscriptions-v02.php", data, function(response) { success(response); }) .fail(function() { fail(); }); }, getLocale: function() { var locale = 'dflt'; // Shop locale should be set in Shopify.locale variable // If not, try to get it from the url if (typeof Shopify !== 'undefined' && typeof Shopify.locale !=='undefined') { locale = Shopify.locale; } return locale; } }; $(document).ready(function() { api.getSubscriptions(window.SealCustomer.customer_id, window.SealCustomer.customer_email, window.SealCustomer.customer_hash, window.SealCustomer.customer_hash_2, window.SealCustomer.magic_link_login, function(response) { Translator.setLocale(response.customer_locale); drawSubscriptions(response.subscriptions, response); translateAll(); }, function() { console.log('Something went wrong'); translateAll(); }); }); } var loadScript = function(url, callback){ var script = document.createElement("script") script.type = "text/javascript"; if (script.readyState){ //IE script.onreadystatechange = function(){ if (script.readyState == "loaded" || script.readyState == "complete"){ script.onreadystatechange = null; callback(); } }; } else { //Others script.onload = function(){ callback(); }; } script.src = url; document.getElementsByTagName("head")[0].appendChild(script); }; // Always load our jQuery as there are some strange jQuery versions where nothing is working anymore. //if ((typeof jQuery === 'undefined') || (parseFloat(jQuery.fn.jquery)
Close (esc)

Popup

Use this popup to embed a mailing list sign up form. Alternatively use it as a simple call to action with a link to a product or a page.

Age verification

By clicking enter you are verifying that you are old enough to consume alcohol.

Search

Added to cart