Vintage Cozy Pockets Knitted Art Casual Stylish Long Sleeve Sweater Coat
${function() {
const variantData = data.variant || {"id":"94f3d97a-8e2b-4db0-b054-78f7b738bee3","product_id":"08bf136c-3c8a-4cc2-8d30-b1614b427233","title":"Pink-S","weight_unit":"kg","inventory_quantity":1000,"sku":"XSZ0559-260924-10-3JFTBP6FHL-Pink-S","barcode":"","position":1,"option1":"Pink","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ce93d5f8c1c86f11cde7e5804bea7876.jpeg","path":"ce93d5f8c1c86f11cde7e5804bea7876.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"0","compare_at_price":"144.89","price":"28.99","retail_price":"144.89","available":true,"url":"\/products\/vintage-cozy-pockets-knitted-art-casual-stylish-long-sleeve-sweater-coat?variant=94f3d97a-8e2b-4db0-b054-78f7b738bee3","available_quantity":999999999,"options":[{"name":"color","value":"Pink"},{"name":"size","value":"S"}],"off_ratio":80,"flashsale_info":[],"sales":2};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
color:
Pink
${function(){
return `${data.value} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
size:
S
${function(){
return `${data.value} `;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$28.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":"94f3d97a-8e2b-4db0-b054-78f7b738bee3","product_id":"08bf136c-3c8a-4cc2-8d30-b1614b427233","title":"Pink-S","weight_unit":"kg","inventory_quantity":1000,"sku":"XSZ0559-260924-10-3JFTBP6FHL-Pink-S","barcode":"","position":1,"option1":"Pink","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ce93d5f8c1c86f11cde7e5804bea7876.jpeg","path":"ce93d5f8c1c86f11cde7e5804bea7876.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"0","compare_at_price":"144.89","price":"28.99","retail_price":"144.89","available":true,"url":"\/products\/vintage-cozy-pockets-knitted-art-casual-stylish-long-sleeve-sweater-coat?variant=94f3d97a-8e2b-4db0-b054-78f7b738bee3","available_quantity":999999999,"options":[{"name":"color","value":"Pink"},{"name":"size","value":"S"}],"off_ratio":80,"flashsale_info":[],"sales":2};
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":"94f3d97a-8e2b-4db0-b054-78f7b738bee3","product_id":"08bf136c-3c8a-4cc2-8d30-b1614b427233","title":"Pink-S","weight_unit":"kg","inventory_quantity":1000,"sku":"XSZ0559-260924-10-3JFTBP6FHL-Pink-S","barcode":"","position":1,"option1":"Pink","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ce93d5f8c1c86f11cde7e5804bea7876.jpeg","path":"ce93d5f8c1c86f11cde7e5804bea7876.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"0","compare_at_price":"144.89","price":"28.99","retail_price":"144.89","available":true,"url":"\/products\/vintage-cozy-pockets-knitted-art-casual-stylish-long-sleeve-sweater-coat?variant=94f3d97a-8e2b-4db0-b054-78f7b738bee3","available_quantity":999999999,"options":[{"name":"color","value":"Pink"},{"name":"size","value":"S"}],"off_ratio":80,"flashsale_info":[],"sales":2};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}