Christmas party performance props Santa Claus mask
${function() {
const variantData = data.variant || {"id":"b06f3713-3213-4f99-837d-78e45811f901","product_id":"2534d561-1fb2-4d20-99f2-6f873bc30f38","title":"1 PC","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"1 PC","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fe4fc6e30c207345f164526cf731a345.png","path":"fe4fc6e30c207345f164526cf731a345.png","width":664,"height":662,"alt":"","aspect_ratio":1.0030211480362539},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"27.99","retail_price":"49.99","available":true,"url":"\/products\/christmas-party-performance-props-santa-claus-mask-204619088475?variant=b06f3713-3213-4f99-837d-78e45811f901","available_quantity":1000,"options":[{"name":"Quantity","value":"1 PC"}],"off_ratio":44,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Quantity:
1 PC
${function(){
const optName = "Quantity";
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
$27.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":"b06f3713-3213-4f99-837d-78e45811f901","product_id":"2534d561-1fb2-4d20-99f2-6f873bc30f38","title":"1 PC","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"1 PC","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fe4fc6e30c207345f164526cf731a345.png","path":"fe4fc6e30c207345f164526cf731a345.png","width":664,"height":662,"alt":"","aspect_ratio":1.0030211480362539},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"27.99","retail_price":"49.99","available":true,"url":"\/products\/christmas-party-performance-props-santa-claus-mask-204619088475?variant=b06f3713-3213-4f99-837d-78e45811f901","available_quantity":1000,"options":[{"name":"Quantity","value":"1 PC"}],"off_ratio":44,"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":"b06f3713-3213-4f99-837d-78e45811f901","product_id":"2534d561-1fb2-4d20-99f2-6f873bc30f38","title":"1 PC","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"1 PC","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fe4fc6e30c207345f164526cf731a345.png","path":"fe4fc6e30c207345f164526cf731a345.png","width":664,"height":662,"alt":"","aspect_ratio":1.0030211480362539},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"49.99","price":"27.99","retail_price":"49.99","available":true,"url":"\/products\/christmas-party-performance-props-santa-claus-mask-204619088475?variant=b06f3713-3213-4f99-837d-78e45811f901","available_quantity":1000,"options":[{"name":"Quantity","value":"1 PC"}],"off_ratio":44,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}