${function() {
const variantData = data.variant || {"id":"227b1cb0-fb2f-4961-a182-ea245cd7e1f9","product_id":"04d798ac-ca80-4e86-be24-0a4a56af798c","title":"as picture-XS-170","weight_unit":"kg","inventory_quantity":10499,"sku":"","barcode":"","position":13,"option1":"as picture","option2":"XS","option3":"170","note":"","image":{"src":"\/\/img.staticdj.com\/806d99cc0af9ae14a545dbd6c3eaa6ec.webp","path":"806d99cc0af9ae14a545dbd6c3eaa6ec.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":42.79,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"42.79","retail_price":"0","available":true,"url":"\/products\/50s-vingtage-mid-length-dress-60s-elegant-women-a-line-pint-christmas-retro-dress-sleeveless-petticoats?variant=227b1cb0-fb2f-4961-a182-ea245cd7e1f9","available_quantity":999999999,"options":[{"name":"color","value":"as picture"},{"name":"size","value":"XS"},{"name":"Height","value":"170"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: as picture
${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}
`
}()}
Size
: XS
${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}
`
}()}
Height
: 170
${function(){
const optName = "Height";
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
$42.79
${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":"227b1cb0-fb2f-4961-a182-ea245cd7e1f9","product_id":"04d798ac-ca80-4e86-be24-0a4a56af798c","title":"as picture-XS-170","weight_unit":"kg","inventory_quantity":10499,"sku":"","barcode":"","position":13,"option1":"as picture","option2":"XS","option3":"170","note":"","image":{"src":"\/\/img.staticdj.com\/806d99cc0af9ae14a545dbd6c3eaa6ec.webp","path":"806d99cc0af9ae14a545dbd6c3eaa6ec.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":42.79,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"42.79","retail_price":"0","available":true,"url":"\/products\/50s-vingtage-mid-length-dress-60s-elegant-women-a-line-pint-christmas-retro-dress-sleeveless-petticoats?variant=227b1cb0-fb2f-4961-a182-ea245cd7e1f9","available_quantity":999999999,"options":[{"name":"color","value":"as picture"},{"name":"size","value":"XS"},{"name":"Height","value":"170"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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 {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"227b1cb0-fb2f-4961-a182-ea245cd7e1f9","product_id":"04d798ac-ca80-4e86-be24-0a4a56af798c","title":"as picture-XS-170","weight_unit":"kg","inventory_quantity":10499,"sku":"","barcode":"","position":13,"option1":"as picture","option2":"XS","option3":"170","note":"","image":{"src":"\/\/img.staticdj.com\/806d99cc0af9ae14a545dbd6c3eaa6ec.webp","path":"806d99cc0af9ae14a545dbd6c3eaa6ec.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":42.79,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"42.79","retail_price":"0","available":true,"url":"\/products\/50s-vingtage-mid-length-dress-60s-elegant-women-a-line-pint-christmas-retro-dress-sleeveless-petticoats?variant=227b1cb0-fb2f-4961-a182-ea245cd7e1f9","available_quantity":999999999,"options":[{"name":"color","value":"as picture"},{"name":"size","value":"XS"},{"name":"Height","value":"170"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}