How to Inject App Block in the Cart Page Under Subtotal Section

Hi Shopify Dev Community,

I’m currently working on a Shopify app, and I need some guidance on app block integration within the cart page.

Problem:

Currently, our app is being injected as a separate section on the cart page, and our app block is displayed within that section. Instead of this setup, we want to directly inject our app block under the Subtotal section in the cart.

Attempted Solution:

We’ve been exploring ways to inject the app block using Deeplinking, but so far, we haven’t found a solution to position it precisely under the Subtotal section.

Query:

  • How can we inject our app block directly under the Subtotal section on the cart page?
  • Are there any specific methods, Liquid templates, or APIs to achieve this positioning?
  • Does this require overriding the theme’s Liquid code, or is there a native way to handle this through deep linking or Shopify app extensions?

Any suggestions, best practices, or examples would be greatly appreciated.

Thank you for your time and help!

Best regards,
Premnath M.

Hi Premnath,

Can the app block be added manually - ie: when you click on “Add block” within the Subtotal section and select the “Apps” tab, does your app block appear there?

This depends on if the theme section(s) in question allow app blocks to be injected there.

While manually adding “Apps” under the “Subtotal section,” it is added correctly. But when trying to add our app through deep linking, it is not added in the desired location.