19 Momme Silk Duvet Cover Set | 4pcs
${function() {
const variantData = data.variant || {"id":"230f039d-061d-47c2-bc60-187c88172a94","product_id":"94c8ccb4-4841-4f78-9fa4-66c7d690674f","title":"Blue-Twin","weight_unit":"kg","inventory_quantity":0,"sku":"19-13-DCSET-99*193+41-171*221-51*66","barcode":"6949545560805","position":1,"option1":"Blue","option2":"Twin","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/badc0d4f94375a36b7319cd5ae7d434e.jpeg","path":"badc0d4f94375a36b7319cd5ae7d434e.jpeg","width":800,"height":800,"alt":"19 Momme Silk Duvet Cover Set | 4pcs Blue","aspect_ratio":1},"wholesale_price":[{"price":529,"min_quantity":1}],"weight":"1.5","compare_at_price":"529","price":"529","retail_price":"529","available":true,"url":"\/products\/19-momme-silk-duvet-cover-set-4pcs?variant=230f039d-061d-47c2-bc60-187c88172a94","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"Twin"}],"off_ratio":0,"flashsale_info":[],"sales":2366};
const saveType = "percentage";
const productLabelDiscountOn = true;
const map = {
B: ` `,
C: ` `,
A: `
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`
}
const price_group_arr = ["B","C","A"];
const price_str_arr = price_group_arr.map(type => map[type]);
return `
-
${price_str_arr.join('')}
`;
}()}
Color:
Blue
${function(){
const optName = "Color";
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}
`
}()}
Size
Size
Twin
Full
Queen
King
Cal.King
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$529.00
${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":"230f039d-061d-47c2-bc60-187c88172a94","product_id":"94c8ccb4-4841-4f78-9fa4-66c7d690674f","title":"Blue-Twin","weight_unit":"kg","inventory_quantity":0,"sku":"19-13-DCSET-99*193+41-171*221-51*66","barcode":"6949545560805","position":1,"option1":"Blue","option2":"Twin","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/badc0d4f94375a36b7319cd5ae7d434e.jpeg","path":"badc0d4f94375a36b7319cd5ae7d434e.jpeg","width":800,"height":800,"alt":"19 Momme Silk Duvet Cover Set | 4pcs Blue","aspect_ratio":1},"wholesale_price":[{"price":529,"min_quantity":1}],"weight":"1.5","compare_at_price":"529","price":"529","retail_price":"529","available":true,"url":"\/products\/19-momme-silk-duvet-cover-set-4pcs?variant=230f039d-061d-47c2-bc60-187c88172a94","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"name":"Size","value":"Twin"}],"off_ratio":0,"flashsale_info":[],"sales":2366};
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 does not exist