${function(){
const variantData = data.variant || {"id":"07e10b6e-942d-435b-80a6-b2e0cdde7419","product_id":"57266062-45e6-4a80-b05b-f71e67597d40","title":"B5923","weight_unit":"g","inventory_quantity":-5,"sku":"875984.04","barcode":"","position":4,"option1":"B5923","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d9c4f8e5d5a172a2679979690288614f.jpeg","path":"d9c4f8e5d5a172a2679979690288614f.jpeg","width":1001,"height":1001,"alt":"Beach Scenery 30*40CM(Canvas) Full Round Drill Diamond Painting gbfke","aspect_ratio":1},"wholesale_price":[{"price":3.89,"min_quantity":1}],"weight":"120","compare_at_price":"4.89","price":"3.89","retail_price":"4.89","available":true,"url":"\/products\/beach-scenery-30-40cmcanvas-full-round-drill-diamond-painting875984-00-zubj?variant=07e10b6e-942d-435b-80a6-b2e0cdde7419","available_quantity":999999999,"options":[{"name":"Style","value":"B5923"}],"off_ratio":20,"flashsale_info":[],"sales":30};
return `
Sku : ${variantData && variantData.sku}
`
}()}
${function() {
const variantData = data.variant || {"id":"07e10b6e-942d-435b-80a6-b2e0cdde7419","product_id":"57266062-45e6-4a80-b05b-f71e67597d40","title":"B5923","weight_unit":"g","inventory_quantity":-5,"sku":"875984.04","barcode":"","position":4,"option1":"B5923","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d9c4f8e5d5a172a2679979690288614f.jpeg","path":"d9c4f8e5d5a172a2679979690288614f.jpeg","width":1001,"height":1001,"alt":"Beach Scenery 30*40CM(Canvas) Full Round Drill Diamond Painting gbfke","aspect_ratio":1},"wholesale_price":[{"price":3.89,"min_quantity":1}],"weight":"120","compare_at_price":"4.89","price":"3.89","retail_price":"4.89","available":true,"url":"\/products\/beach-scenery-30-40cmcanvas-full-round-drill-diamond-painting875984-00-zubj?variant=07e10b6e-942d-435b-80a6-b2e0cdde7419","available_quantity":999999999,"options":[{"name":"Style","value":"B5923"}],"off_ratio":20,"flashsale_info":[],"sales":30};
const saveType = "percentage";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
saveType == 'percentage'
? variantData.off_ratio + '%'
: ` `
)}
`;
}()}
${function() {
const minInventory = parseInt('1');
const maxInventory = parseInt('15');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + ' ');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
Style
: B5923
${function(){
const optName = "Style";
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
€3.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":"07e10b6e-942d-435b-80a6-b2e0cdde7419","product_id":"57266062-45e6-4a80-b05b-f71e67597d40","title":"B5923","weight_unit":"g","inventory_quantity":-5,"sku":"875984.04","barcode":"","position":4,"option1":"B5923","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d9c4f8e5d5a172a2679979690288614f.jpeg","path":"d9c4f8e5d5a172a2679979690288614f.jpeg","width":1001,"height":1001,"alt":"Beach Scenery 30*40CM(Canvas) Full Round Drill Diamond Painting gbfke","aspect_ratio":1},"wholesale_price":[{"price":3.89,"min_quantity":1}],"weight":"120","compare_at_price":"4.89","price":"3.89","retail_price":"4.89","available":true,"url":"\/products\/beach-scenery-30-40cmcanvas-full-round-drill-diamond-painting875984-00-zubj?variant=07e10b6e-942d-435b-80a6-b2e0cdde7419","available_quantity":999999999,"options":[{"name":"Style","value":"B5923"}],"off_ratio":20,"flashsale_info":[],"sales":30};
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.
people are viewing this right now