This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="https://d201eyh6wia12q.cloudfront.net" rel="preconnect" crossorigin /> | |
<link href="https://d3fi9i0jj23cau.cloudfront.net" rel="preconnect" crossorigin /> | |
<link href="https://dqzrr9k4bjpzk.cloudfront.net" rel="preconnect" crossorigin /> | |
<link href="https://ecwid-static-ru.gcdn.co" rel="preconnect" crossorigin /> | |
<link href="https://ecwid-images-ru.gcdn.co" rel="preconnect" crossorigin /> | |
<link href="https://app.multiscreenstore.com" rel="preconnect" crossorigin /> | |
<link rel="prefetch" href="https://app.multiscreenstore.com/script.js?<storeid>" /> | |
<link rel="prerender" href="<store page address>" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<script> | |
if (typeof(Ecwid) == 'object') { | |
Ecwid.OnAPILoaded.add(function() { | |
var preorderLabel = "Preorder"; | |
var preorderLink = "http://www.example.com/preorder.html"; | |
var preorderElmClass = "ecwid-preorder-link"; | |
var preorderElmID = "ecwid_preorder_link"; | |
var preorderInsertAfter = ".ecwid-productBrowser-details-optionsPanel"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
An HTML/JS snippet for Ecwid to add a size chart link to the product details panel | |
https://gist.github.com/makfruit/6571884/ | |
--> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
<script> | |
Ecwid.OnPageLoaded.add(function(page) { | |
if (page.type == 'PRODUCT') { | |
if (jQuery("#size_chart_link").length == 0) { | |
jQuery("<a />", { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
An HTML/JS snippet for Ecwid to display wholesale pricing block (bulk pricing) explanded by default on the product detail pages | |
Put this code after Ecwid integration code on your site | |
--> | |
<script src="https://code.jquery.com/jquery-1.11.3.js"></script> | |
<script type="text/javascript"> | |
Ecwid.OnPageLoaded.add(function(page){ | |
if (page.type == "PRODUCT") { | |
setTimeout( | |
function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Hide or show payment methods in Ecwid depending on the delivery methods selected | |
*/ | |
/*yepnope1.5.x|WTFPL*/ | |
(function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// A drop-in HTML/JS script for Ecwid to force logout after an order is placed | |
if (typeof(Ecwid) == 'object') { | |
Ecwid.OnPageLoaded.add(function(page) { | |
if ('ORDER_CONFIRMATION' == page.type) { | |
var localStoragePrefix = 'PSecwid__' + Ecwid.getOwnerId() + 'PS'; | |
var isLoggedIn = (localStorage.getItem(localStoragePrefix + 'token') != null); | |
if (isLoggedIn) { | |
var itemsToRemove = ['token','customerid','profile']; | |
for (var i = 0; i < itemsToRemove.length; i++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> | |
<script> | |
if (typeof(Ecwid) == 'object') { | |
Ecwid.OnAPILoaded.add(function() { | |
var preorderLabel = "Preorder"; | |
function checkPreorder() { | |
if ( | |
!jQuery(".ecwid-productBrowser-details-qtyAvailInfo").is(':visible') | |
&& jQuery(".ecwid-productBrowser-details-outOfStockLabel").length == 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- An HTML/Javascript code snippet for Ecwid to show a simple promo message popup on the cart page for orders less than the defined subtotal --> | |
<script> | |
if (typeof(Ecwid) == 'object') { | |
Ecwid.OnAPILoaded.add(function() { | |
var promoMessage = "Orders $99 and up ship free!"; | |
var minSubtotal = 99; | |
var checkSubtotal = function(order) { | |
if (order) { | |
var subtotal = order.total - order.shipping; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
An HTML/JS snippet for Ecwid to move category description under the subcategories/products listing | |
https://gist.github.com/makfruit/11148226 | |
Put this code after Ecwid integration code on your site | |
--> | |
<script src="//code.jquery.com/jquery.min.js"></script> | |
<script> | |
Ecwid.OnPageLoaded.add(function(page) { | |
if (page.type == 'CATEGORY') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table.ecwid-productBrowser-subcategories-mainTable img { | |
border-style: solid !important; | |
border: 2px solid #D8D8D8; | |
} |