Contact Us On Whatsapp

Search
VAT Inclusive VAT Exclusive
VAT Inclusive
Shop All Products
    Menu Close
    0.0 0
    Write your own review Close
    • Only registered users can write reviews
    • Product can be reviewed only after purchasing it
    *
    *
    • Bad
    • Excellent
    // Mailchimp validation script loader (function () { var mc = document.createElement("script"); mc.type = "text/javascript"; mc.src = "//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js"; document.head.appendChild(mc); })(); // Mailchimp field setup (function ($) { window.fnames = []; window.ftypes = []; fnames[0] = "EMAIL"; ftypes[0] = "email"; fnames[4] = "PHONE"; ftypes[4] = "phone"; fnames[1] = "FNAME"; ftypes[1] = "text"; fnames[2] = "LNAME"; ftypes[2] = "text"; fnames[9] = "PROD1"; ftypes[9] = "text"; fnames[6] = "MMERGE6"; ftypes[6] = "dropdown"; fnames[3] = "ADDRESS"; ftypes[3] = "address"; fnames[5] = "BIRTHDAY";ftypes[5] = "birthday"; fnames[7] = "COMPX"; ftypes[7] = "radio"; fnames[8] = "MMERGE8"; ftypes[8] = "text"; })(jQuery); var $mcj = jQuery.noConflict(true); document.addEventListener("DOMContentLoaded", function () { // Get all product links in your grid var links = document.querySelectorAll("#clondalkin-category-grid a.clondalkin-category-item"); // Get the Mailchimp field var prodField = document.getElementById("mce-PROD1"); if (!links.length || !prodField) return; // Function to set the product name into the field function setProduct(name) { prodField.value = name; // trigger input event so Mailchimp validation sees the change prodField.dispatchEvent(new Event("input", { bubbles: true })); console.log("Set product:", name); } links.forEach(function (a) { a.addEventListener("click", function (event) { // Pull from data-product if present, else use alt var img = a.querySelector("img"); var name = a.getAttribute("data-product") || (img ? img.alt : ""); if (name) { setProduct(name); } // Do NOT prevent default, so tel: still works }); }); });