Colorblock Button-up Top And Pants Set
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a Color
`;
}()}
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a Size
`;
}()}
${function() {
const variantData = data.variant || {"id":"3878a102-0dcf-4d42-b4e0-1d4920a51a7e","product_id":"171f1f62-2fd0-4f50-bc1b-23e08f9bb960","title":"Khaki-S","weight_unit":"kg","inventory_quantity":1000,"sku":"135746000","barcode":"","position":1,"option1":"Khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/3f30c2951c76754ddd1bed708bbcdccf.jpeg","path":"3f30c2951c76754ddd1bed708bbcdccf.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":50.74,"min_quantity":1}],"weight":"0","compare_at_price":"75.59","price":"50.74","retail_price":"75.59","available":true,"url":"\/products\/colorblock-button-up-top-and-pants-set-135746-1?variant=3878a102-0dcf-4d42-b4e0-1d4920a51a7e","available_quantity":999999999,"options":[{"name":"Color","value":"Khaki"},{"name":"Size","value":"S"}],"off_ratio":33,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productSaveLabel = false;
return `
-
${saveType == 'percent' ? `-${variantData.off_ratio}%` : `-` }
`; }()}
Free worldwide shipping 80$ +
Product was out of stock.
Product is unavailable.
Estimated Delivery:May-18 - May-22
${function() {
const type = 'hero';
const postageFreeAmount = 80;
const custom_text_hero = "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";
const custom_text_wind = "Buy {amount} more to enjoy FREE Shipping";
const custom_text = type === 'hero' ? custom_text_hero : custom_text_wind;
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
${type === 'hero' ?
`
` :
`
${tipText}
Your order is free delivery
`
}
`;
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
people are viewing this right now