Classic Buttons Fashion Solid Color Slim Blazer
${function() {
const variantData = data.variant || {"id":"e99e1ad3-5c40-4ccf-b983-6375f6f488ea","product_id":"0061bc56-a47c-4d1d-9b4d-29ac0e552130","title":"red-s","weight_unit":"kg","inventory_quantity":0,"sku":"20121501-red-s","barcode":"","position":3,"option1":"red","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fa66666461b73839f7b2bedab9ec0807.jpeg","path":"fa66666461b73839f7b2bedab9ec0807.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.31,"min_quantity":1}],"weight":"0","compare_at_price":"37.27","price":"31.31","retail_price":"37.27","available":true,"url":"\/products\/classic-buttons-fashion-solid-color-slim-blazer-2hc4?variant=e99e1ad3-5c40-4ccf-b983-6375f6f488ea","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"s"}],"off_ratio":16,"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":"e99e1ad3-5c40-4ccf-b983-6375f6f488ea","product_id":"0061bc56-a47c-4d1d-9b4d-29ac0e552130","title":"red-s","weight_unit":"kg","inventory_quantity":0,"sku":"20121501-red-s","barcode":"","position":3,"option1":"red","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fa66666461b73839f7b2bedab9ec0807.jpeg","path":"fa66666461b73839f7b2bedab9ec0807.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.31,"min_quantity":1}],"weight":"0","compare_at_price":"37.27","price":"31.31","retail_price":"37.27","available":true,"url":"\/products\/classic-buttons-fashion-solid-color-slim-blazer-2hc4?variant=e99e1ad3-5c40-4ccf-b983-6375f6f488ea","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"s"}],"off_ratio":16,"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 `
`;
}()}