Retro Fragrant Camellia Pearl Chain ( Glasses Chain & Necklace &Mask Chain)
${function() {
const variantData = data.variant || {"id":"e54e9a0a-c54e-4067-b37a-6584f2b0627c","product_id":"acf3dd18-927b-4bfe-9de7-f292c87ff3ec","title":"Gold","weight_unit":"kg","inventory_quantity":0,"sku":"Lin211124531-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c8fdd564ccb3fc03030d3df27785ec3b.jpeg","path":"c8fdd564ccb3fc03030d3df27785ec3b.jpeg","width":800,"height":800,"alt":"Retro Fragrant Camellia Pearl Chain ( Glasses Chain & Necklace &Mask Chain)-coollova:luchamp","aspect_ratio":1},"wholesale_price":[{"price":20.03,"min_quantity":1}],"weight":"0.02","compare_at_price":"30.4","price":"20.03","retail_price":"30.4","available":true,"url":"\/products\/retro-fragrant-camellia-pearl-chain-glasses-chain-necklace-mask-chain-z1qn?variant=e54e9a0a-c54e-4067-b37a-6584f2b0627c","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"}],"off_ratio":34,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Gold
${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}
`
}()}
Add to cart
$20.03
${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":"e54e9a0a-c54e-4067-b37a-6584f2b0627c","product_id":"acf3dd18-927b-4bfe-9de7-f292c87ff3ec","title":"Gold","weight_unit":"kg","inventory_quantity":0,"sku":"Lin211124531-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c8fdd564ccb3fc03030d3df27785ec3b.jpeg","path":"c8fdd564ccb3fc03030d3df27785ec3b.jpeg","width":800,"height":800,"alt":"Retro Fragrant Camellia Pearl Chain ( Glasses Chain & Necklace &Mask Chain)-coollova:luchamp","aspect_ratio":1},"wholesale_price":[{"price":20.03,"min_quantity":1}],"weight":"0.02","compare_at_price":"30.4","price":"20.03","retail_price":"30.4","available":true,"url":"\/products\/retro-fragrant-camellia-pearl-chain-glasses-chain-necklace-mask-chain-z1qn?variant=e54e9a0a-c54e-4067-b37a-6584f2b0627c","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"}],"off_ratio":34,"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.
${function(){
const variantData = data.variant || {"id":"e54e9a0a-c54e-4067-b37a-6584f2b0627c","product_id":"acf3dd18-927b-4bfe-9de7-f292c87ff3ec","title":"Gold","weight_unit":"kg","inventory_quantity":0,"sku":"Lin211124531-Gold","barcode":"","position":1,"option1":"Gold","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c8fdd564ccb3fc03030d3df27785ec3b.jpeg","path":"c8fdd564ccb3fc03030d3df27785ec3b.jpeg","width":800,"height":800,"alt":"Retro Fragrant Camellia Pearl Chain ( Glasses Chain & Necklace &Mask Chain)-coollova:luchamp","aspect_ratio":1},"wholesale_price":[{"price":20.03,"min_quantity":1}],"weight":"0.02","compare_at_price":"30.4","price":"20.03","retail_price":"30.4","available":true,"url":"\/products\/retro-fragrant-camellia-pearl-chain-glasses-chain-necklace-mask-chain-z1qn?variant=e54e9a0a-c54e-4067-b37a-6584f2b0627c","available_quantity":999999999,"options":[{"name":"Color","value":"Gold"}],"off_ratio":34,"flashsale_info":[],"sales":0};
return `
`
}()}