🎄DIY Wooden Christmas Tree🎄
Color-
Green
${function(){
const enable_selected_variants = "true" === 'false';
const optionValue = data.value;
return `
${optionValue ? `${enable_selected_variants ? '-' : ''}${optionValue}` : ''}
`;
}()}
${function(){
return `
Please select a Color
`;
}()}
Size-
Small(6 holes)
${function(){
const enable_selected_variants = "true" === 'false';
const optionValue = data.value;
return `
${optionValue ? `${enable_selected_variants ? '-' : ''}${optionValue}` : ''}
`;
}()}
${function(){
return `
Please select a Size
`;
}()}
${function() {
const variantData = data.variant || {"id":"1181c35c-71d7-4c4c-8a6f-2df8e1eb7958","product_id":"b1954a5d-9526-4970-b681-bfb89000b011","title":"Green-Small(6 holes)","weight_unit":"kg","inventory_quantity":0,"sku":"PH20112413LV6S","barcode":"940830200433","position":1,"option1":"Green","option2":"Small(6 holes)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a0f19aa5ad3334dbd8bc21866534ca15.jpg","path":"a0f19aa5ad3334dbd8bc21866534ca15.jpg","width":750,"height":750,"alt":"\ud83c\udf84DIY Wooden Christmas Tree\ud83c\udf84 - tree - Codlins","aspect_ratio":1},"wholesale_price":[{"price":17.96,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"17.96","retail_price":"0","available":true,"url":"\/products\/\ud83c\udf84diy-wooden-christmas-tree\ud83c\udf84?variant=1181c35c-71d7-4c4c-8a6f-2df8e1eb7958","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"Small(6 holes)"}],"off_ratio":0,"flashsale_info":[],"sales":249};
const saveType = "amount";
const productSaveLabel = true;
return `
-
${saveType == 'percent' ? `-${variantData.off_ratio}% ` : `- ` }
`; }()}
Free shipping on international orders of $49.99+
Add to cart
- $17.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":"1181c35c-71d7-4c4c-8a6f-2df8e1eb7958","product_id":"b1954a5d-9526-4970-b681-bfb89000b011","title":"Green-Small(6 holes)","weight_unit":"kg","inventory_quantity":0,"sku":"PH20112413LV6S","barcode":"940830200433","position":1,"option1":"Green","option2":"Small(6 holes)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a0f19aa5ad3334dbd8bc21866534ca15.jpg","path":"a0f19aa5ad3334dbd8bc21866534ca15.jpg","width":750,"height":750,"alt":"\ud83c\udf84DIY Wooden Christmas Tree\ud83c\udf84 - tree - Codlins","aspect_ratio":1},"wholesale_price":[{"price":17.96,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"17.96","retail_price":"0","available":true,"url":"\/products\/\ud83c\udf84diy-wooden-christmas-tree\ud83c\udf84?variant=1181c35c-71d7-4c4c-8a6f-2df8e1eb7958","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"Small(6 holes)"}],"off_ratio":0,"flashsale_info":[],"sales":249};
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.