Add to cart button

Add to Cart puts a buy button beside each ingredient you sell, so a reader can fill their cart without leaving the recipe. Add All To Cart lets them add all the ingredients to the cart in one click.

The Add to Cart and Add All to Cart buttons are part of the Growth plan. Linking ingredients to products works on every plan. Compare plans on the Recipe Kit app listing.

How it works

Each ingredient you link to a product gets an Add To Cart button on the recipe card. The reader clicks it, the product goes into their Shopify cart, and your theme's cart updates. Ingredients you have not linked show as plain text.

A recipe card's ingredient list with a quantity stepper and Add To Cart button beside each linked ingredient, and an Add All To Cart button below

On Free and Essentials, a linked ingredient becomes a link to the product's page instead of a cart button.

Feature Free Essentials Growth Enterprise
Link ingredients to products Yes Yes Yes Yes
Add to Cart button No No Yes Yes
Add All to Cart No No Yes Yes
Quantity selector No No Yes Yes

Turn on Add to Cart

  1. Open Recipe Kit and go to Settings.
  2. Under Features in the sidebar, click Add to cart.
  3. Switch on Add to cart on each ingredient. To add one button that puts every linked ingredient in the cart at once, also switch on Add all to cart.

The Add to cart page in Recipe Kit Settings, with Add to cart selected under Features in the sidebar and the Add to cart on each ingredient switch turned on

Each switch saves as soon as you change it.

New stores that finish setup on the Growth plan have Add to Cart switched on for them.

Then link ingredients to products in each recipe. Linking products to recipes has the steps.

Add all ingredients to the cart in one click

The Add All To Cart button sits under the ingredient list. One click puts every ingredient you linked to a product into the reader's cart.

  1. Open Recipe Kit and go to Settings.
  2. Under Features in the sidebar, click Add to cart.
  3. Switch on Add all to cart.

The button shows on every recipe that has at least one ingredient linked to a product.

A recipe card's ingredient list with the Add All To Cart button under it marked in red

Show a quantity selector and product photos

Two more switches sit on the same Add to cart page:

  • Quantity selector adds a plus and minus stepper beside each Add To Cart button, so a reader can add two bags of flour instead of one. It shows once Add to cart on each ingredient is on.
  • Product thumbnails shows the linked product's photo beside each ingredient.

Both are on for stores that installed Recipe Kit recently. Older stores may need to switch them on in Settings > Add to cart.

Once an item is in the cart, its button changes to a remove control showing how many are in the cart.

Product variants

When you link a product, Shopify's product picker lets you choose which of its variants to offer. On the recipe card, the reader sees a menu of those variants and can pick one. Only variants in stock appear, so a sold-out product cannot be added from a recipe. Stock is checked each time the card loads. To send readers to a sold-out product's page instead, see the next section.

Add All to Cart adds the first in-stock variant of each linked product. It skips any product already in the reader's cart, in whichever variant they picked, so nothing goes in twice. Once every linked product is in the cart, View Cart and Checkout take the button's place.

Link sold-out products to their page

When every variant you linked is sold out, the product's Add To Cart button disappears, since there is nothing to add. Switch on View product when sold out to show a View product button in its place. It opens the product's page in a new tab, where the reader can see it is sold out and sign up for a restock alert if your store offers one.

  1. Open Recipe Kit and go to Settings.
  2. Under Features in the sidebar, click Add to cart.
  3. Switch on View product when sold out. It sits under Add to cart on each ingredient and shows once that switch is on.

The Add to cart switches with View product when sold out turned on, below Quantity selector

The button appears on linked ingredients and equipment in every card design. A product counts as sold out only when none of the variants you linked is in stock. If one is, the reader gets the usual Add To Cart button with that variant. A reader who already has the product in their cart still sees the remove button.

A recipe card's ingredient list where an in-stock olive oil has an Add To Cart button and a sold-out chipotle powder has a View product button

It works with the current Recipe Kit widget. A store still on an older, hand-pasted snippet is asked to upgrade when it switches the option on. To rename the button, change the Sold Out: View Product label (see the next section).

Change the button text

Rename or translate every cart label in Settings, under Translations & labels > Customize labels. The cart labels are:

  • Add To Cart
  • Add All To Cart Text
  • Remove All Text
  • Sold Out: View Product
  • Remove Quantity in Cart
  • View Cart
  • Checkout
  • Added
  • Removed

See Changing the text on your recipe card.

Style the buttons

The buttons use the accent color you chose in Settings > Design, so changing that color is the simplest way to restyle them. For more control, click Edit next to Custom CSS on the same page, add your CSS and click Save. The widget's own button colors use !important, so yours need it too:

#rk_parent .rk_container .rk_atc_btn,
#rk_parent .rk_container .rk_atc_all {
  background: #228b22 !important;
  border-color: #228b22 !important;
  font-weight: 700;
}

/* The remove button shown once an item is in the cart */
#rk_parent .rk_container .rk_rfc_btn {
  border-radius: 0;
}

This applies to the current Recipe Kit widget.

Custom CSS styling explains where CSS goes and how to target the card.

Measure it

The Analytics dashboard counts Add to Cart clicks per recipe. On Growth it also ties completed orders back to the recipe that started them. See Analytics dashboard.

Troubleshooting

No button shows at all

Check each of these:

  1. Your store is on the Growth or Enterprise plan. On other plans, Settings > Add to cart says the feature is included in the Growth plan and shows a View plans button.
  2. Add to cart on each ingredient is on in Settings > Add to cart.
  3. The ingredient is linked to a product.
  4. The product is active, published to the Online Store sales channel, and has at least one variant in stock. For sold-out products, switch on View product when sold out (see above).

The button adds the wrong product

Open the recipe and check which product the ingredient is linked to. Similar product names are easy to mix up. Unlink it and link the right one.

The cart icon in my theme does not update

Most themes update on their own. Recipe Kit refreshes the cart drawer and cart count in Dawn, Horizon and themes built on them, and tries a general refresh in other themes. If your theme still shows the old count after an add, a developer can hook into the rk_cart_event that Recipe Kit fires after every cart change. See JavaScript events.

The automatic refresh is part of the Recipe Kit app block. If your store still uses an older, hand-pasted Recipe Kit snippet, only the event fires. Upgrading to the new Recipe Kit widget explains how to switch.

If you are stuck, contact support with your store URL and theme name.

What's next

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us