Printed Loose Casual Women's Dress
${function() {
const variantData = data.variant || {"id":"b399add5-6a32-42ab-b733-2da743a997c3","product_id":"1f1d0489-9e73-44d9-8bb1-0d7bdd211767","title":"GREEN-M(UK12-14)","weight_unit":"lb","inventory_quantity":993,"sku":"LF10249346LVSM","barcode":"","position":1,"option1":"GREEN","option2":"M(UK12-14)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1d84400ef1b9a4522d0697c41a3856a6.jpeg","path":"1d84400ef1b9a4522d0697c41a3856a6.jpeg","width":1634,"height":1920,"alt":"","aspect_ratio":0.8510416666666667},"wholesale_price":[{"price":41.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"41.99","retail_price":"0","available":true,"url":"\/products\/printed-loose-casual-womens-dresse49b9fce-3ad0-4d7a-baac-ec383782b396?variant=b399add5-6a32-42ab-b733-2da743a997c3","available_quantity":999999999,"options":[{"name":"COLOR","value":"GREEN"},{"name":"SIZE","value":"M(UK12-14)"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
GREEN
${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:
M(UK12-14)
${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
$41.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":"b399add5-6a32-42ab-b733-2da743a997c3","product_id":"1f1d0489-9e73-44d9-8bb1-0d7bdd211767","title":"GREEN-M(UK12-14)","weight_unit":"lb","inventory_quantity":993,"sku":"LF10249346LVSM","barcode":"","position":1,"option1":"GREEN","option2":"M(UK12-14)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1d84400ef1b9a4522d0697c41a3856a6.jpeg","path":"1d84400ef1b9a4522d0697c41a3856a6.jpeg","width":1634,"height":1920,"alt":"","aspect_ratio":0.8510416666666667},"wholesale_price":[{"price":41.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"41.99","retail_price":"0","available":true,"url":"\/products\/printed-loose-casual-womens-dresse49b9fce-3ad0-4d7a-baac-ec383782b396?variant=b399add5-6a32-42ab-b733-2da743a997c3","available_quantity":999999999,"options":[{"name":"COLOR","value":"GREEN"},{"name":"SIZE","value":"M(UK12-14)"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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":"b399add5-6a32-42ab-b733-2da743a997c3","product_id":"1f1d0489-9e73-44d9-8bb1-0d7bdd211767","title":"GREEN-M(UK12-14)","weight_unit":"lb","inventory_quantity":993,"sku":"LF10249346LVSM","barcode":"","position":1,"option1":"GREEN","option2":"M(UK12-14)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1d84400ef1b9a4522d0697c41a3856a6.jpeg","path":"1d84400ef1b9a4522d0697c41a3856a6.jpeg","width":1634,"height":1920,"alt":"","aspect_ratio":0.8510416666666667},"wholesale_price":[{"price":41.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"41.99","retail_price":"0","available":true,"url":"\/products\/printed-loose-casual-womens-dresse49b9fce-3ad0-4d7a-baac-ec383782b396?variant=b399add5-6a32-42ab-b733-2da743a997c3","available_quantity":999999999,"options":[{"name":"COLOR","value":"GREEN"},{"name":"SIZE","value":"M(UK12-14)"}],"off_ratio":0,"flashsale_info":[],"sales":1};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
`
}()}