I’m using Ventura Theme version 12.2.1 and I would like to hide the checkout button. I did a code inspection and found the following code:
Element Code:
<button type="submit" name="checkout" class="btn">Check Out</button>
CSS Styles:
// Get a reference to the buttons using their class names
var updateButton = document.querySelector(".update-cart");
var checkoutButton = document.querySelector(".btn");
// Hide the buttons by setting their display property to "none"
if (updateButton) {
updateButton.style.display = "none";
}
if (checkoutButton) {
checkoutButton.style.display = "none";
}
Can you please help me create a … code in order to hide this button?