<% for (var i=0; i < bundleOptions.length; i++) { var eachOption = bundleOptions[i]; %>
<% var requiredClass = ""; if (eachOption.required == 1) { requiredClass = "required-entry"; %>
<% if ((i+1) < bundleOptions.length) { %>
<% } else { %>
<% } %>
<% let selected = false; let selectedQty = 0; if (eachOption.type == "select") { %> <% } %> <% if (eachOption.type == "multi") { %> <% } %> <% if (eachOption.type == "radio") { %>
    <% if (requiredClass == "") { %>
  • radio_button_unchecked
  • <% } for (var k = 0; k < eachOption.optionValues.length; k++) { var optionValues = eachOption.optionValues[k]; selected = (optionValues.isDefault == "1") ? true : false; var optionTitle = optionValues.title; if (optionValues.price > 0) { optionTitle += " + "+self.formatCurrency(optionValues.price)+""; } if (selected) { selectedQty = optionValues.defaultQty; %>
  • radio_button_checked
  • <% } else { %>
  • radio_button_unchecked
  • <% } %> <% } %>
<% } %> <% if (eachOption.type == "checkbox") { %>
    <% for (var l = 0; l < eachOption.optionValues.length; l++) { var optionValues = eachOption.optionValues[l]; selected = (optionValues.isDefault == "1") ? true : false; var optionTitle = optionValues.title; if (optionValues.price > 0) { optionTitle += " + "+self.formatCurrency(optionValues.price)+""; } var price = optionValues.price; if (parseFloat(optionValues.defaultQty)) { price = (optionValues.price * parseFloat(optionValues.defaultQty)); } if (selected) { %>
  • check_box
  • <% } else { %>
  • check_box_outline_blank
  • <% } %> <% } %>
<% } %>
<% if ((eachOption.type == "select" || eachOption.type == "radio")) { %>
remove_circle_outline add_circle_outline
<% } %>
<% } %>