How to display messages in the cart for only specific products?

My company is on Shopify plus. I have two groups of items that incur additional shipping costs when the shipping is calculated. There is a +$15 group of products and a +$25 group of products.

Is there a way to create a custom message to show up in the checkout on each line item that is one of those products?

For example, if product is SKU 12345, 12346, or 12347, then display message “+$15 Additional shipping for oversize items has been applied”.

It seems like I should be able to do this with Checkout Blocks, but when I try to add the block to my checkout editor after I have it built, nothing happens. Can anyone provide me support on this?

I also notice, when trying to add the “Line Item Content” to the checkout page, there is no option for that, just the “Line Item Edit”. Is that the problem?

@jobrien - you can try coding to check if a product belongs to this specific category, if yes then display this text you want or else no text would be shown.

Hi @jobrien ,

Please refer the video below to implement the same.