Skip to main content

How to Add Custom Code to the Cart

Add your own custom HTML to the cart with the Code block.

Need to add custom content or layout to your cart? The Code block lets you write your own HTML directly into the cart — useful if you need custom markup or want another app to inject content into the cart.

🛠️ How to Set It Up

  1. Click Add Block, then find and select the Code block.

  2. Click into the Code block to open its settings.

  1. Use the code editor to write your HTML. It will render live in the cart preview as you type.

  2. If you want to hide the HTML from showing in the preview, click the "Hide in preview" checkbox in the settings panel (the cart will just show "Code block" in its place instead).

Did this answer your question?