Top Item Of The Week
${function() {
var thumbSwitchName = '';
return (data.product.options || []).map((option, index) => {
const optionName = option.name || '';
const position = `option${index + 1}`;
var isThumbImage = false;
if (data.product.need_variant_image && thumbSwitchName === '') {
const variantNames = ["color"] || [];
for (let i = 0, len = variantNames.length; i < len; i++) {
const name = variantNames[i];
if (name === optionName) {
isThumbImage = true;
thumbSwitchName = name;
}
}
}
const variantType = "button";
const thumbStyle = "image_with_text";
const mouseEvent = isThumbImage ? ('single-product-variant-template-1664529798004-' + optionName + '.rerender(data=event);') : '';
return (variantType == 'dropdown' && !isThumbImage) ? `
` : `
${option.values.map(value => {
const selected = data.selectedValues[optionName] == value ? 'selected' : '';
let thumbImage = null;
if (isThumbImage) {
const variants = data.product.variants;
for (let i = 0, len = variants.length; i < len; i++) {
const variant = variants[i];
if (variant[position] == value && thumbImage == null) {
thumbImage = variant.image;
break;
}
}
}
return `
${value}
`;
}).join('')}
`;
}).join('')
}()}
${optionName.toLowerCase()}
${optionName.toLowerCase()}
${function() {
const product0 = Object.prototype.toString.call(data) == '[object Array]' ? data[0] : data;
return `
${product0.images.slice(0, 4).map(image => ` `).join('')}
`;
}()}
${product0.images.slice(1, 4).map((image, index) => `
`).join('')}
${product0.title}
Price
Quantity
${function() {
const product0 = Object.prototype.toString.call(data) == '[object Array]' ? data[0] : data;
return `
Product is unavailable.
Product was out of stock.
Ranger Cloak Waterproof(Buy 2 Freeshipping)
Price
$34.99
color
- ${data.eventName == 'mouseout' ? data.selectedOptions[0] : (data.targetOption || data.defaultValue || '')}
size
Small
Medium
Large
Big & Tall
Quantity
Product is unavailable.
Product was out of stock.