Early Christmas Pre-Sale - 50% Off - Christmas Red Striped Family Pajamas
${function() {
const variantData = data.variant || {"id":"6e43cc5e-1214-4870-8d58-ac203e22532c","product_id":"0a11c249-e1ae-4564-98d8-e4bfa8d0b265","title":"Baby - 3M","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Baby - 3M","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/91e052ec3bde33f68cb7030cb4d4995f.jpeg","path":"91e052ec3bde33f68cb7030cb4d4995f.jpeg","width":1000,"height":1250,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":16.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.99","price":"16.99","retail_price":"33.99","available":true,"url":"\/products\/christmas-red-striped-family-pajamas006d002e-cd08-4cb3-956c-fb12c3f62cdb?variant=6e43cc5e-1214-4870-8d58-ac203e22532c","available_quantity":999999999,"options":[{"name":"Size","value":"Baby - 3M"}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Size:
Baby - 3M
${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}
`
}()}
Add to cart
$16.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":"6e43cc5e-1214-4870-8d58-ac203e22532c","product_id":"0a11c249-e1ae-4564-98d8-e4bfa8d0b265","title":"Baby - 3M","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Baby - 3M","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/91e052ec3bde33f68cb7030cb4d4995f.jpeg","path":"91e052ec3bde33f68cb7030cb4d4995f.jpeg","width":1000,"height":1250,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":16.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.99","price":"16.99","retail_price":"33.99","available":true,"url":"\/products\/christmas-red-striped-family-pajamas006d002e-cd08-4cb3-956c-fb12c3f62cdb?variant=6e43cc5e-1214-4870-8d58-ac203e22532c","available_quantity":999999999,"options":[{"name":"Size","value":"Baby - 3M"}],"off_ratio":50,"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":"6e43cc5e-1214-4870-8d58-ac203e22532c","product_id":"0a11c249-e1ae-4564-98d8-e4bfa8d0b265","title":"Baby - 3M","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"Baby - 3M","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/91e052ec3bde33f68cb7030cb4d4995f.jpeg","path":"91e052ec3bde33f68cb7030cb4d4995f.jpeg","width":1000,"height":1250,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":16.99,"min_quantity":1}],"weight":"0","compare_at_price":"33.99","price":"16.99","retail_price":"33.99","available":true,"url":"\/products\/christmas-red-striped-family-pajamas006d002e-cd08-4cb3-956c-fb12c3f62cdb?variant=6e43cc5e-1214-4870-8d58-ac203e22532c","available_quantity":999999999,"options":[{"name":"Size","value":"Baby - 3M"}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}