🎅Vintage Style Christmas Banner
Style-
Style A
${function(){
const optName = "Style";
const enable_selected_variants = "true" === 'false';
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
${optionValue ? `${enable_selected_variants ? '-' : ''}${optionValue}` : ''}
`;
}()}
${function(){
const optName = "Style";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a Style
`;
}()}
Qty-
Buy 1
${function(){
const optName = "Qty";
const enable_selected_variants = "true" === 'false';
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
${optionValue ? `${enable_selected_variants ? '-' : ''}${optionValue}` : ''}
`;
}()}
${function(){
const optName = "Qty";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a Qty
`;
}()}
${function() {
const variantData = data.variant || {"id":"a9607779-c366-43c1-b1d7-002799bf4f04","product_id":"6cf262ca-3eff-404b-af7e-1ac9af8fd009","title":"Style A-Buy 1","weight_unit":"kg","inventory_quantity":0,"sku":"PH3072608SDK2","barcode":"940830200174","position":1,"option1":"Style A","option2":"Buy 1","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b6d729535a8fbd0aa5d260893330fc13.webp","path":"b6d729535a8fbd0aa5d260893330fc13.webp","width":1000,"height":1000,"alt":"\ud83c\udf85Vintage Style Christmas Banner - tree - Codlins","aspect_ratio":1},"wholesale_price":[{"price":12.96,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"12.96","retail_price":"0","available":true,"url":"\/products\/\ud83c\udf85vintage-style-christmas-banner?variant=a9607779-c366-43c1-b1d7-002799bf4f04","available_quantity":999999999,"options":[{"name":"Style","value":"Style A"},{"name":"Qty","value":"Buy 1"}],"off_ratio":0,"flashsale_info":[],"sales":147};
const saveType = "amount";
const productSaveLabel = true;
return `
-
${saveType == 'percent' ? `-${variantData.off_ratio}% ` : `- ` }
`; }()}
Free shipping on international orders of $49.99+
Add to cart
- $12.96
${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]) || Object.keys(data).length > 1 ? data : null;
const productVariant = {"id":"a9607779-c366-43c1-b1d7-002799bf4f04","product_id":"6cf262ca-3eff-404b-af7e-1ac9af8fd009","title":"Style A-Buy 1","weight_unit":"kg","inventory_quantity":0,"sku":"PH3072608SDK2","barcode":"940830200174","position":1,"option1":"Style A","option2":"Buy 1","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b6d729535a8fbd0aa5d260893330fc13.webp","path":"b6d729535a8fbd0aa5d260893330fc13.webp","width":1000,"height":1000,"alt":"\ud83c\udf85Vintage Style Christmas Banner - tree - Codlins","aspect_ratio":1},"wholesale_price":[{"price":12.96,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"12.96","retail_price":"0","available":true,"url":"\/products\/\ud83c\udf85vintage-style-christmas-banner?variant=a9607779-c366-43c1-b1d7-002799bf4f04","available_quantity":999999999,"options":[{"name":"Style","value":"Style A"},{"name":"Qty","value":"Buy 1"}],"off_ratio":0,"flashsale_info":[],"sales":147};
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 it now
Product was out of stock.
Product is unavailable.