Cross-print Cotton Shorts
${function() {
const variantData = data.variant || {"id":"8bf5a953-c460-4998-981d-c263b064e8ee","product_id":"6d408fc5-c8f8-45b2-9ac3-dbab345bcfe2","title":"black-M","weight_unit":"g","inventory_quantity":999,"sku":"1772209312467668994","barcode":"","position":6,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/99820d9b8e04ff705fa08c0c466dc840.jpeg","path":"99820d9b8e04ff705fa08c0c466dc840.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=8bf5a953-c460-4998-981d-c263b064e8ee","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"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":"8bf5a953-c460-4998-981d-c263b064e8ee","product_id":"6d408fc5-c8f8-45b2-9ac3-dbab345bcfe2","title":"black-M","weight_unit":"g","inventory_quantity":999,"sku":"1772209312467668994","barcode":"","position":6,"option1":"black","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/99820d9b8e04ff705fa08c0c466dc840.jpeg","path":"99820d9b8e04ff705fa08c0c466dc840.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=8bf5a953-c460-4998-981d-c263b064e8ee","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"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 `
`;
}()}