Blue Sea Jellyfish Starfish Heart Devil Eyes Butterfly Italian Charm Links Fit 9mm Stainless Steel Bracelet Jewelry DIY Making
${function() {
const variantData = data.variant || {"id":"9a14339b-e666-4cf5-b2ba-8cf84b6877f5","product_id":"5069b184-d60d-4669-8c99-c84229a37f6e","title":"A5-stainless steel","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":20,"option1":"A5","option2":"stainless steel","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4d5131bca350dea5c96fc19d6a4486fd.jpeg","path":"4d5131bca350dea5c96fc19d6a4486fd.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":0.45,"min_quantity":1}],"weight":"0","compare_at_price":"0.9","price":"0.45","retail_price":"0.9","available":true,"url":"\/products\/blue-sea-jellyfish-starfish-heart-devil-eyes-butterfly-italian-charm-links-fit-9mm-stainless-steel-bracelet-jewelry-diy-making?variant=9a14339b-e666-4cf5-b2ba-8cf84b6877f5","available_quantity":999999999,"options":[{"name":"Metal Color","value":"A5"},{"name":"Length","value":"stainless steel"}],"off_ratio":50,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Metal Color:
A5
${function(){
const optName = "Metal 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}
`
}()}
Length:
stainless steel
${function(){
const optName = "Length";
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
$0.45
${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":"9a14339b-e666-4cf5-b2ba-8cf84b6877f5","product_id":"5069b184-d60d-4669-8c99-c84229a37f6e","title":"A5-stainless steel","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":20,"option1":"A5","option2":"stainless steel","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4d5131bca350dea5c96fc19d6a4486fd.jpeg","path":"4d5131bca350dea5c96fc19d6a4486fd.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":0.45,"min_quantity":1}],"weight":"0","compare_at_price":"0.9","price":"0.45","retail_price":"0.9","available":true,"url":"\/products\/blue-sea-jellyfish-starfish-heart-devil-eyes-butterfly-italian-charm-links-fit-9mm-stainless-steel-bracelet-jewelry-diy-making?variant=9a14339b-e666-4cf5-b2ba-8cf84b6877f5","available_quantity":999999999,"options":[{"name":"Metal Color","value":"A5"},{"name":"Length","value":"stainless steel"}],"off_ratio":50,"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":"9a14339b-e666-4cf5-b2ba-8cf84b6877f5","product_id":"5069b184-d60d-4669-8c99-c84229a37f6e","title":"A5-stainless steel","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":20,"option1":"A5","option2":"stainless steel","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4d5131bca350dea5c96fc19d6a4486fd.jpeg","path":"4d5131bca350dea5c96fc19d6a4486fd.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":0.45,"min_quantity":1}],"weight":"0","compare_at_price":"0.9","price":"0.45","retail_price":"0.9","available":true,"url":"\/products\/blue-sea-jellyfish-starfish-heart-devil-eyes-butterfly-italian-charm-links-fit-9mm-stainless-steel-bracelet-jewelry-diy-making?variant=9a14339b-e666-4cf5-b2ba-8cf84b6877f5","available_quantity":999999999,"options":[{"name":"Metal Color","value":"A5"},{"name":"Length","value":"stainless steel"}],"off_ratio":50,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}
${function() {
const minDays = parseInt('15');
const maxDays = parseInt('30');
const customText = "Estimated Delivery\uff1a{min_date} - {max_date}";
const minDate = new Date(Date.now() + (minDays * 86400000));
const maxDate = new Date(Date.now() + (maxDays * 86400000));
const formatDate = (minDate.getFullYear() == maxDate.getFullYear() && minDate.getFullYear() == new Date().getFullYear())
? new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit' })
: new Intl.DateTimeFormat('en', { month: 'short', day: '2-digit', year: 'numeric' });
const tipText = customText.replace(/\{min_date\}/g, '' + formatDate.format(minDate) + ' ')
.replace(/\{max_date\}/g, '' + formatDate.format(maxDate) + ' ');
return `
${tipText}
`;
}()}