${(function() {
if (!data || !data.value) return '';
const searchEmptyLang = "Your search for \"_NAME\" did not yield any results.".replace('_NAME', data.value);
return `
Please refer to the sizing chart as a guide when ordering your apparel and shoes. Have more questions about sizing? Please feel free to email us at service@pelilys.com
${function() {
var selectedVariant = null;
selectedVariant = data.variants.find(v => v.available) || data.variants[0];
if (!!selectedVariant) {
return `
`;
}
return `
-
`;
}()}
Quantity
-
${function() {
const variantNames = [] || [];
const variantStyle = "button";
let thumbSwitchName = '';
return (data.product.options || []).map((option, index) => {
const optionName = option.name || '';
const position = `option${index + 1}`;
let isThumbImage = false;
if (data.product.need_variant_image && thumbSwitchName == '') {
for (let i = 0, len = variantNames.length; i < len; i++) {
const name = variantNames[i].toLowerCase();
if (name == optionName.toLowerCase()) {
isThumbImage = true;
thumbSwitchName = name;
break;
}
}
}
return (variantStyle == 'button' || isThumbImage) ? `