Christmas Collection Snowflake Loose Jeans
${function() {
const variantData = data.variant || {"id":"857ef06f-fa00-4249-a960-d89f3a9d4c97","product_id":"d6e48fe1-54bd-4642-96e1-42edf4f159b6","title":"light blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221028937-light blue-S","barcode":"","position":7,"option1":"light blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/13e5a99bb9ec6fe923a7366ee07636c3.jpeg","path":"13e5a99bb9ec6fe923a7366ee07636c3.jpeg","width":600,"height":750,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":46.74,"min_quantity":1}],"weight":"0.55","compare_at_price":"57","price":"46.74","retail_price":"57","available":true,"url":"\/products\/christmas-collection-snowflake-loose-jeans?variant=857ef06f-fa00-4249-a960-d89f3a9d4c97","available_quantity":999999999,"options":[{"name":"color","value":"light blue"},{"name":"size","value":"S"}],"off_ratio":18,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"857ef06f-fa00-4249-a960-d89f3a9d4c97","product_id":"d6e48fe1-54bd-4642-96e1-42edf4f159b6","title":"light blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221028937-light blue-S","barcode":"","position":7,"option1":"light blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/13e5a99bb9ec6fe923a7366ee07636c3.jpeg","path":"13e5a99bb9ec6fe923a7366ee07636c3.jpeg","width":600,"height":750,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":46.74,"min_quantity":1}],"weight":"0.55","compare_at_price":"57","price":"46.74","retail_price":"57","available":true,"url":"\/products\/christmas-collection-snowflake-loose-jeans?variant=857ef06f-fa00-4249-a960-d89f3a9d4c97","available_quantity":999999999,"options":[{"name":"color","value":"light blue"},{"name":"size","value":"S"}],"off_ratio":18,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const postageFreeAmount = 69;
const custom_text = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}