people are viewing this right now
${function() {
const variantData = data.variant || {"id":"2145691b-6911-4c14-80b4-4d0b4ab6a857","product_id":"b20c074b-f5c9-4652-b05f-dcb93ffdcf95","title":"Red-XS-20000 mAh","weight_unit":"kg","inventory_quantity":1000,"sku":"L-\u52a0\u70ed\u68c9\u8863-\u7ea2\u8272\u516b\u533a\u53d1\u70edL\uff08\u5e262w\u9ed1\u8272\u5145\u7535\u5b9d\uff09-1","barcode":"","position":10,"option1":"Red","option2":"XS","option3":"20000 mAh","note":"","image":{"src":"\/\/img.staticdj.com\/f2f0c4aa9c1dcf62a437cfa3e0662e90.jpeg","path":"f2f0c4aa9c1dcf62a437cfa3e0662e90.jpeg","width":960,"height":960,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":119.39,"min_quantity":1}],"weight":"0","compare_at_price":"234.09","price":"119.39","retail_price":"234.09","available":true,"url":"\/products\/womens-8-zones-heated-puffer-jacket-tztk?variant=2145691b-6911-4c14-80b4-4d0b4ab6a857","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"XS"},{"name":"Battery","value":"20000 mAh"}],"off_ratio":49,"flashsale_info":[],"sales":778};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
Color
: Red
${function(){
const optName = "Color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (': ' + optionValue) : '';
return `
${optionValueText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Size
: XS
${function(){
const optName = "Size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (': ' + optionValue) : '';
return `
${optionValueText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Battery
: 20000 mAh
${function(){
const optName = "Battery";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value;
const optionValueText = optionValue ? (': ' + optionValue) : '';
return `
${optionValueText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$119.39
${function(){
const wholesale_enabled = false;
const qty = data.quantity || 1;
const currentSelectVariant = data.variant;
const defaultVariant = (data.product && data.product.variants && data.product.variants[0]);
const productVariant = {"id":"2145691b-6911-4c14-80b4-4d0b4ab6a857","product_id":"b20c074b-f5c9-4652-b05f-dcb93ffdcf95","title":"Red-XS-20000 mAh","weight_unit":"kg","inventory_quantity":1000,"sku":"L-\u52a0\u70ed\u68c9\u8863-\u7ea2\u8272\u516b\u533a\u53d1\u70edL\uff08\u5e262w\u9ed1\u8272\u5145\u7535\u5b9d\uff09-1","barcode":"","position":10,"option1":"Red","option2":"XS","option3":"20000 mAh","note":"","image":{"src":"\/\/img.staticdj.com\/f2f0c4aa9c1dcf62a437cfa3e0662e90.jpeg","path":"f2f0c4aa9c1dcf62a437cfa3e0662e90.jpeg","width":960,"height":960,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":119.39,"min_quantity":1}],"weight":"0","compare_at_price":"234.09","price":"119.39","retail_price":"234.09","available":true,"url":"\/products\/womens-8-zones-heated-puffer-jacket-tztk?variant=2145691b-6911-4c14-80b4-4d0b4ab6a857","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"XS"},{"name":"Battery","value":"20000 mAh"}],"off_ratio":49,"flashsale_info":[],"sales":778};
const variantData = currentSelectVariant || defaultVariant || productVariant;
const wholesale_price = variantData.wholesale_price || [];
if(wholesale_enabled && wholesale_price.length > 0) {
let wholesaleIndex = wholesale_price.findIndex(item => {
return item.min_quantity > qty;
});
if(wholesaleIndex < 0){
wholesaleIndex = wholesale_price.length - 1;
}else if(wholesaleIndex > 0){
wholesaleIndex = wholesaleIndex - 1;
}
const wholesalePrice = wholesale_price[wholesaleIndex] || '';
return `
`
}else {
const price = variantData && variantData.price;
return price != undefined ? `
` : ' ';
}
}()}
Buy now
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"2145691b-6911-4c14-80b4-4d0b4ab6a857","product_id":"b20c074b-f5c9-4652-b05f-dcb93ffdcf95","title":"Red-XS-20000 mAh","weight_unit":"kg","inventory_quantity":1000,"sku":"L-\u52a0\u70ed\u68c9\u8863-\u7ea2\u8272\u516b\u533a\u53d1\u70edL\uff08\u5e262w\u9ed1\u8272\u5145\u7535\u5b9d\uff09-1","barcode":"","position":10,"option1":"Red","option2":"XS","option3":"20000 mAh","note":"","image":{"src":"\/\/img.staticdj.com\/f2f0c4aa9c1dcf62a437cfa3e0662e90.jpeg","path":"f2f0c4aa9c1dcf62a437cfa3e0662e90.jpeg","width":960,"height":960,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":119.39,"min_quantity":1}],"weight":"0","compare_at_price":"234.09","price":"119.39","retail_price":"234.09","available":true,"url":"\/products\/womens-8-zones-heated-puffer-jacket-tztk?variant=2145691b-6911-4c14-80b4-4d0b4ab6a857","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"name":"Size","value":"XS"},{"name":"Battery","value":"20000 mAh"}],"off_ratio":49,"flashsale_info":[],"sales":778};
return `
`
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('30');
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 `
`;
}()}