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 />", { |