Christmas tree decoration | Advent Gifts🎉
${function() {
const variantData = data.variant || {"id":"af79fbab-9fcc-4b1b-9efa-aff8a2230b88","product_id":"a93587d2-5e1f-4695-a986-b23f6a406ceb","title":"Robin","weight_unit":"kg","inventory_quantity":1000,"sku":"YN1864480-A","barcode":"","position":1,"option1":"Robin","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0b3f74fc9902a5e6e8d674f51b70801c.jpeg","path":"0b3f74fc9902a5e6e8d674f51b70801c.jpeg","width":792,"height":792,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.99,"min_quantity":1}],"weight":"0","compare_at_price":"34.99","price":"17.99","retail_price":"34.99","available":true,"url":"\/products\/christmas-tree-decoration?variant=af79fbab-9fcc-4b1b-9efa-aff8a2230b88","available_quantity":999999999,"options":[{"name":"Style","value":"Robin"}],"off_ratio":49,"flashsale_info":[],"sales":0};
const saveType = "percentage";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}% `
: `- `
}
`;
}()}
Style:
Robin
${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}
`
}()}
Supports return and exchange within 30 days
Add to cart
$17.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":"af79fbab-9fcc-4b1b-9efa-aff8a2230b88","product_id":"a93587d2-5e1f-4695-a986-b23f6a406ceb","title":"Robin","weight_unit":"kg","inventory_quantity":1000,"sku":"YN1864480-A","barcode":"","position":1,"option1":"Robin","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0b3f74fc9902a5e6e8d674f51b70801c.jpeg","path":"0b3f74fc9902a5e6e8d674f51b70801c.jpeg","width":792,"height":792,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.99,"min_quantity":1}],"weight":"0","compare_at_price":"34.99","price":"17.99","retail_price":"34.99","available":true,"url":"\/products\/christmas-tree-decoration?variant=af79fbab-9fcc-4b1b-9efa-aff8a2230b88","available_quantity":999999999,"options":[{"name":"Style","value":"Robin"}],"off_ratio":49,"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.