🎄Christmas Sale - Soulmate Diamond Necklace
🥰A fun and unforgettable gift , suitable for family, couples and friends, creating priceless memories. 🎁
${function() {
const variantData = data.variant || {"id":"4d8923e3-4f61-40c0-a210-7a946b8f9037","product_id":"c940b9f3-33c3-4f9d-8b15-746737f78856","title":"\ud83d\udc8eDiamond-\ud83d\udcffNecklace","weight_unit":"kg","inventory_quantity":0,"sku":"ZJ0126-Diamond","barcode":"","position":1,"option1":"\ud83d\udc8eDiamond","option2":"\ud83d\udcffNecklace","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9ce25d83a2e8ce1fbabfd0198828de56.jpeg","path":"9ce25d83a2e8ce1fbabfd0198828de56.jpeg","width":1080,"height":1073,"alt":"","aspect_ratio":1.0065237651444547},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0.13","compare_at_price":"0","price":"35.99","retail_price":"0","available":true,"url":"\/products\/soulmate-diamond-necklace?variant=4d8923e3-4f61-40c0-a210-7a946b8f9037","available_quantity":999999999,"options":[{"name":"SHAPE","value":"\ud83d\udc8eDiamond"},{"name":"STYLE","value":"\ud83d\udcffNecklace"}],"off_ratio":0,"flashsale_info":[],"sales":367};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Shape:
💎Diamond
${function(){
const optName = "SHAPE";
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}
`
}()}
Style:
📿Necklace
${function(){
const optName = "STYLE";
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
$35.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":"4d8923e3-4f61-40c0-a210-7a946b8f9037","product_id":"c940b9f3-33c3-4f9d-8b15-746737f78856","title":"\ud83d\udc8eDiamond-\ud83d\udcffNecklace","weight_unit":"kg","inventory_quantity":0,"sku":"ZJ0126-Diamond","barcode":"","position":1,"option1":"\ud83d\udc8eDiamond","option2":"\ud83d\udcffNecklace","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9ce25d83a2e8ce1fbabfd0198828de56.jpeg","path":"9ce25d83a2e8ce1fbabfd0198828de56.jpeg","width":1080,"height":1073,"alt":"","aspect_ratio":1.0065237651444547},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0.13","compare_at_price":"0","price":"35.99","retail_price":"0","available":true,"url":"\/products\/soulmate-diamond-necklace?variant=4d8923e3-4f61-40c0-a210-7a946b8f9037","available_quantity":999999999,"options":[{"name":"SHAPE","value":"\ud83d\udc8eDiamond"},{"name":"STYLE","value":"\ud83d\udcffNecklace"}],"off_ratio":0,"flashsale_info":[],"sales":367};
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 : ZJ0126-Diamond
Weight : 0.13kg
${function(){
const variantData = data.variant || {"id":"4d8923e3-4f61-40c0-a210-7a946b8f9037","product_id":"c940b9f3-33c3-4f9d-8b15-746737f78856","title":"\ud83d\udc8eDiamond-\ud83d\udcffNecklace","weight_unit":"kg","inventory_quantity":0,"sku":"ZJ0126-Diamond","barcode":"","position":1,"option1":"\ud83d\udc8eDiamond","option2":"\ud83d\udcffNecklace","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9ce25d83a2e8ce1fbabfd0198828de56.jpeg","path":"9ce25d83a2e8ce1fbabfd0198828de56.jpeg","width":1080,"height":1073,"alt":"","aspect_ratio":1.0065237651444547},"wholesale_price":[{"price":35.99,"min_quantity":1}],"weight":"0.13","compare_at_price":"0","price":"35.99","retail_price":"0","available":true,"url":"\/products\/soulmate-diamond-necklace?variant=4d8923e3-4f61-40c0-a210-7a946b8f9037","available_quantity":999999999,"options":[{"name":"SHAPE","value":"\ud83d\udc8eDiamond"},{"name":"STYLE","value":"\ud83d\udcffNecklace"}],"off_ratio":0,"flashsale_info":[],"sales":367};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}