Slim fit PU zippered straight-leg pants
${function() {
const variantData = data.variant || {"id":"da4b6d98-ea35-4b5d-b3b7-23429b1b0073","product_id":"0656aced-c300-4fc4-86dc-96c16714fbd1","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221020435-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4cd7f34140eed883a4f4715cdbfce88b.jpeg","path":"4cd7f34140eed883a4f4715cdbfce88b.jpeg","width":1015,"height":1350,"alt":"","aspect_ratio":0.7518518518518519},"wholesale_price":[{"price":36.45,"min_quantity":1}],"weight":"0.35","compare_at_price":"43.92","price":"36.45","retail_price":"43.92","available":true,"url":"\/products\/slim-fit-pu-zippered-straight-leg-pants?variant=da4b6d98-ea35-4b5d-b3b7-23429b1b0073","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":17,"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":"da4b6d98-ea35-4b5d-b3b7-23429b1b0073","product_id":"0656aced-c300-4fc4-86dc-96c16714fbd1","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221020435-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4cd7f34140eed883a4f4715cdbfce88b.jpeg","path":"4cd7f34140eed883a4f4715cdbfce88b.jpeg","width":1015,"height":1350,"alt":"","aspect_ratio":0.7518518518518519},"wholesale_price":[{"price":36.45,"min_quantity":1}],"weight":"0.35","compare_at_price":"43.92","price":"36.45","retail_price":"43.92","available":true,"url":"\/products\/slim-fit-pu-zippered-straight-leg-pants?variant=da4b6d98-ea35-4b5d-b3b7-23429b1b0073","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":17,"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 `
`;
}()}