${function() {
const variantData = data.variant || {"id":"94977ae6-52c1-43b9-a1fb-edce515f9b71","product_id":"d125755d-3304-4c3f-a8c4-bf06806692b4","title":"ADJUSTABLE STRAP-SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO","weight_unit":"kg","inventory_quantity":780,"sku":"ZY-ADJUSTABLE STRAP-SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO","barcode":"","position":1,"option1":"ADJUSTABLE STRAP","option2":"SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7223fb807305e1deb24fc19536ba6b22.jpeg","path":"7223fb807305e1deb24fc19536ba6b22.jpeg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"67.99","price":"33.99","retail_price":"67.99","available":true,"url":"\/products\/captivating-canvas-wig-bb-raquel-welch?variant=94977ae6-52c1-43b9-a1fb-edce515f9b71","available_quantity":999999999,"options":[{"name":"SIZE","value":"ADJUSTABLE STRAP"},{"name":"COLOR","value":"SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO"}],"off_ratio":50,"flashsale_info":[],"sales":76};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Size
: ADJUSTABLE STRAP
${function(){
const optName = "SIZE";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (': ' + optionValue) : '';
return `
${optionValueText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Color
: SHADED ICED CAFE MACCHIATO🔥AS SEEN ON VIDEO
${function(){
const optName = "COLOR";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (': ' + optionValue) : '';
return `
${optionValueText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$33.99
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"94977ae6-52c1-43b9-a1fb-edce515f9b71","product_id":"d125755d-3304-4c3f-a8c4-bf06806692b4","title":"ADJUSTABLE STRAP-SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO","weight_unit":"kg","inventory_quantity":780,"sku":"ZY-ADJUSTABLE STRAP-SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO","barcode":"","position":1,"option1":"ADJUSTABLE STRAP","option2":"SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7223fb807305e1deb24fc19536ba6b22.jpeg","path":"7223fb807305e1deb24fc19536ba6b22.jpeg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"67.99","price":"33.99","retail_price":"67.99","available":true,"url":"\/products\/captivating-canvas-wig-bb-raquel-welch?variant=94977ae6-52c1-43b9-a1fb-edce515f9b71","available_quantity":999999999,"options":[{"name":"SIZE","value":"ADJUSTABLE STRAP"},{"name":"COLOR","value":"SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO"}],"off_ratio":50,"flashsale_info":[],"sales":76};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
return `
`
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"94977ae6-52c1-43b9-a1fb-edce515f9b71","product_id":"d125755d-3304-4c3f-a8c4-bf06806692b4","title":"ADJUSTABLE STRAP-SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO","weight_unit":"kg","inventory_quantity":780,"sku":"ZY-ADJUSTABLE STRAP-SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO","barcode":"","position":1,"option1":"ADJUSTABLE STRAP","option2":"SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7223fb807305e1deb24fc19536ba6b22.jpeg","path":"7223fb807305e1deb24fc19536ba6b22.jpeg","width":1080,"height":1080,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.99,"min_quantity":1}],"weight":"0","compare_at_price":"67.99","price":"33.99","retail_price":"67.99","available":true,"url":"\/products\/captivating-canvas-wig-bb-raquel-welch?variant=94977ae6-52c1-43b9-a1fb-edce515f9b71","available_quantity":999999999,"options":[{"name":"SIZE","value":"ADJUSTABLE STRAP"},{"name":"COLOR","value":"SHADED ICED CAFE MACCHIATO\ud83d\udd25AS SEEN ON VIDEO"}],"off_ratio":50,"flashsale_info":[],"sales":76};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}