Silhouette Series - 11CT Stamped Cross Stitch 40*50cm/15.7x19.7in
${function() {
const variantData = data.variant || {"id":"21cef8a2-8a85-4246-97b4-9c430f4e880d","product_id":"0c6a60af-b9d7-4a92-9a60-3b468ad0d749","title":"A","weight_unit":"kg","inventory_quantity":300,"sku":" TAM A01121342","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d9efeedaf3bc5457df65e16772a45a04.jpg","path":"d9efeedaf3bc5457df65e16772a45a04.jpg","width":1001,"height":1001,"alt":"Silhouette Series - 11CT Stamped Cross Stitch 40*50cm\/15.7x19.7in","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"15.99","price":"9.99","retail_price":"15.99","available":true,"url":"\/products\/silhouette-series-11ct-stamped-cross-stitch?variant=21cef8a2-8a85-4246-97b4-9c430f4e880d","available_quantity":300,"options":[{"name":"STYLE1","value":"A"}],"off_ratio":38,"flashsale_info":[],"sales":2315};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style1:
A
${function(){
const optName = "STYLE1";
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":"21cef8a2-8a85-4246-97b4-9c430f4e880d","product_id":"0c6a60af-b9d7-4a92-9a60-3b468ad0d749","title":"A","weight_unit":"kg","inventory_quantity":300,"sku":" TAM A01121342","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d9efeedaf3bc5457df65e16772a45a04.jpg","path":"d9efeedaf3bc5457df65e16772a45a04.jpg","width":1001,"height":1001,"alt":"Silhouette Series - 11CT Stamped Cross Stitch 40*50cm\/15.7x19.7in","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"15.99","price":"9.99","retail_price":"15.99","available":true,"url":"\/products\/silhouette-series-11ct-stamped-cross-stitch?variant=21cef8a2-8a85-4246-97b4-9c430f4e880d","available_quantity":300,"options":[{"name":"STYLE1","value":"A"}],"off_ratio":38,"flashsale_info":[],"sales":2315};
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":"21cef8a2-8a85-4246-97b4-9c430f4e880d","product_id":"0c6a60af-b9d7-4a92-9a60-3b468ad0d749","title":"A","weight_unit":"kg","inventory_quantity":300,"sku":" TAM A01121342","barcode":"","position":1,"option1":"A","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d9efeedaf3bc5457df65e16772a45a04.jpg","path":"d9efeedaf3bc5457df65e16772a45a04.jpg","width":1001,"height":1001,"alt":"Silhouette Series - 11CT Stamped Cross Stitch 40*50cm\/15.7x19.7in","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"15.99","price":"9.99","retail_price":"15.99","available":true,"url":"\/products\/silhouette-series-11ct-stamped-cross-stitch?variant=21cef8a2-8a85-4246-97b4-9c430f4e880d","available_quantity":300,"options":[{"name":"STYLE1","value":"A"}],"off_ratio":38,"flashsale_info":[],"sales":2315};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}