New Product Promotion 50% OFF ๐ Serenity Backless Maxi Dress
${function() {
const variantData = data.variant || {"id":"8f0e73b9-c116-434a-840a-5915def97a86","product_id":"15b0a7b5-1c6f-4fd6-930a-eec70013edc8","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":7,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b1616bd82620c3baaba5fd4dcc9b4c7a.jpg","path":"b1616bd82620c3baaba5fd4dcc9b4c7a.jpg","width":787,"height":788,"alt":"","aspect_ratio":0.998730964467005},"wholesale_price":[{"price":39.98,"min_quantity":1}],"weight":"0","compare_at_price":"70.99","price":"39.98","retail_price":"70.99","available":true,"url":"\/products\/new-product-promotion-50-off-\ud83c\udf1f-serenity-backless-maxi-dress-x2da?variant=8f0e73b9-c116-434a-840a-5915def97a86","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S"}],"off_ratio":44,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
black
${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:
S
${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}
`
}()}
Add to cart
$39.98
${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":"8f0e73b9-c116-434a-840a-5915def97a86","product_id":"15b0a7b5-1c6f-4fd6-930a-eec70013edc8","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":7,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b1616bd82620c3baaba5fd4dcc9b4c7a.jpg","path":"b1616bd82620c3baaba5fd4dcc9b4c7a.jpg","width":787,"height":788,"alt":"","aspect_ratio":0.998730964467005},"wholesale_price":[{"price":39.98,"min_quantity":1}],"weight":"0","compare_at_price":"70.99","price":"39.98","retail_price":"70.99","available":true,"url":"\/products\/new-product-promotion-50-off-\ud83c\udf1f-serenity-backless-maxi-dress-x2da?variant=8f0e73b9-c116-434a-840a-5915def97a86","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S"}],"off_ratio":44,"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":"8f0e73b9-c116-434a-840a-5915def97a86","product_id":"15b0a7b5-1c6f-4fd6-930a-eec70013edc8","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":7,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b1616bd82620c3baaba5fd4dcc9b4c7a.jpg","path":"b1616bd82620c3baaba5fd4dcc9b4c7a.jpg","width":787,"height":788,"alt":"","aspect_ratio":0.998730964467005},"wholesale_price":[{"price":39.98,"min_quantity":1}],"weight":"0","compare_at_price":"70.99","price":"39.98","retail_price":"70.99","available":true,"url":"\/products\/new-product-promotion-50-off-\ud83c\udf1f-serenity-backless-maxi-dress-x2da?variant=8f0e73b9-c116-434a-840a-5915def97a86","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"S"}],"off_ratio":44,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}