Vintage Audrey Hepburn Earrings
${function() {
const variantData = data.variant || {"id":"1db6b3dd-abe9-4dd5-907f-87cf1052b324","product_id":"84ff503a-e75f-4c74-8a75-9ca3d91f9379","title":"Blue","weight_unit":"kg","inventory_quantity":0,"sku":"211124546-Blue","barcode":"","position":1,"option1":"Blue","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0a40af4c138ea4afc16463c85c08f5c1.jpeg","path":"0a40af4c138ea4afc16463c85c08f5c1.jpeg","width":1920,"height":1920,"alt":"Vintage Audrey Hepburn Earrings","aspect_ratio":1},"wholesale_price":[{"price":36.71,"min_quantity":1}],"weight":"0.01","compare_at_price":"55.72","price":"36.71","retail_price":"55.72","available":true,"url":"\/products\/vintage-audrey-hepburn-earrings?variant=1db6b3dd-abe9-4dd5-907f-87cf1052b324","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"}],"off_ratio":34,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
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}
`
}()}
Add to cart
$36.71
${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":"1db6b3dd-abe9-4dd5-907f-87cf1052b324","product_id":"84ff503a-e75f-4c74-8a75-9ca3d91f9379","title":"Blue","weight_unit":"kg","inventory_quantity":0,"sku":"211124546-Blue","barcode":"","position":1,"option1":"Blue","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0a40af4c138ea4afc16463c85c08f5c1.jpeg","path":"0a40af4c138ea4afc16463c85c08f5c1.jpeg","width":1920,"height":1920,"alt":"Vintage Audrey Hepburn Earrings","aspect_ratio":1},"wholesale_price":[{"price":36.71,"min_quantity":1}],"weight":"0.01","compare_at_price":"55.72","price":"36.71","retail_price":"55.72","available":true,"url":"\/products\/vintage-audrey-hepburn-earrings?variant=1db6b3dd-abe9-4dd5-907f-87cf1052b324","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"}],"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.