Skip to product information
1 of 4

Dear Dining

Marcella | Dining Table

Marcella | Dining Table

Regular price ₱74,995.00 PHP
Regular price Sale price ₱74,995.00 PHP
Sale Sold out

Dimensions: 

  • 6 SEATER: 180cm * 90cm * 75cm

Please note that all sizes are approximate and that colors may vary slightly from the actual item due to differences in screen color reproduction.

Visit Us<title/> <head/> <html/> <a href="/products/22-marble-dining-table" class="link product__view-details animate-arrow"> View full details <svg viewBox="0 0 14 10" fill="none" aria-hidden="true" focusable="false" role="presentation" class="icon icon-arrow" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M8.537.808a.5.5 0 01.817-.162l4 4a.5.5 0 010 .708l-4 4a.5.5 0 11-.708-.708L11.793 5.5H1a.5.5 0 010-1h10.793L8.646 1.354a.5.5 0 01-.109-.546z" fill="currentColor"> </svg> </a> </div> </div></div> <product-modal id="ProductModal-template--21485765919018__main" class="product-media-modal media-modal"> <div class="product-media-modal__dialog" role="dialog" aria-label="Media gallery" aria-modal="true" tabindex="-1" > <button id="ModalClose-template--21485765919018__main" type="button" class="product-media-modal__toggle" aria-label="Close" > <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" role="presentation" class="icon icon-close" fill="none" viewBox="0 0 18 17"> <path d="M.865 15.978a.5.5 0 00.707.707l7.433-7.431 7.579 7.282a.501.501 0 00.846-.37.5.5 0 00-.153-.351L9.712 8.546l7.417-7.416a.5.5 0 10-.707-.708L8.991 7.853 1.413.573a.5.5 0 10-.693.72l7.563 7.268-7.418 7.417z" fill="currentColor"> </svg> </button> <div class="product-media-modal__content gradient" role="document" aria-label="Media gallery" tabindex="0" > <img class="global-media-settings global-media-settings--no-shadow" srcset="//dyneanddesign.com/cdn/shop/products/Z26.jpg?v=1696990898&width=550 550w,//dyneanddesign.com/cdn/shop/products/Z26.jpg?v=1696990898 800w" sizes="(min-width: 750px) calc(100vw - 22rem), 1100px" src="//dyneanddesign.com/cdn/shop/products/Z26.jpg?v=1696990898&width=1445" alt="Marcella | Dining Table" loading="lazy" width="1100" height="1100" data-media-id="33254623117610" > <img class="global-media-settings global-media-settings--no-shadow" srcset="//dyneanddesign.com/cdn/shop/products/Z24.jpg?v=1696990898&width=550 550w,//dyneanddesign.com/cdn/shop/products/Z24.jpg?v=1696990898 800w" sizes="(min-width: 750px) calc(100vw - 22rem), 1100px" src="//dyneanddesign.com/cdn/shop/products/Z24.jpg?v=1696990898&width=1445" alt="Marcella | Dining Table" loading="lazy" width="1100" height="1100" data-media-id="33254558728490" > <img class="global-media-settings global-media-settings--no-shadow" srcset="//dyneanddesign.com/cdn/shop/products/Z25.jpg?v=1696990898&width=550 550w,//dyneanddesign.com/cdn/shop/products/Z25.jpg?v=1696990898 800w" sizes="(min-width: 750px) calc(100vw - 22rem), 1100px" src="//dyneanddesign.com/cdn/shop/products/Z25.jpg?v=1696990898&width=1445" alt="Marcella | Dining Table" loading="lazy" width="1100" height="1100" data-media-id="33254565970218" > <img class="global-media-settings global-media-settings--no-shadow" srcset="//dyneanddesign.com/cdn/shop/products/Z28.jpg?v=1678955784&width=550 550w,//dyneanddesign.com/cdn/shop/products/Z28.jpg?v=1678955784 800w" sizes="(min-width: 750px) calc(100vw - 22rem), 1100px" src="//dyneanddesign.com/cdn/shop/products/Z28.jpg?v=1678955784&width=1445" alt="Marcella | Dining Table" loading="lazy" width="1100" height="1100" data-media-id="33254657392938" ></div> </div> </product-modal> <script src="//dyneanddesign.com/cdn/shop/t/8/assets/product-modal.js?v=50921580101160527761697692526" defer="defer"></script> <script src="//dyneanddesign.com/cdn/shop/t/8/assets/media-gallery.js?v=136815418543071173961697692526" defer="defer"></script><script> document.addEventListener('DOMContentLoaded', function() { function isIE() { const ua = window.navigator.userAgent; const msie = ua.indexOf('MSIE '); const trident = ua.indexOf('Trident/'); return (msie > 0 || trident > 0); } if (!isIE()) return; const hiddenInput = document.querySelector('#product-form-template--21485765919018__main input[name="id"]'); const noScriptInputWrapper = document.createElement('div'); const variantSwitcher = document.querySelector('variant-radios[data-section="template--21485765919018__main"]') || document.querySelector('variant-selects[data-section="template--21485765919018__main"]'); noScriptInputWrapper.innerHTML = document.querySelector('.product-form__noscript-wrapper-template--21485765919018__main').textContent; variantSwitcher.outerHTML = noScriptInputWrapper.outerHTML; document.querySelector('#Variants-template--21485765919018__main').addEventListener('change', function(event) { hiddenInput.value = event.currentTarget.value; }); }); </script><script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "Product", "name": "Marcella | Dining Table", "url": "https:\/\/dyneanddesign.com\/products\/22-marble-dining-table", "image": [ "https:\/\/dyneanddesign.com\/cdn\/shop\/products\/Z26.jpg?v=1696990898\u0026width=800" ], "description": "Dimensions: \n\n6 SEATER: 180cm * 90cm * 75cm\n", "brand": { "@type": "Brand", "name": "Dear Dining" }, "offers": [{ "@type" : "Offer","availability" : "http://schema.org/InStock", "price" : 74995.0, "priceCurrency" : "PHP", "url" : "https:\/\/dyneanddesign.com\/products\/22-marble-dining-table?variant=46825403089194" } ] } </script> </section> </section><section id="shopify-section-template--21485765919018__product-recommendations" class="shopify-section section"><link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/component-card.css?v=13116108056750117421697692526" media="print" onload="this.media='all'"> <link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/component-price.css?v=65402837579211014041697692526" media="print" onload="this.media='all'"> <link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/section-product-recommendations.css?v=33851772221619654181697692526" media="print" onload="this.media='all'"> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/component-card.css?v=13116108056750117421697692526" rel="stylesheet" type="text/css" media="all" /></noscript> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/component-price.css?v=65402837579211014041697692526" rel="stylesheet" type="text/css" media="all" /></noscript> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/section-product-recommendations.css?v=33851772221619654181697692526" rel="stylesheet" type="text/css" media="all" /></noscript><style data-shopify>.section-template--21485765919018__product-recommendations-padding { padding-top: 27px; padding-bottom: 21px; } @media screen and (min-width: 750px) { .section-template--21485765919018__product-recommendations-padding { padding-top: 36px; padding-bottom: 28px; } }</style><div class="color-background-2 gradient no-js-hidden"> <product-recommendations class="product-recommendations page-width section-template--21485765919018__product-recommendations-padding isolate" data-url="/recommendations/products?section_id=template--21485765919018__product-recommendations&product_id=8097817788714&limit=4"> </product-recommendations> </div> </section><section id="shopify-section-template--21485765919018__rich_text_CjjjkA" class="shopify-section section"><link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/component-rte.css?v=69919436638515329781697692526" media="print" onload="this.media='all'"> <link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/section-rich-text.css?v=155250126305810049721697692526" media="print" onload="this.media='all'"> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/component-rte.css?v=69919436638515329781697692526" rel="stylesheet" type="text/css" media="all" /></noscript> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/section-rich-text.css?v=155250126305810049721697692526" rel="stylesheet" type="text/css" media="all" /></noscript><style data-shopify>.section-template--21485765919018__rich_text_CjjjkA-padding { padding-top: 30px; padding-bottom: 39px; } @media screen and (min-width: 750px) { .section-template--21485765919018__rich_text_CjjjkA-padding { padding-top: 40px; padding-bottom: 52px; } }</style><div class="isolate"> <div class="rich-text content-container color-background-1 gradient rich-text--full-width content-container--full-width section-template--21485765919018__rich_text_CjjjkA-padding"> <div class="rich-text__wrapper rich-text__wrapper--center page-width"> <div class="rich-text__blocks center"><h2 class="rich-text__heading rte h1" > <span>Talk about your brand</span> </h2><div class="rich-text__text rte" > <p>Share information about your brand with your customers. Describe a product, make announcements, or welcome customers to your store.</p> </div></div> </div> </div> </div> </section><section id="shopify-section-template--21485765919018__rich_text_6aqfVU" class="shopify-section section"><link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/component-rte.css?v=69919436638515329781697692526" media="print" onload="this.media='all'"> <link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/section-rich-text.css?v=155250126305810049721697692526" media="print" onload="this.media='all'"> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/component-rte.css?v=69919436638515329781697692526" rel="stylesheet" type="text/css" media="all" /></noscript> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/section-rich-text.css?v=155250126305810049721697692526" rel="stylesheet" type="text/css" media="all" /></noscript><style data-shopify>.section-template--21485765919018__rich_text_6aqfVU-padding { padding-top: 30px; padding-bottom: 39px; } @media screen and (min-width: 750px) { .section-template--21485765919018__rich_text_6aqfVU-padding { padding-top: 40px; padding-bottom: 52px; } }</style><div class="isolate"> <div class="rich-text content-container color-background-1 gradient rich-text--full-width content-container--full-width section-template--21485765919018__rich_text_6aqfVU-padding"> <div class="rich-text__wrapper rich-text__wrapper--center page-width"> <div class="rich-text__blocks center"><h2 class="rich-text__heading rte h1" > <span>Talk about your brand</span> </h2><div class="rich-text__text rte" > <p>Share information about your brand with your customers. Describe a product, make announcements, or welcome customers to your store.</p> </div></div> </div> </div> </div> </section><section id="shopify-section-template--21485765919018__rich_text_yxKfm7" class="shopify-section section"><link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/component-rte.css?v=69919436638515329781697692526" media="print" onload="this.media='all'"> <link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/section-rich-text.css?v=155250126305810049721697692526" media="print" onload="this.media='all'"> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/component-rte.css?v=69919436638515329781697692526" rel="stylesheet" type="text/css" media="all" /></noscript> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/section-rich-text.css?v=155250126305810049721697692526" rel="stylesheet" type="text/css" media="all" /></noscript><style data-shopify>.section-template--21485765919018__rich_text_yxKfm7-padding { padding-top: 30px; padding-bottom: 39px; } @media screen and (min-width: 750px) { .section-template--21485765919018__rich_text_yxKfm7-padding { padding-top: 40px; padding-bottom: 52px; } }</style><div class="isolate"> <div class="rich-text content-container color-background-1 gradient rich-text--full-width content-container--full-width section-template--21485765919018__rich_text_yxKfm7-padding"> <div class="rich-text__wrapper rich-text__wrapper--center page-width"> <div class="rich-text__blocks center"></div> </div> </div> </div> </section> </main> <div id="shopify-section-footer" class="shopify-section"> <link href="//dyneanddesign.com/cdn/shop/t/8/assets/section-footer.css?v=83777583229853969691697692526" rel="stylesheet" type="text/css" media="all" /> <link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/component-newsletter.css?v=103472482056003053551697692526" media="print" onload="this.media='all'"> <link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/component-list-menu.css?v=151968516119678728991697692526" media="print" onload="this.media='all'"> <link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/component-list-payment.css?v=69253961410771838501697692526" media="print" onload="this.media='all'"> <link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/component-list-social.css?v=52211663153726659061697692526" media="print" onload="this.media='all'"> <link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/component-rte.css?v=69919436638515329781697692526" media="print" onload="this.media='all'"> <link rel="stylesheet" href="//dyneanddesign.com/cdn/shop/t/8/assets/disclosure.css?v=646595190999601341697692526" media="print" onload="this.media='all'"> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/component-newsletter.css?v=103472482056003053551697692526" rel="stylesheet" type="text/css" media="all" /></noscript> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/component-list-menu.css?v=151968516119678728991697692526" rel="stylesheet" type="text/css" media="all" /></noscript> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/component-list-payment.css?v=69253961410771838501697692526" rel="stylesheet" type="text/css" media="all" /></noscript> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/component-list-social.css?v=52211663153726659061697692526" rel="stylesheet" type="text/css" media="all" /></noscript> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/component-rte.css?v=69919436638515329781697692526" rel="stylesheet" type="text/css" media="all" /></noscript> <noscript><link href="//dyneanddesign.com/cdn/shop/t/8/assets/disclosure.css?v=646595190999601341697692526" rel="stylesheet" type="text/css" media="all" /></noscript><style data-shopify>.footer { margin-top: 36px; } .section-footer-padding { padding-top: 27px; padding-bottom: 27px; } @media screen and (min-width: 750px) { .footer { margin-top: 48px; } .section-footer-padding { padding-top: 36px; padding-bottom: 36px; } }</style><footer class="footer color-background-1 gradient section-footer-padding"><div class="footer__content-top page-width"><div class="footer__blocks-wrapper grid grid--1-col grid--2-col grid--4-col-tablet "><div class="footer-block grid__item footer-block--menu" ><h2 class="footer-block__heading">Quick links</h2><ul class="footer-block__details-content list-unstyled"><li> <a href="/" class="link link--text list-menu__item list-menu__item--link"> Home </a> </li><li> <a href="/pages/about-us" class="link link--text list-menu__item list-menu__item--link"> About Us </a> </li><li> <a href="/pages/contact" class="link link--text list-menu__item list-menu__item--link"> Contact us </a> </li></ul></div><div class="footer-block grid__item footer-block--menu" ><h2 class="footer-block__heading">More Info</h2><ul class="footer-block__details-content list-unstyled"><li> <a href="/pages/returns-policy" class="link link--text list-menu__item list-menu__item--link"> Returns & Refunds </a> </li><li> <a href="/pages/terms-conditions" class="link link--text list-menu__item list-menu__item--link"> Terms & Conditions </a> </li><li> <a href="/pages/privacy-policy" class="link link--text list-menu__item list-menu__item--link"> Privacy Policy </a> </li><li> <a href="/pages/warranty-terms" class="link link--text list-menu__item list-menu__item--link"> Warranty Terms </a> </li></ul></div><div class="footer-block grid__item" ><h2 class="footer-block__heading">Chat with us:</h2><div class="footer-block__details-content rte"> </div></div></div><div class="footer-block--newsletter"><div class="footer-block__newsletter"><h2 class="footer-block__heading">Subscribe to our emails</h2><form method="post" action="/contact#ContactFooter" id="ContactFooter" accept-charset="UTF-8" class="footer__newsletter newsletter-form"><input type="hidden" name="form_type" value="customer" /><input type="hidden" name="utf8" value="✓" /><input type="hidden" name="contact[tags]" value="newsletter"> <div class="newsletter-form__field-wrapper"> <div class="field"> <input id="NewsletterForm--footer" type="email" name="contact[email]" class="field__input" value="" aria-required="true" autocorrect="off" autocapitalize="off" autocomplete="email" placeholder="Email" required > <label class="field__label" for="NewsletterForm--footer"> Email </label> <button type="submit" class="newsletter-form__button field__button" name="commit" id="Subscribe" aria-label="Subscribe"> <svg viewBox="0 0 14 10" fill="none" aria-hidden="true" focusable="false" role="presentation" class="icon icon-arrow" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M8.537.808a.5.5 0 01.817-.162l4 4a.5.5 0 010 .708l-4 4a.5.5 0 11-.708-.708L11.793 5.5H1a.5.5 0 010-1h10.793L8.646 1.354a.5.5 0 01-.109-.546z" fill="currentColor"> </svg> </button> </div></div></form></div><ul class="footer__list-social list-unstyled list-social" role="list"><li class="list-social__item"> <a href="https://www.instagram.com/dyneanddesign/" class="link list-social__link" ><svg aria-hidden="true" focusable="false" role="presentation" class="icon icon-instagram" viewBox="0 0 18 18"> <path fill="currentColor" d="M8.77 1.58c2.34 0 2.62.01 3.54.05.86.04 1.32.18 1.63.3.41.17.7.35 1.01.66.3.3.5.6.65 1 .12.32.27.78.3 1.64.05.92.06 1.2.06 3.54s-.01 2.62-.05 3.54a4.79 4.79 0 01-.3 1.63c-.17.41-.35.7-.66 1.01-.3.3-.6.5-1.01.66-.31.12-.77.26-1.63.3-.92.04-1.2.05-3.54.05s-2.62 0-3.55-.05a4.79 4.79 0 01-1.62-.3c-.42-.16-.7-.35-1.01-.66-.31-.3-.5-.6-.66-1a4.87 4.87 0 01-.3-1.64c-.04-.92-.05-1.2-.05-3.54s0-2.62.05-3.54c.04-.86.18-1.32.3-1.63.16-.41.35-.7.66-1.01.3-.3.6-.5 1-.65.32-.12.78-.27 1.63-.3.93-.05 1.2-.06 3.55-.06zm0-1.58C6.39 0 6.09.01 5.15.05c-.93.04-1.57.2-2.13.4-.57.23-1.06.54-1.55 1.02C1 1.96.7 2.45.46 3.02c-.22.56-.37 1.2-.4 2.13C0 6.1 0 6.4 0 8.77s.01 2.68.05 3.61c.04.94.2 1.57.4 2.13.23.58.54 1.07 1.02 1.56.49.48.98.78 1.55 1.01.56.22 1.2.37 2.13.4.94.05 1.24.06 3.62.06 2.39 0 2.68-.01 3.62-.05.93-.04 1.57-.2 2.13-.41a4.27 4.27 0 001.55-1.01c.49-.49.79-.98 1.01-1.56.22-.55.37-1.19.41-2.13.04-.93.05-1.23.05-3.61 0-2.39 0-2.68-.05-3.62a6.47 6.47 0 00-.4-2.13 4.27 4.27 0 00-1.02-1.55A4.35 4.35 0 0014.52.46a6.43 6.43 0 00-2.13-.41A69 69 0 008.77 0z"/> <path fill="currentColor" d="M8.8 4a4.5 4.5 0 100 9 4.5 4.5 0 000-9zm0 7.43a2.92 2.92 0 110-5.85 2.92 2.92 0 010 5.85zM13.43 5a1.05 1.05 0 100-2.1 1.05 1.05 0 000 2.1z"> </svg> <span class="visually-hidden">Instagram</span> </a> </li></ul></div> </div><div class="footer__content-bottom"> <div class="footer__content-bottom-wrapper page-width"> <div class="footer__column footer__localization isolate"></div> <div class="footer__column footer__column--info"><div class="footer__copyright caption"> <small class="copyright__content">© 2024, <a href="/" title="">Dyne & Design</a></small> <small class="copyright__content"></small> </div> </div> </div> </div> </footer> <!-- This site is converting visitors into subscribers and customers with https://respond.io --> <script id="respondio__growth_tool" src="https://cdn.respond.io/widget/widget.js?wId=1fc8a98e-e1cf-479a-8261-1e1c48fc8d6f"> </script><!-- https://respond.io --> </div> <ul hidden> <li id="a11y-refresh-page-message">Choosing a selection results in a full page refresh.</li> <li id="a11y-new-window-message">Opens in a new window.</li> </ul> <script> window.shopUrl = 'https://dyneanddesign.com'; window.routes = { cart_add_url: '/cart/add', cart_change_url: '/cart/change', cart_update_url: '/cart/update', cart_url: '/cart', predictive_search_url: '/search/suggest' }; window.cartStrings = { error: `There was an error while updating your cart. Please try again.`, quantityError: `You can only add [quantity] of this item to your cart.` } window.variantStrings = { addToCart: `Add to cart`, soldOut: `Sold out`, unavailable: `Unavailable`, } window.accessibilityStrings = { imageAvailable: `Image [index] is now available in gallery view`, shareSuccess: `Link copied to clipboard`, pauseSlideshow: `Pause slideshow`, playSlideshow: `Play slideshow`, } </script><script src="//dyneanddesign.com/cdn/shop/t/8/assets/predictive-search.js?v=31278710863581584031697692526" defer="defer"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment-with-locales.min.js"></script> <script type="text/javascript"> var userid = '8437'; //console.log(userid); document.addEventListener('DOMContentLoaded', function(event) { // getCountryCode(); setTimeout(function(){ getCountryCode(); },1000); if (window.jQuery){ } else { var headTag = document.getElementsByTagName("head")[0]; var newScript = document.createElement("script"); newScript.src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"; headTag.appendChild(newScript); } if (window.$){ } else { var headTag = document.getElementsByTagName("head")[0]; var newScript = document.createElement("script"); newScript.src = "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"; headTag.appendChild(newScript); } }); </script> <script type="text/javascript"> var countryprimeb = 'primebadgecountry'; var existingScript = document.getElementById('primebPopper'); var countryprimeb = 'primebadgecountry'; if (!existingScript) { var country = 'primebadgecountry'; var primebcountryName = ''; const scriptpopperb = document.createElement('script'); scriptpopperb.src = 'https://unpkg.com/popper.js@1'; scriptpopperb.id = 'primebPopper'; document.body.appendChild(scriptpopperb); setTimeout(function(){ const scripttippyb = document.createElement('script'); scripttippyb.src = 'https://unpkg.com/tippy.js@5'; scripttippyb.id = 'primebTippy'; document.body.appendChild(scripttippyb); }, 500); setTimeout(function(){ checkprimebjquery(); }, 1000); } function getCountryCode() { if(thaliacustomercountry == ''){ thaliaCustomerCookie(); thaliacustomercountry = thaliaGetCookie("thaliacustomercountry"); getCName(thaliacustomercountry); }else{ getCName(thaliacustomercountry); } } function getCName(countryCode) { var country_data = "AF,Afghanistan|AL,Albania|DZ,Algeria|AD,Andorra|AO,Angola|AI,Anguilla|AQ,Antarctica|AG,Antigua and Barbuda|AR,Argentina|AM,Armenia|AW,Aruba|AU,Australia|AT,Austria|AZ,Azerbaijan|BS,Bahamas|BH,Bahrain|BD,Bangladesh|BB,Barbados|BY,Belarus|BE,Belgium|BZ,Belize|BJ,Benin|BM,Bermuda|BT,Bhutan|BO,Bolivia|BQ,Bonaire,Sint Eustatius and Saba|BA,Bosnia and Herzegovina|BW,Botswana|BV,Bouvet Island|BR,Brazil|IO,British Indian Ocean Territory|BN,Brunei Darussalam|BG,Bulgaria|BF,Burkina Faso|BI,Burundi|CV,Cabo Verde|KH,Cambodia|CM,Cameroon|CA,Canada|KY,Cayman Islands|CF,Central African Republic|TD,Chad|CL,Chile|CN,China|CX,Christmas Island|CC,Cocos (Keeling) Islands|CO,Colombia|KM,Comoros|CG,Congo|CD,Congo,Democratic Republic of the|CK,Cook Islands|CR,Costa Rica|CI,Côte d'Ivoire|HR,Croatia|CU,Cuba|CW,Curaçao|CY,Cyprus|CZ,Czech Republic|DK,Denmark|DJ,Djibouti|DM,Dominica|DO,Dominican Republic|EC,Ecuador|EG,Egypt|SV,El Salvador|GQ,Equatorial Guinea|ER,Eritrea|EE,Estonia|SZ,Eswatini|ET,Ethiopia|FK,Falkland Islands (Malvinas)|FO,Faroe Islands|FJ,Fiji|FI,Finland|FR,France|GF,French Guiana|PF,French Polynesia|TF,French Southern Territories|GA,Gabon|GM,Gambia|GE,Georgia|DE,Germany|GH,Ghana|GI,Gibraltar|GR,Greece|GL,Greenland|GD,Grenada|GP,Guadeloupe|GU,Guam|GT,Guatemala|GG,Guernsey|GN,Guinea|GW,Guinea-Bissau|GY,Guyana|HT,Haiti|HM,Heard Island and McDonald Islands|VA,Holy See|HN,Honduras|HK,Hong Kong|HU,Hungary|IS,Iceland|IN,India|ID,Indonesia|IR,Iran|IQ,Iraq|IE,Ireland|IM,Isle of Man|IL,Israel|IT,Italy|JM,Jamaica|JP,Japan|JE,Jersey|JO,Jordan|KZ,Kazakhstan|KE,Kenya|KI,Kiribati|KP,Korea|KR,Korea|KW,Kuwait|KG,Kyrgyzstan|LA,Lao People's Democratic Republic|LV,Latvia|LB,Lebanon|LS,Lesotho|LR,Liberia|LY,Libya|LI,Liechtenstein|LT,Lithuania|LU,Luxembourg|MO,Macao|MG,Madagascar|MW,Malawi|MY,Malaysia|MV,Maldives|ML,Mali|MT,Malta|MH,Marshall Islands|MQ,Martinique|MR,Mauritania|MU,Mauritius|YT,Mayotte|MX,Mexico|FM,Micronesia|MD,Moldova|MC,Monaco|MN,Mongolia|ME,Montenegro|MS,Montserrat|MA,Morocco|MZ,Mozambique|MM,Myanmar|NA,Namibia|NR,Nauru|NP,Nepal|NL,Netherlands|NC,New Caledonia|NZ,New Zealand|NI,Nicaragua|NE,Niger|NG,Nigeria|NU,Niue|NF,Norfolk Island|MK,North Macedonia|MP, Northern Mariana Islands|NO,Norway|OM,Oman|PK,Pakistan|PW,Palau|PS,Palestine|PA,Panama|PG,Papua New Guinea|PY,Paraguay|PE,Peru|PH,Philippines|PN,Pitcairn|PL,Poland|PT,Portugal|PR,Puerto Rico|QA,Qatar|RE,Réunion|RO,Romania|RU,Russian Federation|RW,Rwanda|BL,Saint Barthélemy|SH,Saint Helena|KN,Saint Kitts and Nevis|LC,Saint Lucia|MF,Saint Martin (French part)|PM,Saint Pierre and Miquelon|VC,Saint Vincent and the Grenadines|WS,Samoa|SM,San Marino|ST,Sao Tome and Principe|SA,Saudi Arabia|SN,Senegal|RS,Serbia|SC,Seychelles|SL,Sierra Leone|SG,Singapore|SX,Sint Maarten (Dutch part)|SK,Slovakia|SI,Slovenia|SB,Solomon Islands|SO,Somalia|ZA,South Africa|GS,South Georgia and the South Sandwich Islands|SS,South Sudan|ES,Spain|LK,Sri Lanka|SD,Sudan|SR,Suriname|SJ,Svalbard and Jan Mayen|SE,Sweden|CH,Switzerland|SY,Syrian Arab Republic|TW,Taiwan|TJ,Tajikistan|TZ,Tanzania|TH,Thailand|TL,Timor-Leste|TG,Togo|TK,Tokelau|TO,Tonga|TT,Trinidad and Tobago|TN,Tunisia|TR,Turkey|TM,Turkmenistan|TC,Turks and Caicos Islands|TV,Tuvalu|UG,Uganda|UA,Ukraine|AE,United Arab Emirates|GB,United Kingdom|US,United States|UM,United States Minor Outlying Islands|UY,Uruguay|UZ,Uzbekistan|VU,Vanuatu|VE,Venezuela|VN,Viet Nam|VG,Virgin Islands|VI,Virgin Islands|WF,Wallis and Futuna|EH,Western Sahara|YE,Yemen|ZM,Zambia|ZW,Zimbabwe"; var countries = country_data.split("|"); for (var i = 0; i < countries.length; i++) { var country = countries[i].split(","); var countryCodedata = country[0]; var Visitorcountry = country[1]; if(countryCode== countryCodedata) { var VisitorCountryName=Visitorcountry; } } var visitorclass = document.getElementsByClassName('primebVisitorCountry'); for (var i = 0; i < visitorclass.length; i++) { var issetvisitorcountryrule = visitorclass[i].getAttribute('visitorcountryrule'); var secondChild = visitorclass[i].querySelector('div:nth-child(1)'); var thirdChild = secondChild.querySelector('div:nth-child(1)'); if( issetvisitorcountryrule == '1'){ var elements = document.querySelectorAll('.primebVisitorCountryName'); elements.forEach(function(element) { element.textContent = VisitorCountryName; }); } } } function checkprimebjquery() { if (window.jQuery) { checkVariantInventory("6 SEATER: 180cm * 90cm * 75cm","first"); $(document).on("click", ".variants-ui__option-value-name", function() { var optionMap = []; if(optionMap.length == 0){ setTimeout(function(){ optionMap = $('.variants-ui__option-values').attr("data-variant-option-chosen-value"); checkVariantInventory(optionMap,"first"); }, 100); } }); $(document).on("change", ".select2-hidden-accessible", function() { var optionMap = []; if(optionMap.length == 0){ $(".select2-hidden-accessible").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $('select[name="option1"]').on('change', function(){ var optionMap = []; optionMap[0] = $(this).val(); checkVariantInventory(optionMap); }); $(document).on("click", ".bls__color-dropdown", function() { var optionMap = []; if(optionMap.length == 0){ $("span.bls__color-dropdown-value").each(function(key) { optionMap[key] = $(this).text(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".single-option-selector", function() { var optionMap = []; if(optionMap.length == 0){ $(".single-option-selector").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".ProductForm__Option select", function() { var optionMap = []; if(optionMap.length == 0){ $(".ProductForm__Option select").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".tt-options-swatch li", function() { var optionMap = []; if(optionMap.length == 0){ $(".tt-options-swatch li").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".swatch-element", function() { var optionMap = []; if(optionMap.length == 0){ $(".swatch-element").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".form__input--select", function() { var optionMap = []; if(optionMap.length == 0){ $(".form__input--select").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".product-form__input select", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-form__input select").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".vario-variant", function() { var dataArray = new Array(); $('.vario-variants .sv_active').each(function(){ var dataValue = $(this).data('value'); dataArray.push(dataValue); }); setTimeout(function() { checkVariantInventory(dataArray); }, 2000); }); $(document).on("change", ".sgl-opt-selector-product-template", function() { var optionMap = []; if(optionMap.length == 0){ $(".sgl-opt-selector-product-template").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".tt-options-swatch li", function() { var optionMap = []; if(optionMap.length == 0){ $(".tt-options-swatch li").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".product-option-value-item", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-option-value-item").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".clickyboxes a", function() { var optionMap = []; if(optionMap.length == 0){ $(".clickyboxes a").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", "[data-product-options-container] .form-field-input", function() { var optionMap = []; if(optionMap.length == 0){ $("[data-product-options-container] .form-field-input").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", "#data-product-option-0", function() { var optionMap = []; if(optionMap.length == 0){ $("#data-product-option-0").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".product-options__section .active", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-options__section .active").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".product-options__value", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-options__value").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".variant-input", function() { var optionMap = []; if(optionMap.length == 0){ $(".variant-input").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".product-form__single-selector", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-form__single-selector").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".gt_swatches--select.gf_active", function() { var optionMap = []; if(optionMap.length == 0){ $(".gt_swatches--select.gf_active").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".nt-swatch", function() { var optionMap = []; if(optionMap.length == 0){ $(".nt-swatch").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("change", ".disclosure--input", function() { var optionMap = []; if(optionMap.length == 0){ $(".disclosure--input").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".block-swatch input", function() { var optionMap = []; if(optionMap.length == 0){ $(".block-swatch input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".option-selector__btns input", function() { var optionMap = []; if(optionMap.length == 0){ $(".option-selector__btns input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".product-form__input input", function() { var optionMap = []; if(optionMap.length == 0){ $(".product-form__input input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); $(document).on("click", ".swatch-container input", function() { var optionMap = []; if(optionMap.length == 0){ $(".swatch-container input[type=radio]:checked").each(function(key) { optionMap[key] = $(this).val(); }); checkVariantInventory(optionMap); } }); }else{ setTimeout(function() { checkprimebjquery() }, 2000); } } // document.addEventListener('DOMContentLoaded', (event) => { // primebCountdownTimer(); // resizeFunction(); // document.getElementById("prime-modal-close").onclick = function() {mymodalprimeb()}; // window.onclick = function(event) { // if (event.target.classList[1] == 'prime-modal-open') { // mymodalprimeb(); // } // } // }); window.addEventListener('load', (event) => { primebCountdownTimer(); //getCountryCode(); setTimeout(function(){ getCountryCode(); },1000); document.getElementById("prime-modal-close").onclick = function() {mymodalprimeb()}; window.onclick = function(event) { if (event.target.classList[1] == 'prime-modal-open') { mymodalprimeb(); } } }); // Function to be invoked when the element becomes visible function handleVisibleElement(entries, observer) { entries.forEach((entry) => { if (entry.isIntersecting) { // Element is visible, perform desired actions here // Call your function here primebCountdownTimer(); //getCountryCode(); setTimeout(function(){ getCountryCode(); },1000); // Stop observing the target element observer.unobserve(entry.target); } }); } // Target element with the class 'product-recommendations' const targetElement = document.querySelector('.product-recommendations'); if(targetElement) { // Create a new Intersection Observer instance const observer = new IntersectionObserver( (entries) => { // Use a debounce function to limit the number of function invocations debounce(handleVisibleElement, 100)(entries, observer); }, { root: null, // Viewport threshold: 0.5, // 50% of the element must be visible to trigger the callback } ); observer.observe(targetElement); } // Debounce function to limit the rate of function invocations function debounce(func, delay) { let timeoutId; return function (...args) { clearTimeout(timeoutId); timeoutId = setTimeout(() => { func.apply(this, args); }, delay); }; } function expdeliverydate(value,count) { var weekdays = '6,0'; var dateformatselected = 'dddd, MMMM D'; var datelang = 'en'; var primebTextdate = document.getElementsByClassName('primebText'); var realvalue = value; var pos = realvalue.indexOf("[[today"); var pos2 = realvalue.indexOf("]]"); var startres = realvalue.slice(pos+8, pos2); realvalue = realvalue.replace("[[today,", "" ); realvalue = realvalue.replace("]]", "" ); var pos3 = realvalue.indexOf("[[today"); var pos4 = realvalue.indexOf("]]"); var endres = realvalue.slice(pos3+8, pos4); realvalue = realvalue.replace("[[today,", "" ); realvalue = realvalue.replace("]]", "" ); var getlang = startres.split(","); var wrongdays = weekdays.split(","); // var days = {sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6}; var startDate = new Date(new Date().getTime()+(parseInt(startres)*24*60*60*1000)); var today = new Date(new Date().getTime()); var firstinc=0; while (today <= startDate) { var getday = String(today.getDay()); if(wrongdays.indexOf(getday) != -1){ startDate.setDate(startDate.getDate() + 1); firstinc++; } today.setDate(today.getDate() + 1); } var setlang = 'en'; if(getlang.length > 1){ setlang = getlang[1]; } moment.locale(setlang); value = value.replace("[[today,"+startres+"]]", moment(startDate).locale(setlang).format(dateformatselected)); // value = value.replace("[[today,"+startres+"]]", moment(startDate).format(dateformatselected)); var extradays = firstinc+parseInt(endres); var endDate = new Date(new Date().getTime()+(extradays*24*60*60*1000)); var todayend = startDate; var secinc=0; while (todayend <= endDate) { var getday = String(todayend.getDay()); if(wrongdays.indexOf(getday) != -1){ endDate.setDate(endDate.getDate() + 1); secinc++; } todayend.setDate(todayend.getDate() + 1); } value = value.replace("[[today,"+endres+"]]", moment(endDate).locale(setlang).format(dateformatselected)); // value = value.replace("[[today,"+endres+"]]", moment(endDate).format(dateformatselected)); primebTextdate[count].innerHTML = value; var getchild = primebTextdate[count].getElementsByClassName('prime-counter'); if(getchild[0]){ getchild[0].classList.remove("prime-counter"); } } function checkVariantInventory(optionMap,myfirstone='') { var productname = '22-marble-dining-table'; var variantproductid = '8097817788714'; var mydomclass = document.getElementsByClassName('primebVariantInventory'); if(mydomclass.length > 0){ if(optionMap.length > 0){ var realval = ''; if(myfirstone == "first"){ realval = optionMap; }else{ for(var i = 0; i < optionMap.length; i++){ var spaces = ' / '; if(i == 0){ spaces = ''; } realval += spaces+optionMap[i]; } } var primeBadgesAll = document.getElementsByClassName('primeBadges'); for (var i = 0; i < primeBadgesAll.length; i++) { var primebOuterClass = primeBadgesAll[i].getAttribute('data-primebOuterClass'); var primebOuterStyle = primeBadgesAll[i].getAttribute('data-primebOuterStyle'); var primebInnerClass = primeBadgesAll[i].getAttribute('data-primebInnerClass'); var primebInnerStyle = primeBadgesAll[i].getAttribute('data-primebInnerStyle'); var primebGroup = primeBadgesAll[i].getAttribute('data-primebGroup'); var primebProductId = primeBadgesAll[i].getAttribute('data-primeproductsid'); if(primebProductId == variantproductid){ hitprimebpage(productname,variantproductid,primebOuterClass,primebOuterStyle,primebInnerClass,primebInnerStyle,primebGroup,realval) } } } } setTimeout(function(){ getCountryCode(); },1000); } function hitprimebpage(productname,variantproductid,primebOuterClass,primebOuterStyle,primebInnerClass,primebInnerStyle,primebGroup,realval) { var result = Math.random().toString(36).substring(2,7); if(primebGroup == 1){ var urlhit = productname+'/?view=primebvariant&sort_by='+result+'&outerclass=='+primebOuterClass+'&outerstyle=='+primebOuterStyle+'&innerclass=='+primebInnerClass+'&innerstyle=='+primebInnerStyle+'&group==1&page=='+realval; }else if(primebGroup == 2){ var urlhit = productname+'/?view=primebvarianttwo&sort_by='+result+'&outerclass=='+primebOuterClass+'&outerstyle=='+primebOuterStyle+'&innerclass=='+primebInnerClass+'&innerstyle=='+primebInnerStyle+'&group==2&page=='+realval; }else{ var urlhit = productname+'/?view=primebvariantthree&sort_by='+result+'&outerclass=='+primebOuterClass+'&outerstyle=='+primebOuterStyle+'&innerclass=='+primebInnerClass+'&innerstyle=='+primebInnerStyle+'&group==3&page=='+realval; } var xhr = new XMLHttpRequest(); xhr.open("GET", urlhit, true); xhr.onreadystatechange = function() { if (this.readyState === XMLHttpRequest.DONE) { if (this.status === 200) { if(this.responseText == 0){ $('.outerprimeb'+variantproductid+'-'+primebGroup+' .primebText .primebVariantInventory').html("0"); $('.outerprimeb'+variantproductid+'-'+primebGroup+' .prime-counter').removeClass("prime-counter"); $('.outerprimeb'+variantproductid+'-'+primebGroup+' .hidevariant').remove(); }else{ $('.outerprimeb'+variantproductid+'-'+primebGroup).replaceWith( this.responseText ); $('.outerprimeb'+variantproductid+'-'+primebGroup+' .prime-counter').removeClass("prime-counter"); var countryclassprimeb = document.getElementsByClassName('primebCountry'); for (var i = 0; i < countryclassprimeb.length; i++) { var counrtylist = countryclassprimeb[i].getAttribute('data-countryselected'); var position = counrtylist.search(primebcountryName); if(position < 0){ countryclassprimeb[i].style.cssText = 'display:none !important'; }else{ countryclassprimeb[i].style.display= 'block'; } } // primebcountryName = ''; setTimeout(function(){ primebCountdownTimer(); }, 500); } } else { console.log('failed variant req'); } } }; xhr.send(); } function primebCountdownTimer() { screensizeFunction(); setTimeout(function(){ var primebText = document.getElementsByClassName('primebText'); if(primebText[0]){ for (var i = 0; i < primebText.length; i++) { var value = primebText[i].innerHTML; if( value.indexOf("[[today") != -1 ){ expdeliverydate(value,i); } } } var primebText = document.getElementsByClassName('primebText'); if(primebText[0]){ for (var i = 0; i < primebText.length; i++) { var value = primebText[i].innerHTML; if( value.indexOf("CountdownTimer:") != -1 ){ myTimerprime2(value,i); } } } var getpage = 'product'; var primebText2 = document.getElementsByClassName('primebText primebVariantInventory'); if(primebText2[0]){ if(getpage == 'collection'){ for (var i = 0; i < primebText2.length; i++) { var oldloop = primebText2[i].parentElement; var newloop = oldloop.parentElement; var newloop2 = newloop.parentElement; newloop2.remove(); } } } }, 1000); if(userid == 8824) { removebadge(); } setTimeout(function(){ var primeinstances2 = tippy('[data-tippy-content]'); var primebsku = ''; var skuclass = document.getElementsByClassName('primebsku'); if(primebsku == 0){ for (var i = 0; i < skuclass.length; i++) { if(skuclass[i].dataset.sku == 0){ var parentsku = skuclass[i].parentElement; var parent2sku = parentsku.parentElement; parent2sku.style.cssText = 'display:none !important'; } } } }, 1000); if(countryprimeb == 'primebadgecountry'){ countryprimeb = 'newprimebadgecountry'; var countrycount = document.getElementsByClassName('primebCountry'); if (thaliacustomercountry == '') { thaliaCustomerCookie(); thaliacustomercountry = thaliaGetCookie("thaliacustomercountry"); var mycountryprimeb = thaliacustomercountry; } else { var mycountryprimeb = thaliacustomercountry; } if (countrycount.length > 0) { var countryclassprimeb = document.getElementsByClassName('primebCountry'); for (var i = 0; i < countryclassprimeb.length; i++) { var primebcounrtylist = countryclassprimeb[i].getAttribute('data-countryselected'); var position = primebcounrtylist.search(mycountryprimeb); primebcountryName = mycountryprimeb; if(position < 0){ countryclassprimeb[i].style.cssText = 'display:none !important'; }else{ countryclassprimeb[i].style.display= 'block'; countryclassprimeb[i].setAttribute('countryrule', '1'); if (countryclassprimeb[i].classList.contains('primebScreenSize')) { var screenlist = countryclassprimeb[i].getAttribute('data-screensizeselected'); var screensizeArray = screenlist.split(","); var smdevice = window.matchMedia( "screen and (max-width: 767.98px)" ); var mddevice = window.matchMedia( "screen and (min-width: 768px) and (max-width: 991.98px)" ); var lgdevice = window.matchMedia( "screen and (min-width: 992px) and (max-width: 1199.98px)" ); var xldevice = window.matchMedia( "(min-width: 1200px)" ); if (smdevice.matches ){ if(screensizeArray[0] == '1'){ // countryclass[i].style.display= 'block'; }else{ countryclassprimeb[i].style.setProperty("display", "none", "important"); } }else if( mddevice.matches){ if(screensizeArray[1] == '1'){ // countryclass[i].style.display= 'block'; }else{ countryclassprimeb[i].style.setProperty("display", "none", "important"); } }else if(lgdevice.matches){ if(screensizeArray[2] == '1'){ // countryclass[i].style.display= 'block'; }else{ countryclassprimeb[i].style.setProperty("display", "none", "important"); } }else{ if(screensizeArray[3] == '1'){ // countryclass[i].style.display= 'block'; }else{ countryclassprimeb[i].style.setProperty("display", "none", "important"); } } } } } if(userid == 8824) { removebadge(); } } }; var mypage = 'product.dine-design-template'; var myproductid = '8097817788714'; for (var i = 0; i < 6; i++) { setTimeout(function(){ primesetlivevisit(mypage,myproductid); }, 500); } } function primesetlivevisit(mypage,myproductid) { setTimeout(function(){ var settimelive = '2'; var setvisitlimit = '2'; var d = new Date(); var time = setcookietimestamp(settimelive); var mytime = ''; if(settimelive < 5){ mytime = (time * 60 ); }else if(settimelive > 4 && settimelive < 8){ mytime =(time * 60 * 60 ); }else if(settimelive > 7){ mytime = (time * 24 * 60 * 60 ); } var primeloop2 = document.getElementsByClassName('primebloop'); for (var i = 0; i < primeloop2.length; i++) { var smallloop2 = primeloop2[i].parentElement; var parentloop2 = smallloop2.getAttribute('data-primeproductid'); var myuser = getCookieprime("primevisits"+parentloop2); if (myuser != "") { myhttpreq(parentloop2,0,mytime,setvisitlimit); } else { myhttpreq(parentloop2,1,mytime,setvisitlimit); setCookieprime("primevisits"+parentloop2, 'setprimevisits', settimelive); } } var primeloop = document.getElementsByClassName('primebloop'); for (var i = 0; i < primeloop.length; i++) { if(mypage == 'product'){ var smallloop = primeloop[i].parentElement; var parentloop = smallloop.getAttribute('data-primeproductid'); if(parentloop == myproductid){ primeloop[i].classList.add("primevisitsb"+parentloop); }else{ var removeloop = primeloop[i].parentElement; var removeloop2 = removeloop.parentElement; var removeloop3 = removeloop2.parentElement; removeloop3.style.visibility = 'hidden'; primeloop[i].classList.remove("primebloop"); } }else{ var oldloop = primeloop[i].parentElement; var newloop = oldloop.parentElement; var newloop2 = newloop.parentElement; newloop2.style.visibility = 'hidden'; primeloop[i].classList.remove("primebloop"); newloop2.remove(); } } }, 1000); } function myhttpreq(lastid,mynew,gettime,setvisitlimit) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var pageliveview = JSON.parse(this.responseText); var primevisits = document.getElementsByClassName("primevisitsb"+lastid); for (var i = 0; i < primevisits.length; i++) { if(setvisitlimit < pageliveview.pageviews){ primevisits[i].innerHTML = pageliveview.pageviews; var removeloop = primevisits[i].parentElement; var removeloop2 = removeloop.parentElement; var removeloop3 = removeloop2.parentElement; removeloop3.style.visibility = 'visible'; }else{ var removeloop = primevisits[i].parentElement; var removeloop2 = removeloop.parentElement; var removeloop3 = removeloop2.parentElement; removeloop3.style.visibility = 'hidden'; primevisits[i].classList.remove("primebloop"); if(userid == 8824) { removebadge(); } } } } }; xhttp.open("GET","https://visitcounterstaging.thalia-apps.com/?shopifyid="+lastid+"&new="+mynew+"&time="+gettime, true); xhttp.send(); } function mymodalprimeb() { var target = document.getElementById("prime-modal-window"); var parenttarget = target.parentElement; if (parenttarget.classList.contains('prime-modal-open')) { parenttarget.classList.remove('prime-modal-open'); document.getElementById('prime-modal-content').innerHTML = ''; } } window.addEventListener('resize', resizeFunction); let lastUrl = location.href; new MutationObserver(() => { const url = location.href; if (url !== lastUrl) { lastUrl = url; resizeFunction(); } }).observe(document, {subtree: true, childList: true}); if(userid == 3973) { $( window ).on( "load", function() { setTimeout(function(){ resizeFunction(); }, 3000); }); } else{ window.addEventListener('load', resizeFunction); } function removebadge() { var primeb = document.getElementsByClassName('primebDesktop'); if(primeb[0]){ var remove_div1 = document.getElementsByClassName('primeBadges'); remove_div1[0].style.display= 'block'; } else { var remove_div1 = document.getElementsByClassName('primeBadges'); if(remove_div1[0]){ remove_div1[0].style.cssText = 'display:none !important'; // remove_div1[0].parentNode.removeChild(remove_div1[0]); } } } window.addEventListener('resize', screensizeFunction); function resizeFunction() { var fontadjust = document.getElementsByClassName('prime-font-adjust'); var heightadjust = document.getElementsByClassName('prime-height-adjust'); var xsdevice = window.matchMedia( "(max-width: 575.98px)" ); var smdevice = window.matchMedia( "(max-width: 767.98px)" ); var mddevice = window.matchMedia( "(max-width: 991.98px)" ); var lgdevice = window.matchMedia( "(max-width: 1199.98px)" ); var xldevice = window.matchMedia( "(min-width: 1200px)" ); for (var i = 0; i < fontadjust.length; i++) { var mobilesize = ''; var tabletsize = ''; mobilesize = fontadjust[i].getAttribute('data-mobilesize'); tabletsize = fontadjust[i].getAttribute('data-tabletsize'); fontadjust[i].style.fontSize = 'inherit'; if (xsdevice.matches || smdevice.matches ){ if(mobilesize > 0){ fontadjust[i].style.fontSize = mobilesize+'px'; } }else if(mddevice.matches){ if(tabletsize > 0){ fontadjust[i].style.fontSize = tabletsize+'px'; } } } var heightadjust = document.getElementsByClassName('prime-height-adjust'); for (var i = 0; i < heightadjust.length; i++) { var image = heightadjust[i].getElementsByClassName("primebImage"); var mobileheight = ''; var tabletheight = ''; var defaultHeight = heightadjust[i].getAttribute('data-defaultheight'); mobileheight = heightadjust[i].getAttribute('data-mobileheight'); tabletheight = heightadjust[i].getAttribute('data-tabletheight'); var imgsrcsvg = image[0].getAttribute("src"); var present = imgsrcsvg.search("svg"); if(present > 0){ image[0].style.height = defaultHeight+'px'; image[0].style.maxHeight = defaultHeight+'px'; setTimeout(function(){ $('.primebImage').show(); }, 2000); if (xsdevice.matches || smdevice.matches ){ if(mobileheight > 0){ var heightxs=mobileheight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); } else{ var heightxs = defaultHeight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); } }else if(mddevice.matches){ if(tabletheight > 0){ var heightmd=tabletheight+'px'; image[0].style.maxHeight = heightmd; setTimeout(function(){ $('.primebImage').show(); }, 2000); } else{ var heightxs = defaultHeight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); } } }else{ //image[0].style.maxHeight = defaultHeight+'px'; //$('.primebImage').show(); if (xsdevice.matches || smdevice.matches ){ if(mobileheight > 0){ var heightxs=mobileheight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); }else{ var heightxs = defaultHeight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); } }else if(mddevice.matches){ if(tabletheight > 0){ var heightmd=tabletheight+'px'; image[0].style.maxHeight = heightmd; setTimeout(function(){ $('.primebImage').show(); }, 2000); } else{ var heightxs = defaultHeight+'px'; image[0].style.maxHeight = heightxs; setTimeout(function(){ $('.primebImage').show(); }, 2000); } } else if(xldevice.matches){ image[0].style.maxHeight = defaultHeight+'px'; setTimeout(function(){ $('.primebImage').show(); }, 2000); } } } } function screensizeFunction() { var screensizeclass = document.getElementsByClassName('primebScreenSize'); for (var i = 0; i < screensizeclass.length; i++) { var issetcountryrule = screensizeclass[i].getAttribute('countryrule'); if( issetcountryrule == '1'){ var screenlist = screensizeclass[i].getAttribute('data-screensizeselected'); var screensizeArray = screenlist.split(","); var smdevice = window.matchMedia( "screen and (max-width: 767.98px)" ); var mddevice = window.matchMedia( "screen and (min-width: 768px) and (max-width: 991.98px)" ); var lgdevice = window.matchMedia( "screen and (min-width: 992px) and (max-width: 1199.98px)" ); var xldevice = window.matchMedia( "(min-width: 1200px)" ); if (smdevice.matches ){ if(screensizeArray[0] == '1'){ screensizeclass[i].style.display= 'block'; }else{ screensizeclass[i].style.setProperty("display", "none", "important"); } }else if( mddevice.matches){ if(screensizeArray[1] == '1'){ screensizeclass[i].style.display= 'block'; }else{ screensizeclass[i].style.setProperty("display", "none", "important"); } }else if(lgdevice.matches){ if(screensizeArray[2] == '1'){ screensizeclass[i].style.display= 'block'; }else{ screensizeclass[i].style.setProperty("display", "none", "important"); } }else{ if(screensizeArray[3] == '1'){ screensizeclass[i].style.display= 'block'; }else{ screensizeclass[i].style.setProperty("display", "none", "important"); } } } } } function redirectLinkbadge(badgeval,links,primebadgeid,modalsize) { if(badgeval != ''){ var badgelink = badgeval; if(links == 0){ window.location.href = badgelink; }else{ window.open(badgelink,'_blank'); } } if(links == 2){ var target = document.getElementById("prime-modal-outer"); var myclasses = ''; if(modalsize == 0){ myclasses = 'prime-modal-window prime-modal-small'; }else if(modalsize == 2){ myclasses = 'prime-modal-window prime-modal-large'; }else{ myclasses = 'prime-modal-window'; } document.getElementById('prime-modal-outer').classList.add('prime-modal-open'); var setclass = document.getElementById('prime-modal-window'); setclass.className = ''; setclass.className = myclasses; var xhr = new XMLHttpRequest(); var url = '/?view=primemeta&id==badge-popup-'+primebadgeid; xhr.open("GET", url, true); xhr.setRequestHeader("Cache-Control", "max-age=3600"); xhr.onreadystatechange = function() { if (this.readyState == 4) { if (this.status === 200) { document.getElementById('prime-modal-content').innerHTML = this.responseText; } else { console.log(this.status, this.statusText); } } }; xhr.send(); } } function toValidDateprime2(datestring){ return datestring.replace(/(\d{2})(\/)(\d{2})/, "$3$2$1"); } function myTimerprime2(newvalue,count) { var primebText2 = document.getElementsByClassName('primebText'); var againvalue = newvalue; var pos3 = newvalue.indexOf("[[ CountdownTimer:"); var pos4 = newvalue.indexOf("M,"); if(pos4 < 0){ pos4 = newvalue.indexOf(" ]]"); var res = newvalue.slice(pos3+18, pos4); }else{ var res = newvalue.slice(pos3+18, pos4+1); } var pos5 = newvalue.indexOf(" ]]"); var pos6 = newvalue.indexOf("|"); var endres = againvalue.slice(pos3+18, pos5); if(pos6 < 0){ var customtext = ''; }else{ var customtext = againvalue.slice(pos6+1, pos5); } newvalue = newvalue.replace("[[ CountdownTimer:", "" ); newvalue = newvalue.replace(" ]]", "" ); endres = endres.replace(" |"+customtext , "" ); var getlang = endres.split(","); var setlang2 = 'en'; if(getlang.length > 1){ if(getlang[1] == 'custom'){ if (getlang[2] == null){ var setdays = ''; }else{ var setdays = getlang[2]; } if (getlang[3] == null){ var sethours = ''; }else{ var sethours = getlang[3]; } if (getlang[4] == null){ var setminutes = ''; }else{ var setminutes = getlang[4]; } if (getlang[5] == null){ var setseconds = ''; }else{ var setseconds = getlang[5]; } }else{ setlang2 = getlang[1]; var setmoment = moment(); setmoment.locale(setlang2); setmoment.subtract({hours: 0, minutes: 0, seconds: 35}); var getseconds = setmoment.toNow(true); setmoment.subtract({hours: 0, minutes: 10, seconds: 59}); var getminutes = setmoment.toNow(true); setmoment.subtract({hours: 5, minutes: 59, seconds: 59}); var gethours = setmoment.toNow(true); setmoment.subtract({hours: 222, minutes: 59, seconds: 59}); var getdays = setmoment.toNow(true); var setseconds = getseconds.split(" ").pop(); var setminutes = getminutes.split(" ").pop(); var sethours = gethours.split(" ").pop(); var setdays = getdays.split(" ").pop(); } }else{ var setdays = "days"; var sethours = "hours"; var setminutes = "minutes"; var setseconds = "seconds"; } var x = setInterval(function() { let end = new Date(toValidDateprime2(res)); let start = new Date(); var remaintime = end - start; var days = Math.floor(remaintime / (1000 * 60 * 60 * 24)); var hours = Math.floor((remaintime % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var minutes = Math.floor((remaintime % (1000 * 60 * 60)) / (1000 * 60)); var seconds = Math.floor((remaintime % (1000 * 60)) / 1000); var realtimeleft = days +" "+ setdays +" "+ hours +" " + sethours +" "+ minutes +" "+ setminutes +" "+ seconds +" " + setseconds + " "; if(seconds < 0 && customtext == ''){ realtimeleft = "0 "+setdays+" 0 "+sethours+" 0 "+setminutes+" 0 "+setseconds; }else if(seconds < 0 && customtext != ''){ newvalue = customtext; }else{ newvalue = newvalue.replace(" |"+customtext , ""); } if(getlang[1] == 'custom'){ realtimeleft=''; if(setdays != ''){ realtimeleft = days +""+ setdays+ " "; } if(sethours != ''){ realtimeleft = realtimeleft + hours +"" + sethours +" "; } if(setminutes != ''){ realtimeleft = realtimeleft + minutes +""+ setminutes +" "; } if(setseconds != ''){ realtimeleft = realtimeleft + seconds +"" + setseconds + " "; } } primebText2[count].innerHTML = newvalue.replace(endres,realtimeleft); primebText2[count].classList.remove("prime-counter"); if (remaintime < 0) { clearInterval(x); } }, 1000); } function setCookieprime(cname, cvalue, exdays) { var d = new Date(); var time = setcookietimestamp(exdays); if(exdays < 5){ d.setTime(d.getTime() + (time * 60 * 1000)); }else if(exdays > 4 && exdays < 8){ d.setTime(d.getTime() + (time * 60 * 60 * 1000)); }else if(exdays > 7){ d.setTime(d.getTime() + (time * 24 * 60 * 60 * 1000)); } var expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function getCookieprime(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } function setcookietimestamp(time) { var realtime=''; if(time==1){ realtime=1; }else if(time==2){ realtime=5; }else if(time==3){ realtime=10; }else if(time==4){ realtime=30; }else if(time==5){ realtime=1; }else if(time==6){ realtime=6; }else if(time==7){ realtime=12; }else if(time==8){ realtime=1; }else if(time==9){ realtime=7; }else if(time==10){ realtime=15; }else if(time==11){ realtime=30; } return realtime; } </script> <script type="text/javascript"> //code logic for thaliacustomercountry function thaliaSetCookie(cname, cvalue, exdays) { console.log('in set cookie') const d = new Date(); d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000)); let expires = "expires="+d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; } function thaliaGetCookie(cname) { let name = cname + "="; let ca = document.cookie.split(';'); for(let i = 0; i < ca.length; i++) { let c = ca[i]; while (c.charAt(0) == ' ') { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } document.addEventListener("DOMContentLoaded", function(event) { thaliaCustomerCookie(); }); var thaliacustomercountry = ''; function thaliaCustomerCookie(){ thaliacustomercountry = thaliaGetCookie("thaliacustomercountry"); if (thaliacustomercountry != "") { } else { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (xhttp.readyState == 4 && xhttp.status == 200) { var countryData = JSON.parse(xhttp.responseText); thaliacustomercountry = countryData.country thaliaSetCookie("thaliacustomercountry", countryData.country, 2); } }; xhttp.open("GET", "https://loc2.thapi.workers.dev?key=4VG91K454I1nnnwm", true); xhttp.send(); } } //end code logic for thaliacustomercountry </script> <!-- Start of homecartelhelp Zendesk Widget script --> <script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=9a2d0242-4166-41d4-83ea-575f1462b193"> </script> <!-- End of homecartelhelp Zendesk Widget script -->