Tell us what you need and we'll respond within 2 business hours with pricing and availability.
✅
Quote Request Sent!
We've received your request and will follow up within 2 business hours. Check your inbox at the email address you provided.
Need help or a volume quote?
Our valve specialists are ready.
— defeating the focus-parity fix this guard exists for. offsetParent is null while
// an element is hidden, so it distinguishes the two.
if (vmRfqOpener && typeof vmRfqOpener.focus === 'function' && document.contains(vmRfqOpener) && vmRfqOpener.offsetParent !== null) {
vmRfqOpener.focus();
}
vmRfqOpener = null;
}
if (overlay && closeBtn) {
openBtns.forEach(function (btn) { btn.addEventListener('click', openModal); });
closeBtn.addEventListener('click', closeModal);
overlay.addEventListener('click', function (e) { if (e.target === overlay) closeModal(); });
document.addEventListener('keydown', function (e) {
if (e.key === 'Escape' && overlay.classList.contains('open')) closeModal();
if (e.key === 'Tab' && overlay.classList.contains('open')) {
var t = vmRfqTabbables();
if (!t.length) return;
var first = t[0], last = t[t.length - 1];
if (e.shiftKey && (document.activeElement === first || !overlay.contains(document.activeElement))) {
e.preventDefault(); last.focus();
} else if (!e.shiftKey && (document.activeElement === last || !overlay.contains(document.activeElement))) {
e.preventDefault(); first.focus();
}
}
});
}
// ── QUOTE-REQUEST (RFQ) FORM SUBMIT ──
var form = document.getElementById('vm-b2b-quote-form');
var success = document.getElementById('vm-b2b-success');
var formWrap = document.getElementById('vm-b2b-modal-form-wrap');
if (form) {
var VM_QUOTE_API = "https:\/\/valveman-storefront-api.vercel.app\/api\/quote";
var VM_FALLBACK = ' Please try again, call 888-825-8800, or email info@valveman.com.';
function vmQuoteError(html) {
var err = document.getElementById('vm-b2b-error');
if (!err) {
err = document.createElement('p');
err.id = 'vm-b2b-error';
err.setAttribute('role', 'alert');
err.style.cssText = 'color:#b91c1c !important;background:#fef2f2 !important;border:1px solid #fecaca;border-radius:6px;padding:10px 12px;margin:10px 0 0;font-size:.9rem;';
form.appendChild(err);
}
err.innerHTML = html;
err.style.display = 'block';
}
/* Phone error sits right under the phone field (not after Submit, which can be off-screen),
tied to it with aria-describedby + aria-invalid, and clears as soon as the visitor types. */
// keep: another message is showing too (name/email), so leave it up and don't move focus.
function vmPhoneError(el, msg, keep) {
if (!el) return;
var id = (el.id || 'vm-quote-phone') + '-err';
var p = document.getElementById(id);
var desc = (el.getAttribute('aria-describedby') || '').split(' ').filter(function (t) { return t && t !== id; });
if (!msg) {
if (p) p.style.display = 'none';
el.removeAttribute('aria-invalid');
el.style.removeProperty('border-color');
if (desc.length) el.setAttribute('aria-describedby', desc.join(' ')); else el.removeAttribute('aria-describedby');
return;
}
if (!p) {
p = document.createElement('p');
p.id = id;
p.className = 'vm-phone-err';
p.setAttribute('role', 'alert');
p.style.cssText = 'color:#b91c1c !important;font-size:.85rem;font-weight:600;margin:4px 0 0;';
el.insertAdjacentElement('afterend', p);
el.addEventListener('input', function () { vmPhoneError(el, ''); });
}
p.textContent = msg;
p.style.display = 'block';
el.setAttribute('aria-invalid', 'true');
el.style.setProperty('border-color', '#b91c1c', 'important');
desc.push(id);
el.setAttribute('aria-describedby', desc.join(' '));
if (keep) return;
var stale = form.querySelector('[role="alert"]:not(.vm-phone-err)');
if (stale) stale.style.display = 'none';
el.focus();
}
form.addEventListener('submit', function (e) {
e.preventDefault();
var data = new FormData(form);
var body = {};
data.forEach(function (v, k) { body[k] = v; });
body.source_url = window.location.href;
// The form is novalidate, so enforce the API's required fields here for inline feedback.
// Phone is required on every lead form (Gil, Oct 2026).
var vmPhone = String(body.phone || '').trim();
var vmPhoneEl = form.querySelector('[name="phone"]');
var vmPhoneMsg = (!/^[0-9()+\-.\s]{7,}$/.test(vmPhone) || vmPhone.replace(/\D/g, '').length < 7)
? (vmPhone ? 'Please enter a valid phone number.' : 'Please add a phone number so we can reach you.') : '';
if (!String(body.name || '').trim() || !String(body.email || '').trim()) {
vmQuoteError('Please fill in your name and email so we can get back to you.');
// Show a bad phone at the same time, so the visitor isn't sent round twice.
vmPhoneError(vmPhoneEl, vmPhoneMsg, true);
return;
}
if (vmPhoneMsg) {
vmPhoneError(vmPhoneEl, vmPhoneMsg);
return;
}
vmPhoneError(vmPhoneEl, '');
var submitBtn = form.querySelector('[type="submit"]');
if (submitBtn) {
submitBtn.disabled = true;
if (!submitBtn.getAttribute('data-vm-label')) submitBtn.setAttribute('data-vm-label', submitBtn.textContent);
submitBtn.textContent = 'Sending…';
}
// Bot check — contract in assets/vm-turnstile.js (window.vmTurnstile). Scoped to THIS
// form's widget. Wait up to 4s (wall clock) for an UNSPENT token. The API flags a
// missing token exactly like a spent one ("FAILED BOT CHECK"), so sending none is only
// the last resort, chosen over refusing (which would lose the lead). Replace the
// FormData copy of the hidden cf-turnstile-response input (it can still hold the
// last, spent token), mark the token spent, and reset after EVERY response below.
var vmTsBox = form.querySelector('.cf-turnstile');
// Reset only while the widget holds the token already sent: never discard a valid one.
var vmTsReset = function () { if (vmTsBox && window.vmTurnstile && window.vmTurnstile.isSpent(vmTsBox)) window.vmTurnstile.reset(vmTsBox); };
if (vmTsBox && window.vmTurnstile) window.vmTurnstile.whenToken(vmTsBox, 4000, vmQuoteSend);
else vmQuoteSend(null);
function vmQuoteSend(vmTsToken) {
if (vmTsToken !== null) {
delete body['cf-turnstile-response'];
if (vmTsToken) {
body.turnstile_token = vmTsToken;
body['cf-turnstile-response'] = vmTsToken;
window.vmTurnstile.spend(vmTsBox, vmTsToken);
}
}
fetch(VM_QUOTE_API, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body)
})
.then(function (r) {
return r.json().catch(function () { return {}; }).then(function (j) {
if (!r.ok || !j.ok) { var httpErr = new Error('HTTP ' + r.status); httpErr.status = r.status; httpErr.fields = j.fields; throw httpErr; }
vmTsReset();
var err = document.getElementById('vm-b2b-error');
if (err) err.style.display = 'none';
formWrap.style.display = 'none';
success.style.display = 'block';
});
})
.catch(function (submitErr) {
vmTsReset(); // HTTP error or network failure — the token sent is spent either way
// Failure must NOT look like success — quote requests are the highest-value
// lead on the site. Show an inline error with the phone/email fallback.
if (submitBtn) {
submitBtn.disabled = false;
if (submitBtn.getAttribute('data-vm-label')) submitBtn.textContent = submitBtn.getAttribute('data-vm-label');
}
if (submitErr && submitErr.status === 429) {
vmQuoteError('Too many requests from this connection — please wait a minute and try again, or call 888-825-8800.');
} else if (submitErr && submitErr.status === 400) {
if (submitErr.fields && submitErr.fields.indexOf('turnstile') !== -1) {
vmQuoteError('The bot check didn\'t pass.' + VM_FALLBACK);
} else {
vmQuoteError('Please double-check your name and email.' + VM_FALLBACK);
}
} else {
vmQuoteError('Something went wrong sending your request.' + VM_FALLBACK);
}
});
}
});
}
// ── ADD TO CART BUTTONS ──
// Delegated so cards appended by infinite scroll keep a working button
// (per-button binding only covered the first page — buttons past page 1 were dead).
if (!window.__vmAtcDelegated) {
window.__vmAtcDelegated = true;
document.addEventListener('click', function (e) {
var btn = e.target.closest('.vm-brand-atc-btn');
if (!btn) return;
e.preventDefault();
var variantId = btn.getAttribute('data-variant-id');
if (!variantId) return;
btn.textContent = VM_T.adding;
btn.disabled = true;
fetch('/cart/add.js', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ id: variantId, quantity: 1 })
})
.then(function (r) { return r.json(); })
.then(function () {
btn.textContent = VM_T.added;
setTimeout(function () {
btn.textContent = VM_T.atc;
btn.disabled = false;
}, 2000);
// Task 5: open the cart drawer so the add is visible (header also listens for cart:update)
if (window.vmOpenCartDrawer) { window.vmOpenCartDrawer(); }
else { document.dispatchEvent(new CustomEvent('cart:update')); }
})
.catch(function () {
var url = btn.getAttribute('data-product-url');
if (url) window.location.href = url;
});
});
}
// ── Add-to-Quote card buttons removed — Task 3. ──
// ── FACETS + SORT: auto-submit on change; manage parents-only default ──
// One GET form carries all active filter params + sort_by. The hidden input
// #vm-parent-default keeps is_series_parent=1 unless a Size checkbox is checked.
// Disabling it when a size is selected lets children show; re-enabling restores
// parents-only when the size is cleared.
(function () {
var facetForm = document.getElementById('vm-brand-faceted-search');
if (!facetForm) return;
// Scroll-position memory lives in snippets/vm-facet-scroll-restore.liquid (rendered
// above this script); it defines window.vmRememberScroll used below.
var parentInput = document.getElementById('vm-parent-default');
function syncParentDefault() {
if (!parentInput) return;
// Sep 2026: parents-only now HOLDS through a Size selection. Series parents
// carry specs.size (every size the family is offered in), so Search &
// Discovery can answer "which families come in 1/2\"" natively — picking a
// Size narrows the family grid instead of swapping it for a mixed
// parent+child one. The hidden input is therefore never disabled. Kept as a
// function so the policy stays a one-line change in either direction.
parentInput.disabled = false;
}
facetForm.addEventListener('change', function (e) {
// Price number inputs should NOT auto-submit on each keystroke — wait for blur
if (e.target && e.target.type === 'number') return;
syncParentDefault();
if (window.vmRememberScroll) window.vmRememberScroll();
facetForm.submit();
});
// Price inputs submit on blur (user has finished typing)
facetForm.querySelectorAll('input[type="number"]').forEach(function (inp) {
inp.addEventListener('blur', function () {
syncParentDefault();
if (window.vmRememberScroll) window.vmRememberScroll();
facetForm.submit();
});
});
// Sort select is outside the sidebar but uses form="vm-brand-faceted-search"
var sortSelect = document.getElementById('vm-sort-select');
if (sortSelect) {
sortSelect.addEventListener('change', function () {
syncParentDefault();
if (window.vmRememberScroll) window.vmRememberScroll();
facetForm.submit();
});
}
// Sync on load (handles browser back/forward with checked state restored)
syncParentDefault();
})();
// ── SHOW-MORE TOGGLES (sidebar facets) ──
// Each facet with >8 values gets a "+ Show N more" button. Clicking it expands
// the hidden .vm-facet-more div via max-height transition (CLS-safe, all values
// pre-rendered in DOM).
document.querySelectorAll('.vm-cat-facet__showmore').forEach(function (btn) {
var targetId = btn.getAttribute('data-target');
var target = document.getElementById(targetId);
if (!target) return;
var remainingCount = target.querySelectorAll('li').length;
btn.addEventListener('click', function () {
var expanded = btn.getAttribute('aria-expanded') === 'true';
if (expanded) {
target.style.maxHeight = '0';
target.setAttribute('aria-hidden', 'true');
btn.setAttribute('aria-expanded', 'false');
btn.textContent = '+ Show ' + remainingCount + ' more';
} else {
target.style.maxHeight = target.scrollHeight + 'px';
target.removeAttribute('aria-hidden');
btn.setAttribute('aria-expanded', 'true');
btn.textContent = '- Show fewer';
}
});
});
// ── MOBILE SIDEBAR DRAWER ──
(function () {
var trigger = document.getElementById('vm-cat-filter-trigger');
var sidebar = document.getElementById('vm-cat-sidebar');
var closeSbBtn = document.getElementById('vm-cat-sidebar-close');
var backdrop = document.getElementById('vm-cat-overlay');
if (!trigger || !sidebar) return;
// Sep 2026 (Gil): arm the one-shot Filter "jiggle" (vm-brand.css) only once the
// button is fully on screen, so it never plays unseen below the fold. The 2s delay
// runs from that moment. On desktop the button is display:none and never arms.
// Oct 2026 (Gil): jiggle only until the shopper picks their first filter. A
// shopper-set filter.* param in the URL (not the hidden parents-only default)
// or any change inside the filter panel marks Filter as found; that is kept in
// localStorage, so the button never jiggles again on later pages or visits.
var filterFound = false;
try {
new URLSearchParams(window.location.search).forEach(function (v, k) {
if (k.indexOf('filter.') === 0 && k !== 'filter.p.m.custom.is_series_parent' && v !== '') filterFound = true;
});
if (filterFound) localStorage.setItem('vmFilterUsed', '1');
else filterFound = localStorage.getItem('vmFilterUsed') === '1';
} catch (e) {}
sidebar.addEventListener('change', function () {
trigger.classList.remove('vm-cat-filter-trigger--jiggle');
try { localStorage.setItem('vmFilterUsed', '1'); } catch (e) {}
});
if (!filterFound && 'IntersectionObserver' in window) {
var jiggleIO = new IntersectionObserver(function (entries) {
if (!entries[0].isIntersecting) return;
trigger.classList.add('vm-cat-filter-trigger--jiggle');
jiggleIO.disconnect();
}, { threshold: 1 });
jiggleIO.observe(trigger);
}
function openSidebar() {
sidebar.classList.add('vm-cat-sidebar--open');
if (backdrop) backdrop.classList.add('vm-cat-overlay--visible');
document.body.style.overflow = 'hidden';
trigger.setAttribute('aria-expanded', 'true');
sidebar.removeAttribute('aria-hidden');
// `summary` FIRST (independent review of PR #164, Sep 2 2026): facets are ,
// and the old selector picked the first checkbox — inside a CLOSED on any
// collection whose first facet is not an open Size facet, i.e. invisible focus.
// querySelector returns the first match in DOCUMENT order, not selector-list order, so
// listing summary first did nothing — it only worked because nothing focusable precedes
// the first today. Ask for the summary explicitly, then fall back (round-8 review).
var firstFocusable = sidebar.querySelector('summary') ||
sidebar.querySelector('input:not([disabled]), button:not(#vm-cat-sidebar-close), select, a');
if (firstFocusable) firstFocusable.focus();
}
function closeSidebar() {
sidebar.classList.remove('vm-cat-sidebar--open');
if (backdrop) backdrop.classList.remove('vm-cat-overlay--visible');
document.body.style.overflow = '';
trigger.setAttribute('aria-expanded', 'false');
trigger.focus();
}
trigger.addEventListener('click', openSidebar);
if (closeSbBtn) closeSbBtn.addEventListener('click', closeSidebar);
if (backdrop) backdrop.addEventListener('click', closeSidebar);
document.addEventListener('keydown', function (e) {
if (e.key === 'Escape' && sidebar.classList.contains('vm-cat-sidebar--open')) closeSidebar();
});
// On desktop (>= 768px) sidebar is always visible — remove aria-hidden
function onResize() {
if (window.innerWidth >= 768) {
sidebar.removeAttribute('aria-hidden');
if (sidebar.classList.contains('vm-cat-sidebar--open')) {
sidebar.classList.remove('vm-cat-sidebar--open');
if (backdrop) backdrop.classList.remove('vm-cat-overlay--visible');
document.body.style.overflow = '';
trigger.setAttribute('aria-expanded', 'false');
}
}
}
window.addEventListener('resize', onResize, { passive: true });
onResize();
})();
// ── STICKY MOBILE CTA ──
(function () {
// Sep 21 2026 (Gil, Baymard G10): show only once the shopper reaches the product grid, and
// let them dismiss it. Sep 24 review fixes, in order of how much they mattered:
// - anchor on #vm-brand-faceted (the GRID). The first cut used #vm-brand-products, the
// section wrapper, which starts right under the hero — on a short hero the bar arrived on
// the first scroll event, the very thing this was meant to stop.
// - move focus out before the bar goes aria-hidden, or the dismiss destroys focus and the
// next Tab restarts at the top of the page (axe: aria-hidden-focus).
// - rAF-gate the scroll read; it does a layout read and shares the gesture with the header.
// - never bind above 768px, where the CSS hides the bar outright.
// - no stored dismiss inside the Theme Editor, or one click makes the merchant's own
// sticky_* settings un-previewable for the rest of the tab (the theme's usual guard).
// - namespace the key per section, or dismissing on a brand page also silenced every
// category page for the session.
var sticky = document.getElementById('vm-brand-sticky');
if (!sticky) return;
if (window.matchMedia && !window.matchMedia('(max-width: 768px)').matches) return;
var STICKY_KEY = 'vmStickyQuoteDismissed:template--21479803682894__products';
var inEditor = !!(window.Shopify && window.Shopify.designMode);
var dismissed = false;
if (!inEditor) { try { dismissed = sessionStorage.getItem(STICKY_KEY) === '1'; } catch (e) {} }
if (dismissed) return;
var shown = false;
var ticking = false;
var grid = document.getElementById('vm-brand-faceted') || document.getElementById('vm-brand-products');
function threshold() {
if (grid) { var r = grid.getBoundingClientRect(); return (window.pageYOffset || document.documentElement.scrollTop) + r.top - window.innerHeight * 0.6; }
return Math.max(400, (document.documentElement.scrollHeight - window.innerHeight) * 0.4);
}
function applySticky() {
ticking = false;
if (dismissed) return;
var past = (window.pageYOffset || document.documentElement.scrollTop) > threshold();
if (past && !shown) { shown = true; sticky.classList.add('visible'); sticky.removeAttribute('aria-hidden'); }
else if (!past && shown) { shown = false; sticky.classList.remove('visible'); sticky.setAttribute('aria-hidden', 'true'); }
}
function onScroll() { if (!ticking) { ticking = true; window.requestAnimationFrame(applySticky); } }
var stickyClose = sticky.querySelector('.vm-brand-sticky__close');
if (stickyClose) stickyClose.addEventListener('click', function () {
var landing = grid;
if (landing) {
if (!landing.hasAttribute('tabindex')) landing.setAttribute('tabindex', '-1');
try { landing.focus({ preventScroll: true }); } catch (e) { landing.focus(); }
} else {
stickyClose.blur();
}
dismissed = true; shown = false;
sticky.classList.remove('visible'); sticky.setAttribute('aria-hidden', 'true');
window.removeEventListener('scroll', onScroll);
if (!inEditor) { try { sessionStorage.setItem(STICKY_KEY, '1'); } catch (e) {} }
});
window.addEventListener('scroll', onScroll, { passive: true });
applySticky();
})();
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', vmBrandInit);
} else {
vmBrandInit();
}
2909+
Products Available
All 50
States Served
Net 30
Terms Available
60+ Years
Family Owned
Why Buy Watson McDaniel Products From Ï㽶ÊÓƵ?
Authorized Distributor Since 1965
We are an authorized Watson McDaniel distributor — not a grey market reseller. Every product ships new, with the documentation your purchasing department needs — and whatever warranty the manufacturer offers is passed through to you in full.
Expedited Options + Net 30 Terms
In a hurry? Call 888-825-8800 — depending on the item we may be able to expedite your order, and we'll tell you what's realistic. Qualified buyers can apply for Net 30 terms — ideal for MRO, OEM, and project purchasing.
Technical Support from Ï㽶ÊÓƵExperts
Our team has 60+ years of Watson McDaniel product knowledge. Call 888-825-8800 or start a chat — we'll help you select the right valve for your application, pressure class, and end connection.
Need a volume quote or custom order?
Our B2B team responds within 2 hours on business days. Exton, PA — Trusted Since 1965.