Kyley Crystal Ring Bracelet
Metal Color-
Silver
${function(){
const enable_selected_variants = "true" === 'false';
const optionValue = data.value;
return `
${optionValue ? `${enable_selected_variants ? '-' : ''}${optionValue}` : ''}
`;
}()}
${function(){
return `
Please select a Metal Color
`;
}()}
${function() {
const variantData = data.variant || {"id":"1ad69b6b-fafe-47c2-aa30-4f9248467454","product_id":"b7d4bb12-bf37-4144-bfa0-3cd96216ff66","title":"Silver","weight_unit":"kg","inventory_quantity":0,"sku":"MY_6ff66-Silver-","barcode":"","position":1,"option1":"Silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c0daa23b10d1ce80650d7df00552976a.jpeg","path":"c0daa23b10d1ce80650d7df00552976a.jpeg","width":1000,"height":1000,"alt":"Kyley Crystal Ring Bracelet-Mayoulove","aspect_ratio":1},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"29.99","price":"23.99","retail_price":"29.99","available":true,"url":"\/products\/kyley-crystal-ring-bracelet?variant=1ad69b6b-fafe-47c2-aa30-4f9248467454","available_quantity":999999999,"options":[{"name":"Metal Color","value":"Silver"}],"off_ratio":20,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productSaveLabel = true;
return `
-
${saveType == 'percent' ? `-${variantData.off_ratio}% ` : `- ` }
`; }()}
Add to cart
- $23.99
${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]) || Object.keys(data).length > 1 ? data : null;
const productVariant = {"id":"1ad69b6b-fafe-47c2-aa30-4f9248467454","product_id":"b7d4bb12-bf37-4144-bfa0-3cd96216ff66","title":"Silver","weight_unit":"kg","inventory_quantity":0,"sku":"MY_6ff66-Silver-","barcode":"","position":1,"option1":"Silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c0daa23b10d1ce80650d7df00552976a.jpeg","path":"c0daa23b10d1ce80650d7df00552976a.jpeg","width":1000,"height":1000,"alt":"Kyley Crystal Ring Bracelet-Mayoulove","aspect_ratio":1},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0.3","compare_at_price":"29.99","price":"23.99","retail_price":"29.99","available":true,"url":"\/products\/kyley-crystal-ring-bracelet?variant=1ad69b6b-fafe-47c2-aa30-4f9248467454","available_quantity":999999999,"options":[{"name":"Metal Color","value":"Silver"}],"off_ratio":20,"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 it now
Product was out of stock.
Product is unavailable.