Halloween Skeleton Biochemical Mask
${function() {
const variantData = data.variant || {"id":"d6d9e33e-4a31-4f80-aff6-8093ac0f681a","product_id":"b313e8cc-7a8b-4652-b8e2-f78e141d15da","title":"SKULL","weight_unit":"kg","inventory_quantity":985,"sku":"x-\u4e07\u5723\u8282\u9ab7\u9ac5\u751f\u5316\u9762\u5177-\u5934\u9aa8-1","barcode":"","position":1,"option1":"SKULL","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/24a97b8ddc31c092886bf55a1d2eedb2.webp","path":"24a97b8ddc31c092886bf55a1d2eedb2.webp","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.99","price":"39.99","retail_price":"69.99","available":true,"url":"\/products\/halloween-skeleton-biochemical-maskb4a98b0b-a17f-4e37-8a70-76737fa53165d1a72c60-0cd9-4c28-8a90-3723dd6a80af?variant=d6d9e33e-4a31-4f80-aff6-8093ac0f681a","available_quantity":985,"options":[{"name":"Model","value":"SKULL"}],"off_ratio":43,"flashsale_info":[],"sales":4};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Model:
SKULL
${function(){
const optName = "Model";
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
$39.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":"d6d9e33e-4a31-4f80-aff6-8093ac0f681a","product_id":"b313e8cc-7a8b-4652-b8e2-f78e141d15da","title":"SKULL","weight_unit":"kg","inventory_quantity":985,"sku":"x-\u4e07\u5723\u8282\u9ab7\u9ac5\u751f\u5316\u9762\u5177-\u5934\u9aa8-1","barcode":"","position":1,"option1":"SKULL","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/24a97b8ddc31c092886bf55a1d2eedb2.webp","path":"24a97b8ddc31c092886bf55a1d2eedb2.webp","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.99","price":"39.99","retail_price":"69.99","available":true,"url":"\/products\/halloween-skeleton-biochemical-maskb4a98b0b-a17f-4e37-8a70-76737fa53165d1a72c60-0cd9-4c28-8a90-3723dd6a80af?variant=d6d9e33e-4a31-4f80-aff6-8093ac0f681a","available_quantity":985,"options":[{"name":"Model","value":"SKULL"}],"off_ratio":43,"flashsale_info":[],"sales":4};
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":"d6d9e33e-4a31-4f80-aff6-8093ac0f681a","product_id":"b313e8cc-7a8b-4652-b8e2-f78e141d15da","title":"SKULL","weight_unit":"kg","inventory_quantity":985,"sku":"x-\u4e07\u5723\u8282\u9ab7\u9ac5\u751f\u5316\u9762\u5177-\u5934\u9aa8-1","barcode":"","position":1,"option1":"SKULL","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/24a97b8ddc31c092886bf55a1d2eedb2.webp","path":"24a97b8ddc31c092886bf55a1d2eedb2.webp","width":600,"height":600,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"69.99","price":"39.99","retail_price":"69.99","available":true,"url":"\/products\/halloween-skeleton-biochemical-maskb4a98b0b-a17f-4e37-8a70-76737fa53165d1a72c60-0cd9-4c28-8a90-3723dd6a80af?variant=d6d9e33e-4a31-4f80-aff6-8093ac0f681a","available_quantity":985,"options":[{"name":"Model","value":"SKULL"}],"off_ratio":43,"flashsale_info":[],"sales":4};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}