Promotion - Cthulhu Dice Set
${function() {
const variantData = data.variant || {"id":"39c8675f-4863-4ede-877c-7401a9a66fef","product_id":"fe523d9c-70d8-4d72-a6d1-bc5c05171bf2","title":"Longan Dice Trumpet(33MM)","weight_unit":"kg","inventory_quantity":990,"sku":"JN1985496-35mm\u00b6\u00e0\u00d1\u00db\u00c7\u00f2","barcode":"","position":1,"option1":"Longan Dice Trumpet(33MM)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a4a4a8e6ced3ca81737b9be54f32b168.jpeg","path":"a4a4a8e6ced3ca81737b9be54f32b168.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"59.99","price":"29.99","retail_price":"59.99","available":true,"url":"\/products\/eye-liquid-core-dice-set3b3be996-132f-4480-b98e-f13ce7ba4236?variant=39c8675f-4863-4ede-877c-7401a9a66fef","available_quantity":999999999,"options":[{"name":"size","value":"Longan Dice Trumpet(33MM)"}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Size:
Longan Dice Trumpet(33MM)
${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
$29.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":"39c8675f-4863-4ede-877c-7401a9a66fef","product_id":"fe523d9c-70d8-4d72-a6d1-bc5c05171bf2","title":"Longan Dice Trumpet(33MM)","weight_unit":"kg","inventory_quantity":990,"sku":"JN1985496-35mm\u00b6\u00e0\u00d1\u00db\u00c7\u00f2","barcode":"","position":1,"option1":"Longan Dice Trumpet(33MM)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a4a4a8e6ced3ca81737b9be54f32b168.jpeg","path":"a4a4a8e6ced3ca81737b9be54f32b168.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"59.99","price":"29.99","retail_price":"59.99","available":true,"url":"\/products\/eye-liquid-core-dice-set3b3be996-132f-4480-b98e-f13ce7ba4236?variant=39c8675f-4863-4ede-877c-7401a9a66fef","available_quantity":999999999,"options":[{"name":"size","value":"Longan Dice Trumpet(33MM)"}],"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.
Sku : JN1985496-35mm¶àÑÛÇò
${function(){
const variantData = data.variant || {"id":"39c8675f-4863-4ede-877c-7401a9a66fef","product_id":"fe523d9c-70d8-4d72-a6d1-bc5c05171bf2","title":"Longan Dice Trumpet(33MM)","weight_unit":"kg","inventory_quantity":990,"sku":"JN1985496-35mm\u00b6\u00e0\u00d1\u00db\u00c7\u00f2","barcode":"","position":1,"option1":"Longan Dice Trumpet(33MM)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a4a4a8e6ced3ca81737b9be54f32b168.jpeg","path":"a4a4a8e6ced3ca81737b9be54f32b168.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"59.99","price":"29.99","retail_price":"59.99","available":true,"url":"\/products\/eye-liquid-core-dice-set3b3be996-132f-4480-b98e-f13ce7ba4236?variant=39c8675f-4863-4ede-877c-7401a9a66fef","available_quantity":999999999,"options":[{"name":"size","value":"Longan Dice Trumpet(33MM)"}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}