Apolozy for the inconvenience. Unfortunately, there is no built-in setting to achieve this. However, it is possible to implement this using custom JavaScript by dynamically checking the order total and hiding the "Proceed to Payment" button if the amount is below a value. Please add the following JS code to your Template Options -> Custom Code -> Custom JS
document.addEventListener("DOMContentLoaded", function () {
function updateButtonState() {
let priceElement = document.querySelector(".easystore-list-value");
let button = document.querySelector(".btn.btn-primary.btn-lg.w-100.mb-4");
if (priceElement && button) {
let priceText = priceElement.textContent.trim().replace(/[^0-9.]/g, ''); // Remove non-numeric characters
let price = parseFloat(priceText);
if (!isNaN(price) && price < 200) {
button.setAttribute("disabled", "disabled"); // Disable button
button.style.display = "none"; // Hide button
} else {
button.removeAttribute("disabled"); // Enable button
button.style.display = ""; // Show button
}
}
}
updateButtonState(); // Run once on load
const observer = new MutationObserver(updateButtonState);
let targetNode = document.querySelector(".easystore-list-value");
if (targetNode) {
observer.observe(targetNode, { childList: true, subtree: true, characterData: true });
}
});
Replace the '200' value according to your preference