Toast
The storefront's single notification overlay — cart, favorites, and recipe events trigger it, with editable designs for every event.
Last updated
How to use
Place this component once in your Page Template(s) so it appears on every page.
Set
Styleto design the toast's appearance, position, animation, and duration. Where the layer sits on your canvas doesn't matter — the toast's real position is the one set insideStyle. (Setting the canvas layer toFixedkeeps the preview tidy.)Enable
Cartand/orFavoritesto connect designs for each event. For any Toast event that you don't want to trigger, do not connect a component instance.Turn on
Recipesto connect per-recipe toast designs, setting the uniqueRecipe IDper design.Use the
Previewdropdown to select which Toast to display on the canvas while editing.
Cart & favorites events
Every cart and favorites toast message connects to its own design. A tidy way to manage them: build one design component with a text variable, and reuse it for every event with different copy.
Cart Event | Explanation |
|---|---|
| A product was added to cart. |
| A product was attempted to be added to the cart, but failed. |
| A product was removed from the cart. |
| A product was attempted to be removed from the cart, but failed. |
| A product's quantity was updated. |
| A product's quantity was attempted to be updated, but failed. |
Favorites Event | Explanation |
|---|---|
| A product was added to Favorites. |
| A product was attempted to be added to Favorites, but failed. |
| A product was removed from Favorites. |
| A product was attempted to be removed from Favorites, but failed. |
Recipe toasts
You can trigger custom toasts in any Recipe set in the Butter plugin. For example, when a customer visits your site with a discount code in the URL, you can trigger a toast that lets them know that their discount is auto-applied.
To use Recipe toasts, enable the Recipes property control and set the Amount for how many slots you need. For each slot, set its Recipe ID (from the plugin) and connect a design.
Matching is by Recipe ID and is case-insensitive. A slot without a connected design is skipped rather than breaking the page.
One instance per site
Only place this component once per site, with the exception of if you are using multiple page templates. Cart, favorites, and recipe events all trigger this same shared toast, so a second instance would double-render every notification.