Skip to main content

Here’s a way to hide the “add to cart” button when there are no sessions:

NEW Interface:

/*hide add to cart button in purchase box if there are no available sessions*/

body:has(.ui-notification-inline nrole="alert"]) dcb-ui-button-raised-primary {

display:none;

}

OLD Interface:

/*hide add to cart button in purchase box if there are no available sessions*/

body:has(div.enrollment-content > div.session-text.text-grey-mid.ng-star-inserted > p) ui-button-raised-primary {

display:none;

}

Thanks for sharing this @elamast!


Reply