Vintage Audrey Hepburn Earrings
${function() {
const variantData = data.variant || {"id":"203dd911-c1a2-43e5-b137-21015dd77a71","product_id":"4f219670-02b3-46a5-999b-a2c7de0384f9","title":"Red","weight_unit":"kg","inventory_quantity":0,"sku":"211124546-Red","barcode":"","position":2,"option1":"Red","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/afe4707a192f46a709ef6e67e3905319.jpeg","path":"afe4707a192f46a709ef6e67e3905319.jpeg","width":1920,"height":1920,"alt":"Vintage Audrey Hepburn Earrings-coollova:luchamp","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=203dd911-c1a2-43e5-b137-21015dd77a71","available_quantity":999999999,"options":[{"name":"Color","value":"Red"}],"off_ratio":34,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `- `
}
`;
}()}
Color:
Red
${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":"203dd911-c1a2-43e5-b137-21015dd77a71","product_id":"4f219670-02b3-46a5-999b-a2c7de0384f9","title":"Red","weight_unit":"kg","inventory_quantity":0,"sku":"211124546-Red","barcode":"","position":2,"option1":"Red","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/afe4707a192f46a709ef6e67e3905319.jpeg","path":"afe4707a192f46a709ef6e67e3905319.jpeg","width":1920,"height":1920,"alt":"Vintage Audrey Hepburn Earrings-coollova:luchamp","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=203dd911-c1a2-43e5-b137-21015dd77a71","available_quantity":999999999,"options":[{"name":"Color","value":"Red"}],"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":"203dd911-c1a2-43e5-b137-21015dd77a71","product_id":"4f219670-02b3-46a5-999b-a2c7de0384f9","title":"Red","weight_unit":"kg","inventory_quantity":0,"sku":"211124546-Red","barcode":"","position":2,"option1":"Red","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/afe4707a192f46a709ef6e67e3905319.jpeg","path":"afe4707a192f46a709ef6e67e3905319.jpeg","width":1920,"height":1920,"alt":"Vintage Audrey Hepburn Earrings-coollova:luchamp","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=203dd911-c1a2-43e5-b137-21015dd77a71","available_quantity":999999999,"options":[{"name":"Color","value":"Red"}],"off_ratio":34,"flashsale_info":[],"sales":0};
return `
`
}()}