🎉Heritage Round Wall Art
${function() {
const variantData = data.variant || {"id":"e7ec1e06-a81e-4fc8-82f3-82a31b425465","product_id":"aa5e3605-6d66-4889-9a36-6abfe04128a9","title":"WHITE WASH-8.3''x8.3''(21*21CM)","weight_unit":"lb","inventory_quantity":999,"sku":"XE1606685-C21cm","barcode":"","position":1,"option1":"WHITE WASH","option2":"8.3''x8.3''(21*21CM)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e072cdb94f05f781923e5c1e2d11c825.jpeg","path":"e072cdb94f05f781923e5c1e2d11c825.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.97,"min_quantity":1}],"weight":"0","compare_at_price":"55.99","price":"25.97","retail_price":"55.99","available":true,"url":"\/products\/heritage-round-wall-artd53f4ee9-015d-49a2-bd99-6f020b79465d41608550-136b-42b6-807c-116658e33ebe?variant=e7ec1e06-a81e-4fc8-82f3-82a31b425465","available_quantity":999999999,"options":[{"name":"STYLE","value":"WHITE WASH"},{"name":"SIZE","value":"8.3''x8.3''(21*21CM)"}],"off_ratio":54,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style:
WHITE WASH
${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}
`
}()}
Size:
8.3''x8.3''(21*21CM)
${function(){
const optName = "SIZE";
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
$25.97
${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":"e7ec1e06-a81e-4fc8-82f3-82a31b425465","product_id":"aa5e3605-6d66-4889-9a36-6abfe04128a9","title":"WHITE WASH-8.3''x8.3''(21*21CM)","weight_unit":"lb","inventory_quantity":999,"sku":"XE1606685-C21cm","barcode":"","position":1,"option1":"WHITE WASH","option2":"8.3''x8.3''(21*21CM)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e072cdb94f05f781923e5c1e2d11c825.jpeg","path":"e072cdb94f05f781923e5c1e2d11c825.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.97,"min_quantity":1}],"weight":"0","compare_at_price":"55.99","price":"25.97","retail_price":"55.99","available":true,"url":"\/products\/heritage-round-wall-artd53f4ee9-015d-49a2-bd99-6f020b79465d41608550-136b-42b6-807c-116658e33ebe?variant=e7ec1e06-a81e-4fc8-82f3-82a31b425465","available_quantity":999999999,"options":[{"name":"STYLE","value":"WHITE WASH"},{"name":"SIZE","value":"8.3''x8.3''(21*21CM)"}],"off_ratio":54,"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":"e7ec1e06-a81e-4fc8-82f3-82a31b425465","product_id":"aa5e3605-6d66-4889-9a36-6abfe04128a9","title":"WHITE WASH-8.3''x8.3''(21*21CM)","weight_unit":"lb","inventory_quantity":999,"sku":"XE1606685-C21cm","barcode":"","position":1,"option1":"WHITE WASH","option2":"8.3''x8.3''(21*21CM)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e072cdb94f05f781923e5c1e2d11c825.jpeg","path":"e072cdb94f05f781923e5c1e2d11c825.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25.97,"min_quantity":1}],"weight":"0","compare_at_price":"55.99","price":"25.97","retail_price":"55.99","available":true,"url":"\/products\/heritage-round-wall-artd53f4ee9-015d-49a2-bd99-6f020b79465d41608550-136b-42b6-807c-116658e33ebe?variant=e7ec1e06-a81e-4fc8-82f3-82a31b425465","available_quantity":999999999,"options":[{"name":"STYLE","value":"WHITE WASH"},{"name":"SIZE","value":"8.3''x8.3''(21*21CM)"}],"off_ratio":54,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}