Two-piece printed long-sleeves hoodie set
${function() {
const variantData = data.variant || {"id":"4a6e0f84-e3f7-443b-b22b-7899c108b902","product_id":"33ce1938-0ca5-4503-8ed6-a8f719c9a4c3","title":"Black-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2306292732-Black-S","barcode":"","position":5,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9e78b24f031d7e19eb8a8277e3c74be4.jpeg","path":"9e78b24f031d7e19eb8a8277e3c74be4.jpeg","width":1080,"height":1346,"alt":"","aspect_ratio":0.8023774145616642},"wholesale_price":[{"price":46.8,"min_quantity":1}],"weight":"0.7","compare_at_price":"46","price":"46.8","retail_price":"46","available":true,"url":"\/products\/two-piece-printed-long-sleeves-hoodie-set?variant=4a6e0f84-e3f7-443b-b22b-7899c108b902","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":0,"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":"4a6e0f84-e3f7-443b-b22b-7899c108b902","product_id":"33ce1938-0ca5-4503-8ed6-a8f719c9a4c3","title":"Black-S","weight_unit":"kg","inventory_quantity":0,"sku":"BL2306292732-Black-S","barcode":"","position":5,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9e78b24f031d7e19eb8a8277e3c74be4.jpeg","path":"9e78b24f031d7e19eb8a8277e3c74be4.jpeg","width":1080,"height":1346,"alt":"","aspect_ratio":0.8023774145616642},"wholesale_price":[{"price":46.8,"min_quantity":1}],"weight":"0.7","compare_at_price":"46","price":"46.8","retail_price":"46","available":true,"url":"\/products\/two-piece-printed-long-sleeves-hoodie-set?variant=4a6e0f84-e3f7-443b-b22b-7899c108b902","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":0,"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 `
`;
}()}