Dura Vista LTD
Back to Sign In

Office

A3 Lochar industrial Park, 13 Catherinesfield Rd, Dumfries, DG1 3PJ

Phone: 01387 444 100

Mobile: 07301 950 170


Useful Links

Contact us


WhatsApp Us

© 2025 Dura Vista. All rights reserved. Privacy / Тerms & Conditions / Contact Us

Items have been added to cart.
One or more items could not be added to cart due to certain restrictions.
View CartView Quote
Added to cartAdded
- Can't add this product to the cart now. Please try again later.
Quantity updated
- An error occurred. Please try again later.
Deleted from cart
- Can't delete this product from the cart at the moment. Please try again later.
// === CONFIG === var promoProductId = "72414700002894004"; // NRC5-20-FREE product ID var promoCode = "FREEROLL100"; // Coupon code (cart-level discount) // === HELPERS === // Add the promo product to the cart function addPromoProductToCart() { if (window.__promoProductAdding) return; // avoid double-add window.__promoProductAdding = true; fetch("/store/api/v1/cart", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ line_items: [{ product_id: promoProductId, quantity: 1 }] }) }) .then(function () { // Reload to show item + discount window.location.reload(); }) .catch(function () { window.__promoProductAdding = false; }); } // Check if promo product already exists in cart function promoProductAlreadyInCart() { // Zoho usually adds a data-product_id attribute on cart line items var selector = '[data-product_id="' + promoProductId + '"]'; return !!document.querySelector(selector); } // Check if the promo coupon is applied successfully function promoCouponIsApplied() { // 1) Zoho often shows applied coupon code in these elements: var appliedEls = document.querySelectorAll( ".zc-cart-applied-coupon-code, .zc-coupon-applied-code, .zc-coupon-applied" ); for (var i = 0; i < appliedEls.length; i++) { var txt=(appliedEls[i].textContent || "").toUpperCase(); if (txt.indexOf(promoCode.toUpperCase()) !== -1) return true; } // 2) Fallback: look for a generic "Coupon Applied" container that // contains the code but is NOT showing an error. var successMsg=document.querySelector(".zc-coupon-success, .coupon-success, .coupon-applied"); if (successMsg) { var txt2=(successMsg.textContent || "").toUpperCase(); if (txt2.indexOf(promoCode.toUpperCase()) !== -1) return true; } return false; } document.addEventListener("DOMContentLoaded", function () { // Only bother on cart/ checkout pages var path=window.location.pathname || ""; if (path.indexOf("/cart")=== -1 && path.indexOf("/checkout")=== -1) { return; } function checkAndAddPromo() { if (promoCouponIsApplied() && !promoProductAlreadyInCart()) { addPromoProductToCart(); } } // Initial check (in case coupon was already applied on load) setTimeout(checkAndAddPromo, 800); // Watch for DOM updates (coupon applied after clicking "Apply") var observer=new MutationObserver(function () { checkAndAddPromo(); }); observer.observe(document.body, { childList: true, subtree: true }); });