Fashion Casual PU Pants Pleated Tie Slim Pants
${function() {
const variantData = data.variant || {"id":"12c4aeea-b1ec-4520-98e8-41b8c85a43fd","product_id":"65c79fc3-1ee9-4362-ad21-77a46a83252e","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221020436-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9d549c0cbe72e4afd033932fac65a212.jpeg","path":"9d549c0cbe72e4afd033932fac65a212.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":45.33,"min_quantity":1}],"weight":"0.35","compare_at_price":"56.66","price":"45.33","retail_price":"56.66","available":true,"url":"\/products\/fashion-casual-pu-pants-pleated-tie-slim-pants?variant=12c4aeea-b1ec-4520-98e8-41b8c85a43fd","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":20,"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":"12c4aeea-b1ec-4520-98e8-41b8c85a43fd","product_id":"65c79fc3-1ee9-4362-ad21-77a46a83252e","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66221020436-black-S","barcode":"","position":1,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9d549c0cbe72e4afd033932fac65a212.jpeg","path":"9d549c0cbe72e4afd033932fac65a212.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":45.33,"min_quantity":1}],"weight":"0.35","compare_at_price":"56.66","price":"45.33","retail_price":"56.66","available":true,"url":"\/products\/fashion-casual-pu-pants-pleated-tie-slim-pants?variant=12c4aeea-b1ec-4520-98e8-41b8c85a43fd","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"name":"size","value":"S"}],"off_ratio":20,"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 `
`;
}()}