Fishnet Dress
${function() {
const variantData = data.variant || {"id":"2ca69ed2-9c60-49dd-a942-9a1bf4e31bf0","product_id":"bbd44157-cb18-407d-875c-dbaf2985db7a","title":"Red-One Size","weight_unit":"kg","inventory_quantity":1000,"sku":"EM1425-RED-OS","barcode":"","position":1,"option1":"Red","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/39a73b87c77bfd33c81feadc5261aa45.jpeg","path":"39a73b87c77bfd33c81feadc5261aa45.jpeg","width":854,"height":1280,"alt":"Lovingerie - Fishnet Dress","aspect_ratio":0.6671875},"wholesale_price":[{"price":31,"min_quantity":1}],"weight":"0","compare_at_price":"51","price":"31","retail_price":"51","available":true,"url":"\/products\/fishnet-dress?variant=2ca69ed2-9c60-49dd-a942-9a1bf4e31bf0","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"One Size"}],"off_ratio":39,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
Red
${function(){
return `${data.value} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size:
One Size
${function(){
return `${data.value} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$31.00
${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":"2ca69ed2-9c60-49dd-a942-9a1bf4e31bf0","product_id":"bbd44157-cb18-407d-875c-dbaf2985db7a","title":"Red-One Size","weight_unit":"kg","inventory_quantity":1000,"sku":"EM1425-RED-OS","barcode":"","position":1,"option1":"Red","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/39a73b87c77bfd33c81feadc5261aa45.jpeg","path":"39a73b87c77bfd33c81feadc5261aa45.jpeg","width":854,"height":1280,"alt":"Lovingerie - Fishnet Dress","aspect_ratio":0.6671875},"wholesale_price":[{"price":31,"min_quantity":1}],"weight":"0","compare_at_price":"51","price":"31","retail_price":"51","available":true,"url":"\/products\/fishnet-dress?variant=2ca69ed2-9c60-49dd-a942-9a1bf4e31bf0","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"One Size"}],"off_ratio":39,"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":"2ca69ed2-9c60-49dd-a942-9a1bf4e31bf0","product_id":"bbd44157-cb18-407d-875c-dbaf2985db7a","title":"Red-One Size","weight_unit":"kg","inventory_quantity":1000,"sku":"EM1425-RED-OS","barcode":"","position":1,"option1":"Red","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/39a73b87c77bfd33c81feadc5261aa45.jpeg","path":"39a73b87c77bfd33c81feadc5261aa45.jpeg","width":854,"height":1280,"alt":"Lovingerie - Fishnet Dress","aspect_ratio":0.6671875},"wholesale_price":[{"price":31,"min_quantity":1}],"weight":"0","compare_at_price":"51","price":"31","retail_price":"51","available":true,"url":"\/products\/fishnet-dress?variant=2ca69ed2-9c60-49dd-a942-9a1bf4e31bf0","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"One Size"}],"off_ratio":39,"flashsale_info":[],"sales":0};
return `
`
}()}