Christmas Tree Decorations: The Ultimate Guide | Balsam Hill (2024)

`; banner.classList.add(woSaleData[i].color); banner.style.background = woSaleData[i].background; banner.setAttribute('data-sale', woSaleData[i].sale); banner.setAttribute('data-start', woSaleData[i].start); banner.setAttribute('data-end', woSaleData[i].end); let inner = banner.querySelectorAll('.wo-sales-banner-inner span'); let z1 = woProcessText(woSaleData[i].zone1, curr); let z2 = woProcessText(woSaleData[i].zone2, curr); let z3 = woProcessText(woSaleData[i].zone3, curr); let cta = woProcessText(woSaleData[i].cta, curr); let lnk = woProcessText(woSaleData[i].link, curr); let z3cta = banner.querySelector('.wo-sales-banner-zone3cta'); if (z1.indexOf('#') == 0) { z1 = z1.substring(1); inner[0].classList.add('bold'); } (z1 != '') ? inner[0].innerText = z1 : inner[0].remove(); if (z2.indexOf('#') == 0) { z2 = z2.substring(1); inner[1].classList.add('bold'); } (z2 != '') ? inner[1].innerText = z2 : inner[1].remove(); (cta != '') ? inner[3].innerHTML = ''+cta+'' : inner[3].remove(); if (lnk.trim() != '') { banner.querySelector('.wo-sales-banner-inner').setAttribute('href', lnk); banner.querySelector('.wo-sales-banner-inner').classList.add('pointer'); } if (z3.indexOf('/ct/') != -1) { banner.classList.add('countdown'); z3cta.outerHTML = z3cta.innerHTML; let ctc = banner.querySelector('.wo-sales-banner-zone3'); ctc.innerHTML = ''; let ct = ctc.querySelectorAll('.wo-sales-banner-zone3 > span > span'); let end = new Date(z3.substring(z3.indexOf('{')+1, z3.indexOf('}'))+'Z'); let diff = Math.ceil((end - Date.now() - tz*3600000)/1000); let sec = diff % 60; let min = (diff-sec)/60 % 60; let hrs = (diff-min*60-sec)/3600 % 24; let day = (diff-hrs*3600-min*60-sec)/86400; ct[0].innerText = ('00' + day).slice(-2); ct[1].innerText = ('00' + hrs).slice(-2); ct[2].innerText = ('00' + min).slice(-2); ct[3].innerText = ('00' + sec).slice(-2); let run = setInterval(() => { diff = Math.ceil((end - Date.now() - tz*3600000)/1000); sec = diff % 60; min = (diff-sec)/60 % 60; hrs = (diff-min*60-sec)/3600 % 24; day = (diff-hrs*3600-min*60-sec)/86400; ct[0].innerText = ('00' + day).slice(-2); ct[1].innerText = ('00' + hrs).slice(-2); ct[2].innerText = ('00' + min).slice(-2); ct[3].innerText = ('00' + sec).slice(-2); if (diff <= 0) { clearInterval(run); } }, 1000); } else if (z3 != '') { inner[2].innerText = z3; banner.classList.remove('countdown'); } else { inner[2].remove(); banner.classList.remove('countdown'); } if (banner.querySelector('.wo-sales-banner-inner span')) { banner.classList.add('show'); break; } else { banner.classList.remove('show'); } };}function woProcessText(z, curr) { z = z.split(';'); z.push(''); for (let i = 0; i < z.length; i++) { if (z[i].indexOf('{') == -1) { z = z[i]; break; } else { let start = new Date(z[i].substring(z[i].indexOf('{')+1, z[i].indexOf('+'))+'Z'); let end = new Date(z[i].substring(z[i].indexOf('+')+1, z[i].indexOf('}'))+'Z'); if (curr.getTime() >= start.getTime() && curr.getTime() <= end.getTime()) { (z[i].indexOf('/ct/') == -1) ? z = z[i].replace(/{.*}/, '') : z = z[i].replace(/{.*\+/, '{'); break; } } } return z;}

Cyber Savings: Sign Up and Get an additional $50 off* your Total Cart Price

Be the first to know about new arrivals, special offers, and early sale access.

*For new subscribers only. $50 Off applies to any order of $250 or more. By signing up to receive email communications, you agree to the Balsam Hill Terms & Conditions and Privacy Policy.

Christmas Tree Decorations: The Ultimate Guide | Balsam Hill (1)

`+a.cta+`

`); } }); //Update guidedSelling links on Products// if (window.location.href.indexOf('/p/') > -1 || window.location.href.indexOf('/c/') > -1) { $(document).ready(() => { $('a[href="/guidedSelling"]').attr('href','/find-the-perfect-artificial-christmas-tree'); }); } //Add badges on PLPs if (window.location.href.indexOf('/c/') > -1 || window.location.href.indexOf('/search?') > -1) { let woBadgeCSS = ''; let woClearanceSKU = ['2810250','2809239','2808748','2809240','2800766','2800767','2809242','2800764','2810251','2809069','2810252','2809237','2808749','2809238','5024125','2801550','2810003','2809107','2801469','2801460','2801466','2809988','2809990','2809989','2809159','2809160','4001557','4001556','4001773','4001569','4002585','4001567','4002006','4002007','4002920','4002930','4002918','4003604','4003605','4003610','4003611','4003750','4003377','4003378','4003353','4003352','4003280','4003281','4003270','4003119','2808386','2808155','4003312']; woBadgeCSS += '[data-sku="'+woClearanceSKU.join('"] .plp-img-view-imgs::before,[data-sku="')+'"] .plp-img-view-imgs::before'+'{content:"FINAL CLEARANCE"}'; let woOutdoorParent = ['WRG-2241032','WRG-2241031','WRG-2241029','WRG-2241028','WRG-2241027','WRG-2241025','WRG-2241023','WRG-2241022','WRG-2241021','WRG-2241010','WRG-2211008','WRG-2211002','WRG-2211001','WRG-2141033','WRG-2141032','WRG-2141031','WRG-2141030','WRG-2141023','WRG-2141021','WRG-2141020','WRG-2141013','WRG-2131010','WRG-2131009','WRG-2131005','WRG-2041021','WRG-2041018','WRG-2041016','WRG-2041015','WRG-2041014','WRG-2041005','WRG-2031001','WRG-2031000','WRG-1941017','WRG-1941015','WRG-1931000','WRG-1841014','WRG-1841011','WRG-1841010','WRG-1841009','WRG-1841008','WRG-1841001','WRG-1741021','WRG-1741018','WRG-1741016','WRG-1741005','WRG-1641013','WRG-1641006','WRG-1641001','WRG-1541022','WRG-1541021','WRG-1541017','WRG-1541008','WRG-1441010','WRG-1441009','VWS-DW','OUT-2241005','OUT-2211002','OUT-2211001','OUT-2211000','OUT-2141004','OUT-2141003','OUT-2141002','OUT-2131001','OUT-2131000','OUT-2041001','OUT-1941002','OUT-1741000','OUT-1641000','ORC-W','GEP-T','FRR-W','FLR-2211004','FLR-2211003','FLR-2131007','FLR-2111003','FLR-2111001','FLR-2111000','FLR-2011009','FLR-2011008','FLR-2011007','FLR-1911012','FLR-1911005','FLR-1911004','FLR-1841012','FLR-1841011','FLR-1841010','FLR-1641024','FLR-1641014','FGC-1741001','ETT-2241009','ETT-2211001','ETT-2131002','ETT-2131000','CDL-2211002','CDL-21410020','CDL-2041009','CDL-1841003','CDL-1841000','CDL-2041010','CDL-2041012','CDL-21410021','CDL-2041008','OUT-2041000','OUT-2241003','CDL-2241008','CDL-1941001']; woBadgeCSS += '[data-parent="'+woOutdoorParent.join('"] .plp-img-view-imgs::before,[data-parent="')+'"] .plp-img-view-imgs::before'+'{content:"OUTDOOR SAFE"}'; let woAppSKU = ['2811077','2811078','2811034','2811130','2811002','2811003','2811131','2811036','2808557','2808559','2808564','2808565','2809218','2809217','2809219','2809246','2809247','2809248','2809255','2809256','2809257','2809258','2810256','2810257','2810258','2810259','2810277','2810278','2810279','2809310','2811035']; woBadgeCSS += '[data-sku="'+woAppSKU.join('"] .plp-img-view-imgs::before,[data-sku="')+'"] .plp-img-view-imgs::before'+'{content:"APP CONTROLLED LIGHT SHOW"}'; let woFreshParent = ['WRG-2241014','WRG-2241015','WRG-2241016','WRG-2241017','WRG-2241018']; woBadgeCSS += '[data-parent="'+woFreshParent.join('"] .plp-img-view-imgs::before,[data-parent="')+'"] .plp-img-view-imgs::before'+'{content:"FRESH GREENERY - LIMITED TIME!";max-width:250px;}'; woBadgeCSS += '.plp-img-view-imgs::before{position:absolute;z-index:1;bottom:5px;left:5px;right:5px;padding:8px;max-width:230px;background-color:rgba(255,255,255,0.75);color:#363636;font-size:12px;letter-spacing:0.07em;line-height:14px}'; let woBadgeStyle = document.createElement('style'); woBadgeStyle.innerHTML = woBadgeCSS; document.body.appendChild(woBadgeStyle); } // BSK and Tree Quiz Tile Override if (window.location.href.indexOf('/p/') > -1) { window.addEventListener('load', () => { let bskTile = document.querySelector('.sample-kit-realism'); if (bskTile) { bskTile.addEventListener('click', () => { window.location.href = 'https://www.balsamhill.com/p/artificial-christmas-tree-branch-sample-kit' }); } let treeQuizTile = document.querySelector('.Find_your_perfect_tree'); if (treeQuizTile) { treeQuizTile.addEventListener('click', () => { window.location.href = 'https://www.balsamhill.com/find-the-perfect-artificial-christmas-tree' }); } }); }// Hide PDP Elements // if (window.location.href.indexOf('/p/') > -1) { $( document ).ready(function() { document.querySelectorAll('.branch-sample-kit-layout, #product-history').forEach(a => a.remove()); }); }}

Christmas Tree Decorations: The Ultimate Guide | Balsam Hill (2024)
Top Articles
Latest Posts
Article information

Author: Duane Harber

Last Updated:

Views: 6367

Rating: 4 / 5 (51 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Duane Harber

Birthday: 1999-10-17

Address: Apt. 404 9899 Magnolia Roads, Port Royceville, ID 78186

Phone: +186911129794335

Job: Human Hospitality Planner

Hobby: Listening to music, Orienteering, Knapping, Dance, Mountain biking, Fishing, Pottery

Introduction: My name is Duane Harber, I am a modern, clever, handsome, fair, agreeable, inexpensive, beautiful person who loves writing and wants to share my knowledge and understanding with you.