Solid Color Over-The-Knee Socks
${function() {
const variantData = data.variant || {"id":"8226adee-27d2-4376-8aeb-7a028bc97db9","product_id":"3ba912d2-1418-4390-a987-2f3ff0967250","title":"white-onesize","weight_unit":"kg","inventory_quantity":0,"sku":"2092333-white-onesize","barcode":"","position":2,"option1":"white","option2":"onesize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/efd3dc01af60b94f0ab532019d5997bf.jpeg","path":"efd3dc01af60b94f0ab532019d5997bf.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.33,"min_quantity":1}],"weight":"0.12","compare_at_price":"25.15","price":"13.33","retail_price":"25.15","available":true,"url":"\/products\/solid-color-over-the-knee-socks-cvsq-lzt7?variant=8226adee-27d2-4376-8aeb-7a028bc97db9","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"onesize"}],"off_ratio":47,"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":"8226adee-27d2-4376-8aeb-7a028bc97db9","product_id":"3ba912d2-1418-4390-a987-2f3ff0967250","title":"white-onesize","weight_unit":"kg","inventory_quantity":0,"sku":"2092333-white-onesize","barcode":"","position":2,"option1":"white","option2":"onesize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/efd3dc01af60b94f0ab532019d5997bf.jpeg","path":"efd3dc01af60b94f0ab532019d5997bf.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.33,"min_quantity":1}],"weight":"0.12","compare_at_price":"25.15","price":"13.33","retail_price":"25.15","available":true,"url":"\/products\/solid-color-over-the-knee-socks-cvsq-lzt7?variant=8226adee-27d2-4376-8aeb-7a028bc97db9","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"onesize"}],"off_ratio":47,"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 `
`;
}()}