Mastering Indirect procurement software- Key to Success
document.addEventListener("DOMContentLoaded", function() {
const postTitle = document.getElementById("kh-ptitle");
const lph1 = document.getElementById("kh-l1");
const lph2 = document.getElementById("kh-l2");
const lph1Exists = lph1 && lph1.textContent.trim() !== "";
const lph2Exists = lph2 && lph2.textContent.trim() !== "";
if (!lph1Exists && !lph2Exists) {
// Both LPH1 and LPH2 empty → show Post Title
postTitle.style.display = "block";
if (lph1) lph1.style.display = "none";
if (lph2) lph2.style.display = "none";
} else {
// LPH1 or LPH2 exists → show them, hide Post Title
postTitle.style.display = "none";
if (lph1Exists) lph1.style.display = "block";
if (lph2Exists) lph2.style.display = "block";
}
});
document.addEventListener("DOMContentLoaded", function () {
const imgNew = document.getElementById("image2"); // New ACF
const imgOld = document.getElementById("image1"); // Old ACF + fallback
const imgFallback = document.getElementById("imageFallback"); // Generic fallback (hidden initially)
// Helper to get the actual image src (handles Elementor lazy-load)
function getImgSrc(widget) {
if (!widget) return null;
const img = widget.querySelector("img");
if (!img) return null;
return img.getAttribute("data-src") || img.getAttribute("data-lazy-src") || img.getAttribute("src") || '';
}
// Check if src is valid (not empty or placeholder)
function isValid(src) {
return src && src.trim() !== "" && !src.includes("elementor-placeholder");
}
function applyLogic() {
const srcNew = getImgSrc(imgNew);
const srcOld = getImgSrc(imgOld);
if (isValid(srcNew)) {
// Case 1: New image exists → show new image only
imgNew.style.display = "block";
imgOld.style.display = "none";
imgFallback.style.display = "none";
}
else if (isValid(srcOld)) {
// Case 2: Old image exists → show old image only
imgNew.style.display = "none";
imgOld.style.display = "block";
imgFallback.style.display = "none";
}
else {
// Case 3: Neither exists → show fallback image
imgNew.style.display = "none";
imgOld.style.display = "none";
imgFallback.style.display = "block";
}
}
// Delay to allow Elementor to finish rendering
setTimeout(applyLogic, 800);
// Observe DOM changes (lazy-load / dynamic Elementor content)
const observer = new MutationObserver(applyLogic);
observer.observe(document.body, {
childList: true,
subtree: true,
attributes: true
});
});
Get Your Copy Now
Some procurement executives believe that “spend is spend” regardless of whether it consists of direct materials or indirect spend. While the roles of direct & indirect procurement professionals are poles apart, it is indispensable for the indirect procurement professional to improvise the process, engagement and the impact on total spend.
In this whitepaper, learn the benefits of Indirect Procurement Solution:
- Effectively increasing spend under management
- Efficacious communication resulting in improved productivity and efficiency
- Ensuring higher compliance, for increased productivity and improved bottom line savings
- 5 most important keys to successful indirect category management



















































