Vintage Floral Embroidered Linen Top
${function() {
const variantData = data.variant || {"id":"935e5d8e-d250-464a-99b0-6dc6aefa1e75","product_id":"cd2ee62c-5d7b-4fd6-aa34-e9ed692f2f2f","title":"green-M","weight_unit":"kg","inventory_quantity":200,"sku":"UR0498-green-M","barcode":"","position":1,"option1":"green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5847a15070c2adf3d5c17c12329d01af.jpeg","path":"5847a15070c2adf3d5c17c12329d01af.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.98,"min_quantity":1}],"weight":"0.26","compare_at_price":"38.98","price":"23.98","retail_price":"38.98","available":true,"url":"\/products\/womens-halloween-1978-printed-round-neck-long-sleeve-sweatshirt-30wq-rbj4-akxf-x6sz-3sab-fup8-unh7-kjad-e90u-wry4-h63g-xgk9-dmoi-36um-e3bk-gwvf?variant=935e5d8e-d250-464a-99b0-6dc6aefa1e75","available_quantity":200,"options":[{"name":"color","value":"green"},{"name":"size","value":"M"}],"off_ratio":38,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = false;
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
${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
$23.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":"935e5d8e-d250-464a-99b0-6dc6aefa1e75","product_id":"cd2ee62c-5d7b-4fd6-aa34-e9ed692f2f2f","title":"green-M","weight_unit":"kg","inventory_quantity":200,"sku":"UR0498-green-M","barcode":"","position":1,"option1":"green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5847a15070c2adf3d5c17c12329d01af.jpeg","path":"5847a15070c2adf3d5c17c12329d01af.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.98,"min_quantity":1}],"weight":"0.26","compare_at_price":"38.98","price":"23.98","retail_price":"38.98","available":true,"url":"\/products\/womens-halloween-1978-printed-round-neck-long-sleeve-sweatshirt-30wq-rbj4-akxf-x6sz-3sab-fup8-unh7-kjad-e90u-wry4-h63g-xgk9-dmoi-36um-e3bk-gwvf?variant=935e5d8e-d250-464a-99b0-6dc6aefa1e75","available_quantity":200,"options":[{"name":"color","value":"green"},{"name":"size","value":"M"}],"off_ratio":38,"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.
Sku : UR0498-green-M
Weight : 0.26kg
${function(){
const variantData = data.variant || {"id":"935e5d8e-d250-464a-99b0-6dc6aefa1e75","product_id":"cd2ee62c-5d7b-4fd6-aa34-e9ed692f2f2f","title":"green-M","weight_unit":"kg","inventory_quantity":200,"sku":"UR0498-green-M","barcode":"","position":1,"option1":"green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5847a15070c2adf3d5c17c12329d01af.jpeg","path":"5847a15070c2adf3d5c17c12329d01af.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.98,"min_quantity":1}],"weight":"0.26","compare_at_price":"38.98","price":"23.98","retail_price":"38.98","available":true,"url":"\/products\/womens-halloween-1978-printed-round-neck-long-sleeve-sweatshirt-30wq-rbj4-akxf-x6sz-3sab-fup8-unh7-kjad-e90u-wry4-h63g-xgk9-dmoi-36um-e3bk-gwvf?variant=935e5d8e-d250-464a-99b0-6dc6aefa1e75","available_quantity":200,"options":[{"name":"color","value":"green"},{"name":"size","value":"M"}],"off_ratio":38,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}