Casual and comfortable street straight pile pile trousers and sweatpants
${function() {
const variantData = data.variant || {"id":"8d46fe0c-e0ba-4ac9-a4e0-b3c001be20c7","product_id":"78953d88-e586-4de9-ae30-5f0adc3231b0","title":"Black-S","weight_unit":"g","inventory_quantity":999,"sku":"XHKyZ81l9-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/01a9719cee184a9a95f0f7b923202958.jpeg","path":"01a9719cee184a9a95f0f7b923202958.jpeg","width":1345,"height":1345,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.89,"min_quantity":1}],"weight":"250","compare_at_price":"30","price":"23.89","retail_price":"30","available":true,"url":"\/products\/casual-and-comfortable-street-straight-pile-pile-trousers-and-sweatpants?variant=8d46fe0c-e0ba-4ac9-a4e0-b3c001be20c7","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":20,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = false;
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.
Sku : XHKyZ81l9-Black-S
Weight : 250g
${function(){
const variantData = data.variant || {"id":"8d46fe0c-e0ba-4ac9-a4e0-b3c001be20c7","product_id":"78953d88-e586-4de9-ae30-5f0adc3231b0","title":"Black-S","weight_unit":"g","inventory_quantity":999,"sku":"XHKyZ81l9-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/01a9719cee184a9a95f0f7b923202958.jpeg","path":"01a9719cee184a9a95f0f7b923202958.jpeg","width":1345,"height":1345,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.89,"min_quantity":1}],"weight":"250","compare_at_price":"30","price":"23.89","retail_price":"30","available":true,"url":"\/products\/casual-and-comfortable-street-straight-pile-pile-trousers-and-sweatpants?variant=8d46fe0c-e0ba-4ac9-a4e0-b3c001be20c7","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":20,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const postageFreeAmount = 79;
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 `
`;
}()}