Vintage Bracelet
${function() {
const variantData = data.variant || {"id":"fc9f8a93-25be-462c-8264-77b5d1aaa86e","product_id":"e3ef46bc-19e2-4afb-960c-d53f1c3a3381","title":"square silver","weight_unit":"kg","inventory_quantity":1000,"sku":"ACJH20907016-square silver","barcode":"","position":3,"option1":"square silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b506a0b52fc172e7160ed6fbecf2f384.png","path":"b506a0b52fc172e7160ed6fbecf2f384.png","width":750,"height":1058,"alt":"","aspect_ratio":0.7088846880907372},"wholesale_price":[{"price":18.89,"min_quantity":1}],"weight":"0","compare_at_price":"26.89","price":"18.89","retail_price":"26.89","available":true,"url":"\/products\/vintage-bracelet-l0jj0fe31acf-4c1b-4032-a99e-e8bf598e8eaf?variant=fc9f8a93-25be-462c-8264-77b5d1aaa86e","available_quantity":999999999,"options":[{"name":"color","value":"square silver"}],"off_ratio":30,"flashsale_info":[],"sales":8};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
people are viewing this right now
Color:
square silver
${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
$18.89
${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":"fc9f8a93-25be-462c-8264-77b5d1aaa86e","product_id":"e3ef46bc-19e2-4afb-960c-d53f1c3a3381","title":"square silver","weight_unit":"kg","inventory_quantity":1000,"sku":"ACJH20907016-square silver","barcode":"","position":3,"option1":"square silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b506a0b52fc172e7160ed6fbecf2f384.png","path":"b506a0b52fc172e7160ed6fbecf2f384.png","width":750,"height":1058,"alt":"","aspect_ratio":0.7088846880907372},"wholesale_price":[{"price":18.89,"min_quantity":1}],"weight":"0","compare_at_price":"26.89","price":"18.89","retail_price":"26.89","available":true,"url":"\/products\/vintage-bracelet-l0jj0fe31acf-4c1b-4032-a99e-e8bf598e8eaf?variant=fc9f8a93-25be-462c-8264-77b5d1aaa86e","available_quantity":999999999,"options":[{"name":"color","value":"square silver"}],"off_ratio":30,"flashsale_info":[],"sales":8};
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":"fc9f8a93-25be-462c-8264-77b5d1aaa86e","product_id":"e3ef46bc-19e2-4afb-960c-d53f1c3a3381","title":"square silver","weight_unit":"kg","inventory_quantity":1000,"sku":"ACJH20907016-square silver","barcode":"","position":3,"option1":"square silver","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b506a0b52fc172e7160ed6fbecf2f384.png","path":"b506a0b52fc172e7160ed6fbecf2f384.png","width":750,"height":1058,"alt":"","aspect_ratio":0.7088846880907372},"wholesale_price":[{"price":18.89,"min_quantity":1}],"weight":"0","compare_at_price":"26.89","price":"18.89","retail_price":"26.89","available":true,"url":"\/products\/vintage-bracelet-l0jj0fe31acf-4c1b-4032-a99e-e8bf598e8eaf?variant=fc9f8a93-25be-462c-8264-77b5d1aaa86e","available_quantity":999999999,"options":[{"name":"color","value":"square silver"}],"off_ratio":30,"flashsale_info":[],"sales":8};
return `
`
}()}