Hi,
Well, a simple solution would be to hide the close button with a bit of CSS:
.alert .close{display:none;}
Not having a close button for an error message is not really a problem in itself.
Another solution would be a view override of show_block_terms changing the line:
$this->checkoutHelper->displayMessages('terms_' . $this->step . '_' . $this->module_position);
to:
ob_start();
$this->checkoutHelper->displayMessages('terms_' . $this->step . '_' . $this->module_position);
echo str_replace('data-dismiss', 'data-bs-dismiss', ob_get_clean());
A third option would be for us to add data-bs-dismiss as well in there. That way, the data-dismiss attribute would be picked up by old versions of BS and the data-bs-dismiss would be picked up by BS 5 and above. Sounds like a good thing to add in HikaShop.