${function() {
const variantData = data.variant || {"id":"d8a971bc-eb65-45a2-a9da-d0dcefc7777a","product_id":"40d79dd1-4c7b-4ca7-895a-2af2938081c2","title":"A-Gold Color-China","weight_unit":"g","inventory_quantity":194,"sku":"37008360-a-gold-color-china","barcode":"","position":1,"option1":"A","option2":"Gold Color","option3":"China","note":"","image":{"src":"\/\/img.staticdj.com\/df6646ebf72073aed89f07d9e68e3a61.jpeg","path":"df6646ebf72073aed89f07d9e68e3a61.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"9.99","price":"9.99","retail_price":"9.99","available":true,"url":"\/products\/tiny-initial-letter-rings-for-women-fashion-a-z-letter-finger-stainless-steel-ring-aesthetic-wedding-jewelry-gift-bijoux-femme?variant=d8a971bc-eb65-45a2-a9da-d0dcefc7777a","available_quantity":194,"options":[{"name":"Main Stone Color","value":"A"},{"name":"Metal Color","value":"Gold Color"},{"name":"Ships From","value":"China"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
📢Dear customer, 1.31-2.16 Warehouse upgrade, suspension of shipments 2.17 Shipments in order according to order placement 📢🚚Global Fast logistics. 7-15 Days To US & UK
💲Secure payments. ✅30days Returns
${function() {
const postageFreeAmount = 35;
const custom_text = "Free shipping on orders over $35";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}
Main Stone Color
: A
${function(){
const optName = "Main Stone 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}
`
}()}
Metal Color
: Gold Color
${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}
`
}()}
Ships From
: China
${function(){
const optName = "Ships From";
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
$9.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]);
const productVariant = {"id":"d8a971bc-eb65-45a2-a9da-d0dcefc7777a","product_id":"40d79dd1-4c7b-4ca7-895a-2af2938081c2","title":"A-Gold Color-China","weight_unit":"g","inventory_quantity":194,"sku":"37008360-a-gold-color-china","barcode":"","position":1,"option1":"A","option2":"Gold Color","option3":"China","note":"","image":{"src":"\/\/img.staticdj.com\/df6646ebf72073aed89f07d9e68e3a61.jpeg","path":"df6646ebf72073aed89f07d9e68e3a61.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"9.99","price":"9.99","retail_price":"9.99","available":true,"url":"\/products\/tiny-initial-letter-rings-for-women-fashion-a-z-letter-finger-stainless-steel-ring-aesthetic-wedding-jewelry-gift-bijoux-femme?variant=d8a971bc-eb65-45a2-a9da-d0dcefc7777a","available_quantity":194,"options":[{"name":"Main Stone Color","value":"A"},{"name":"Metal Color","value":"Gold Color"},{"name":"Ships From","value":"China"}],"off_ratio":0,"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.
Sku : 37008360-a-gold-color-china
${function(){
const variantData = data.variant || {"id":"d8a971bc-eb65-45a2-a9da-d0dcefc7777a","product_id":"40d79dd1-4c7b-4ca7-895a-2af2938081c2","title":"A-Gold Color-China","weight_unit":"g","inventory_quantity":194,"sku":"37008360-a-gold-color-china","barcode":"","position":1,"option1":"A","option2":"Gold Color","option3":"China","note":"","image":{"src":"\/\/img.staticdj.com\/df6646ebf72073aed89f07d9e68e3a61.jpeg","path":"df6646ebf72073aed89f07d9e68e3a61.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"9.99","price":"9.99","retail_price":"9.99","available":true,"url":"\/products\/tiny-initial-letter-rings-for-women-fashion-a-z-letter-finger-stainless-steel-ring-aesthetic-wedding-jewelry-gift-bijoux-femme?variant=d8a971bc-eb65-45a2-a9da-d0dcefc7777a","available_quantity":194,"options":[{"name":"Main Stone Color","value":"A"},{"name":"Metal Color","value":"Gold Color"},{"name":"Ships From","value":"China"}],"off_ratio":0,"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('7');
const maxDays = parseInt('15');
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 `
`;
}()}