Based on some quote details (e.g. products in the quote) I need to show or hide a certain Checkout Agreement. The same as described here, but for Magento 2: https://stackoverflow.com/questions/12567937/magento-have-terms-and-conditions-if-customer-buys-certain-products
I have not yet been able to find a solution for Magento 2.
I know how to get the quote details and determine if the agreement needs to be shown, but I do not know where to hook into the agreement loading to stop a particular agreement from being shown if my conditions are met.
Any ideas?