<% console.log(cart) %>
<% for (var i = 0; i < cart.items.length; i++ ) {
var str = cart.items[i].text;
var n = str.startsWith("Printing Order");
if (n) {
w = i;
lg = 0;
for (var j = 0; j < cart.items[w].items.length; j++ ) {
var strs = cart.items[w].items[j].text;
var o = strs.startsWith("5x5");
var p = strs.startsWith("8x8");
var q = strs.startsWith("11x11");
var r = strs.startsWith("20x24");
var splitstring = strs.split('x');
var size = parseFloat(splitstring[0]);
if (size > lg) {
lg = size;
}}
if (lg == 4) {
$("#featured").show();
$("#4x6").show();
}
else if (lg == 3.5) {
$("#featured").show();
$("#3.5x5").show();
}
else if (lg == 4) {
$("#featured").show();
$("#4x6").show();
}
else if (lg == 5 && o == true) {
$("#featured").show();
$("#5x5").show();
}
else if (lg == 5 && o == false) {
$("#featured").show();
$("#5x7").show();
}
else if (lg == 7) {
$("#featured").show();
$("#7x7").show();
}
else if (lg == 8 && p == true) {
$("#featured").show();
$("#8x8").show();
}
else if (lg == 8 && p == false) {
$("#featured").show();
$("#8x10").show();
}
else if (lg == 8.5) {
$("#featured").show();
$("#8.5x11").show();
}
else if (lg == 11 && q == true) {
$("#featured").show();
$("#11x11").show();
}
else if (lg == 11 && q == false) {
$("#featured").show();
$("#11x14").show();
}
else if (lg == 12) {
$("#featured").show();
$("#12x16").show();
}
else if (lg == 16) {
$("#featured").show();
$("#16x20").show();
}
else if (lg == 18) {
$("#featured").show();
$("#18x24").show();
}
else if (lg == 20 && r == true) {
$("#featured").show();
$("#20x24").show();
}
else if (lg == 20 && r == false) {
$("#featured").show();
$("#20x30").show();
}
window.dispatchEvent(new CustomEvent('resize'));}
} %>