Skip to content

How to display the Sprout badge in cart drawer

Add the Sprout tree-planting badge to your Shopify cart drawer in four steps.

  1. In your Shopify admin, open the theme you want to edit and click Edit code.

Open your Shopify theme and click Edit code

  1. In the file filter, search Cart and open cart-drawer.liquid (under Snippets or Sections).

Search 'Cart' in the file filter and open cart-drawer.liquid

  1. Paste <div id="SproutCartBadgeVintage" class="SproutCartBadgeVintage"></div> directly above or below the checkout button. To find the button quickly, press Cmd + F (or Ctrl + F) and search for Button.

Paste the SproutCartBadgeVintage div above or below the checkout button

  1. Click Save. The Sprout badge now appears in your cart drawer.

The Sprout badge displayed in the cart drawer next to the checkout button

Prefer video? Watch the walkthrough.