Baby Wrap Blanket
${function() {
const variantData = data.variant || {"id":"9d479daf-2363-435d-a110-8ec07f39d2b5","product_id":"1001d1b1-559d-45ca-903e-27d0f18a9d23","title":"White-3M(Overall length about 60cm)","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"White","option2":"3M(Overall length about 60cm)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/67656af2bb3f5c9952d20d5ce4d131b4.png","path":"67656af2bb3f5c9952d20d5ce4d131b4.png","width":902,"height":894,"alt":"","aspect_ratio":1.0089485458612975},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"24.99","retail_price":"0","available":true,"url":"\/products\/soft-newborn-baby-wrap-blankets-baby-sleeping-bag-envelope-for-newborn-sleepsack-thicken-cocoon-for-baby-0-9-months?variant=9d479daf-2363-435d-a110-8ec07f39d2b5","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Kid Size","value":"3M(Overall length about 60cm)"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Color:
White
${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}
`
}()}
Kid Size:
3M(Overall length about 60cm)
${function(){
const optName = "Kid 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}
`
}()}
Add to cart
$24.99
${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":"9d479daf-2363-435d-a110-8ec07f39d2b5","product_id":"1001d1b1-559d-45ca-903e-27d0f18a9d23","title":"White-3M(Overall length about 60cm)","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"White","option2":"3M(Overall length about 60cm)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/67656af2bb3f5c9952d20d5ce4d131b4.png","path":"67656af2bb3f5c9952d20d5ce4d131b4.png","width":902,"height":894,"alt":"","aspect_ratio":1.0089485458612975},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"24.99","retail_price":"0","available":true,"url":"\/products\/soft-newborn-baby-wrap-blankets-baby-sleeping-bag-envelope-for-newborn-sleepsack-thicken-cocoon-for-baby-0-9-months?variant=9d479daf-2363-435d-a110-8ec07f39d2b5","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Kid Size","value":"3M(Overall length about 60cm)"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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":"9d479daf-2363-435d-a110-8ec07f39d2b5","product_id":"1001d1b1-559d-45ca-903e-27d0f18a9d23","title":"White-3M(Overall length about 60cm)","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"White","option2":"3M(Overall length about 60cm)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/67656af2bb3f5c9952d20d5ce4d131b4.png","path":"67656af2bb3f5c9952d20d5ce4d131b4.png","width":902,"height":894,"alt":"","aspect_ratio":1.0089485458612975},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"24.99","retail_price":"0","available":true,"url":"\/products\/soft-newborn-baby-wrap-blankets-baby-sleeping-bag-envelope-for-newborn-sleepsack-thicken-cocoon-for-baby-0-9-months?variant=9d479daf-2363-435d-a110-8ec07f39d2b5","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Kid Size","value":"3M(Overall length about 60cm)"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}