Cross-print Cotton Shorts
${function() {
const variantData = data.variant || {"id":"370dc7f3-23dc-4b33-afd2-6c2d1eb54d34","product_id":"6d408fc5-c8f8-45b2-9ac3-dbab345bcfe2","title":"gray-M","weight_unit":"g","inventory_quantity":999,"sku":"1772209312304091137","barcode":"","position":1,"option1":"gray","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2362381bbb845806388384ad96adcebf.jpeg","path":"2362381bbb845806388384ad96adcebf.jpeg","width":1313,"height":1678,"alt":"Cross-print Cotton Shorts Techwear Shop","aspect_ratio":0.7824791418355185},"wholesale_price":[{"price":19.95,"min_quantity":1}],"weight":"300","compare_at_price":"26.95","price":"19.95","retail_price":"26.95","available":true,"url":"\/products\/cross-print-cotton-shorts?variant=370dc7f3-23dc-4b33-afd2-6c2d1eb54d34","available_quantity":999999999,"options":[{"name":"Color","value":"gray"},{"name":"Size","value":"M"}],"off_ratio":26,"flashsale_info":[],"sales":6};
const saveType = "percentage";
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":"370dc7f3-23dc-4b33-afd2-6c2d1eb54d34","product_id":"6d408fc5-c8f8-45b2-9ac3-dbab345bcfe2","title":"gray-M","weight_unit":"g","inventory_quantity":999,"sku":"1772209312304091137","barcode":"","position":1,"option1":"gray","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2362381bbb845806388384ad96adcebf.jpeg","path":"2362381bbb845806388384ad96adcebf.jpeg","width":1313,"height":1678,"alt":"Cross-print Cotton Shorts Techwear Shop","aspect_ratio":0.7824791418355185},"wholesale_price":[{"price":19.95,"min_quantity":1}],"weight":"300","compare_at_price":"26.95","price":"19.95","retail_price":"26.95","available":true,"url":"\/products\/cross-print-cotton-shorts?variant=370dc7f3-23dc-4b33-afd2-6c2d1eb54d34","available_quantity":999999999,"options":[{"name":"Color","value":"gray"},{"name":"Size","value":"M"}],"off_ratio":26,"flashsale_info":[],"sales":6};
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 `
`;
}()}