Luxury Black Round Neck Silk Dress
${function() {
const variantData = data.variant || {"id":"36b1de19-22f2-41a7-ba25-bf33a06d0056","product_id":"4fc81ca1-b943-447f-9cca-e9e37678c5cc","title":"XS","weight_unit":"kg","inventory_quantity":0,"sku":"QZ-044-XS","barcode":"","position":1,"option1":"XS","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d10ea73733599458b1367cfaefd2c84f.png","path":"d10ea73733599458b1367cfaefd2c84f.png","width":600,"height":800,"alt":"Luxury Black Round Neck Silk Dress","aspect_ratio":0.75},"wholesale_price":[{"price":149,"min_quantity":1}],"weight":"0.5","compare_at_price":"149","price":"149","retail_price":"149","available":true,"url":"\/products\/luxury-black-round-neck-silk-dress?variant=36b1de19-22f2-41a7-ba25-bf33a06d0056","available_quantity":999999999,"options":[{"name":"Size","value":"XS"}],"off_ratio":0,"flashsale_info":[],"sales":2352};
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('')}
`;
}()}
Size
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Add to cart
$149.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":"36b1de19-22f2-41a7-ba25-bf33a06d0056","product_id":"4fc81ca1-b943-447f-9cca-e9e37678c5cc","title":"XS","weight_unit":"kg","inventory_quantity":0,"sku":"QZ-044-XS","barcode":"","position":1,"option1":"XS","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d10ea73733599458b1367cfaefd2c84f.png","path":"d10ea73733599458b1367cfaefd2c84f.png","width":600,"height":800,"alt":"Luxury Black Round Neck Silk Dress","aspect_ratio":0.75},"wholesale_price":[{"price":149,"min_quantity":1}],"weight":"0.5","compare_at_price":"149","price":"149","retail_price":"149","available":true,"url":"\/products\/luxury-black-round-neck-silk-dress?variant=36b1de19-22f2-41a7-ba25-bf33a06d0056","available_quantity":999999999,"options":[{"name":"Size","value":"XS"}],"off_ratio":0,"flashsale_info":[],"sales":2352};
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