Skip to content

Instantly share code, notes, and snippets.

@makfruit
makfruit / ecwid_options_expander.html
Last active December 15, 2015 18:19
An HTML/Javascript code snippet for Ecwid to show/hide product options depending on a trigger(expander) option
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript">
/* An HTML/Javascript code snippet for Ecwid to show/hide product options depending on a trigger(expander) option */
if (typeof(Ecwid) == 'object') {
Ecwid.OnAPILoaded.add(function() {
var expanderOptionName = "Do_you_want_extra_options";
var expanderOptionFlagValue = "Yes";
function checkExpandableOptions() {