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.

The “Line Item Content” availability issue is actually the key thing to sort out here. In the Shopify checkout editor, that slot only appears in certain positions - it’s easy to miss because it doesn’t show up unless you’re hovering directly over the line items section and looking for the “Add block” option there. It won’t appear in the left sidebar the same way other blocks do.

For Checkout Blocks specifically: make sure the block you built is set to the “Line item” block type (not a generic content block), and when you go into the editor, hover over one of the line items in the preview - you should see a “+” icon appear that lets you drop your block into that slot. If that “+” never appears, it sometimes means the checkout hasn’t been fully migrated to the new extensibility framework. On Plus you should have access, but worth confirming under Settings > Checkout that you’re on the upgraded checkout, not the legacy one.

For the SKU condition logic: Checkout Blocks does support SKU-based rules, but depending on how your catalog is structured, using a product tag might be more reliable - tag your oversize items with something like “shipping-surcharge-15” and “shipping-surcharge-25”, then set the block conditions to match those tags. It’s easier to maintain than hardcoding SKUs, especially if your product list grows.

If you keep hitting a wall with Checkout Blocks, Shopify’s native checkout UI extensions (built via the CLI) give you direct access to line item data including SKUs, and you can render custom content per line item with exact conditions. It requires some dev work, but for a Plus store it’s worth knowing that option exists and is fully supported.