# Products block

Use the **Products** block to show a grid of products in an email, for example items from your catalog, a cart reminder, or bestsellers. Each product is a card with an image, title, description, price, and a buy button. You can add the products yourself, or let Pushwoosh pick them.

## Choose where products come from

In the block's settings, open **Source** and choose how to fill the cards:

* **Manual**: add products yourself. [Add products manually](#add-products-manually).
* **Catalog rule**: Pushwoosh picks products from your catalog by category and sort order. [Pull products with a catalog rule](#pull-products-with-a-catalog-rule).
* **Cart**: each recipient sees the items left in their cart. [Show items from the cart](#show-items-from-the-cart).
* **Recommendations**: Pushwoosh picks products by a strategy, such as bestsellers. [Get recommended products](#get-recommended-products).

<Aside type="note" title="Before you use Catalog rule, Cart, or Recommendations">

* Check that your plan includes **Content Templates**. If **Source** doesn't switch to these options, ask Support or your account manager to enable it.
* Create an [API access token](/developer/api-reference/api-access-token/) in **Settings → API Access**. Without it, **Save** fails and says the block has no API access token. Preview works without it, and [Smart check](/product/content/email-content/drag-and-drop-email-editor/create-email-content-with-drag-and-drop-editor/#check-your-email-before-sending) reports the missing token as an error.
</Aside>

### Add products manually

Fill the grid yourself. You can type products in, pick them from your [Product catalog](/product/content/product-catalog/), or mix both in one block.

* To type a product in, click **Add product** and fill in its title, description, price, picture, and link.
* To use a catalog product, click **Pick from catalog…** and select it.
* To update catalog products after the catalog changes, click **Refresh from catalog**. It reloads each catalog product as a whole, including its link, so a URL you changed under **Product links** is replaced. Hand-entered products stay as they are.
* To replace a picture, click the product's thumbnail under **Product images**.
* To set where a product leads, enter its URL under **Product links**.

Set **Number of products** from 1 to 24.

<img src="/emails-drag-and-drop-email-editor-55.webp" alt="Manual source settings for the Products block with Add product, Pick from catalog, Refresh from catalog, Product images, and Product links" width="580"/>

### Pull products with a catalog rule

Let Pushwoosh pick products by category and sort order, so you don't choose them one by one.

<img src="/emails-drag-and-drop-email-editor-56.webp" alt="Catalog rule source settings for the Products block with Category, Sort, Number of products, and Refresh preview" width="580"/>

Set up the rule:

1. Set **Category** to a catalog category, or leave **All categories**.
2. Under **Sort**, choose **Newest first**, **Price: low to high**, **Price: high to low**, or **Title A–Z**.
3. Set **Number of products** from 1 to 12.
4. To check the result, click **Refresh preview**. It recalculates the canvas preview against the catalog right now.

<Aside type="note" title="Preview vs send time">
The canvas preview shows the products that match the rule right now. If the catalog changes before you send the email, for example a product goes out of stock or a new one is added, recipients see the updated match at send time, not the preview.
</Aside>

#### Pick the category from a tag

With **Catalog rule** or **Recommendations**, use **From tag** in **Category** when each recipient should get products from their own category, for example the category they browse most:

1. Set **Category** to **From tag**.
2. In **Tag with the category**, choose the device tag that holds the recipient's category. Without it, Smart check shows an error.

A recipient without this tag gets products from any category.

### Show items from the cart

Show each recipient the items left in their abandoned cart. Set **Max products shown** from 1 to 12.

To see how the block looks for a specific recipient, enter their user ID or email under **Preview a user's cart** and click **Preview cart**.

<img src="/emails-drag-and-drop-email-editor-57.webp" alt="Cart source settings for the Products block with Max products shown and Preview a user's cart" width="580"/>

<Aside type="note">
Each recipient gets their own current abandoned cart at send time. Recipients without one simply skip the block, so target your audience using the `PW_AbandonedCartID` tag. The canvas itself shows sample cards, not real cart data. See [How to set up an abandoned cart campaign](/tutorials/product-guides/email-marketing-campaigns/how-to-set-up-an-abandoned-cart-campaign/) for the full setup.
</Aside>

### Get recommended products

Choose a strategy, and Pushwoosh picks the products for you, for example bestsellers or items the recipient viewed.

1. Set **Source** to **Recommendations**.
2. In **Strategy**, choose a strategy. See [Choose a recommendation strategy](#choose-a-recommendation-strategy).
3. Set **Category** to limit the products to one category, or to take the category from a recipient's tag. See [Pick the category from a tag](#pick-the-category-from-a-tag).
4. Set **Number of products** from 1 to 12.
5. Click **Refresh preview** to check the result. **Last viewed item** and **Item from tag** have no preview, because their products depend on the recipient.

<img src="/emails-drag-and-drop-email-editor-69.webp" alt="Products block settings with Source set to Recommendations, a Strategy selector set to Bestsellers (30 days), Category, Number of products, and Refresh preview" width="320"/>

### Choose a recommendation strategy

Pick a strategy by what you want to show. Strategies that need events require your app or backend to send product events. See [How to set up product recommendations in email](/tutorials/product-guides/email-marketing-campaigns/how-to-set-up-product-recommendations-in-email/).

#### Strategies based on sales and catalog

- **Bestsellers (7 days)**, **Bestsellers (30 days)**: products ranked by order history only. Needs events.
- **New arrivals**: the newest products in your catalog.
- **Back in stock**, **Price drop**: products that were restocked or dropped in price, most recent change first.

If there is nothing to show yet, the block shows the regular catalog. This happens when an account hasn't collected enough order history, or when no product was restocked or dropped in price.

#### Strategies based on what shoppers did

- **Bought together**: products that the same shoppers interacted with alongside one product. You store that product's ID in a tag. See [Set the product tag](#set-the-product-tag). Needs events.
- **Based on what they viewed**: products based on the recipient's views, cart, and purchases. Needs events.

Both count views, cart, and purchases together, not purchases only. They look at one application over the last 30 days. If an account hasn't collected enough history yet, the block shows the regular catalog.

#### Last viewed item and Item from tag

These two strategies don't recommend new products. **Last viewed item** shows products the recipient looked at before. **Item from tag** shows products you saved in the recipient's tag.

- **Last viewed item**: the products this recipient interacted with most recently, newest first, out of their last 10 products in the last 30 days. Needs the same [product activity events](/tutorials/product-guides/email-marketing-campaigns/how-to-set-up-product-recommendations-in-email/#based-on-what-they-viewed-and-bought-together-track-product-activity) as **Based on what they viewed**.
- **Item from tag**: the products whose IDs are stored in a tag, in the tag's order. A tag with a list of IDs gives several products. See [Set the product tag](#set-the-product-tag).

**Category** still filters these products. They don't fall back to the catalog: if the recipient has no such products, or none of them is in stock in your catalog, the block shows no products. Only its background and border render.

#### Set the product tag

**Bought together** and **Item from tag** add a **Product tag** field. Choose a device tag in it:

- For **Bought together**, the tag holds the ID of the product the other items are matched with. Without a tag, the block shows the regular catalog.
- For **Item from tag**, the tag holds the IDs of the products to show. Without a tag, Smart check shows an error.

Use a tag whose name starts with a letter or an underscore and has only letters, digits, underscores, and spaces. Any other name shows an inline error, because the tag has to be addressable in Liquid.

## Style the Products block

These settings control how the grid and its cards look. They stay the same no matter which source you use.

<Aside type="tip" title="How sale price appears">
If a product has a sale price, `$price` on the card shows the discounted price, and `$oldPrice` shows the original one. The default card has no `$oldPrice`. To show the original price, add a text element with only `$oldPrice` to the card and format it as strikethrough. This works with **Catalog rule**, **Cart**, **Recommendations**, and catalog items in **Manual**. Hand-entered products have no sale price, so the element stays hidden.
</Aside>

### Style the cards

1. Under **Columns**, choose 1, 2, or 3 cards per row. On mobile, cards always stack in one column.
2. To set the space between cards, turn on **Gap**. Off uses the default (16px).
3. Under **Card template**, pick a layout. Then set **Card background**, **Card corner radius**, and **Content padding** for every card.
4. Under **Size & fit**, set **Width**, **Height**, **Crop**, and **Fit**. They work the same as the [Card block](/product/content/email-content/drag-and-drop-email-editor/email-blocks/text-and-image-blocks/#card)'s per-layout image sizing, sized relative to the card width instead of the whole email. It's shown for every layout that has an image.

### Limit the description

Cap the description on each card, so all cards stay the same size.

1. Find **Description limit**.
2. Enter the maximum number of characters. The lowest value is 10, so a lower value becomes 10.
3. To show the whole description, turn the toggle off.

<Aside type="note">

- Only the text a reader sees counts toward the limit. Bold, links, and line breaks are free.
- You can type freely. The value is corrected when you press Enter or leave the field, and typing past the limit in the field is blocked.
- 0 doesn't hide the description.

</Aside>

### Style the whole block

**Block style** settings style the block as a whole, separately from the cards inside it.

To set a background:

1. Choose a color in **Background**, or add a **Background image**.
2. With an image, choose **Fit**: **Cover** crops it to the block, **Contain** fits the whole image inside it. Use **Focal point** and **Set position** to place it.

To add a border:

1. Set **Border color** and **Border width**.
2. In **Border sides**, choose **All**, **Top**, **Bottom**, or **Top & bottom**.

To round the corners, set **Corner radius**. To set each corner separately, turn on **More Options**.

To hide the block on one device, turn on **Hide on mobile** or **Hide on desktop**. See [Show or hide content per device](/product/content/email-content/drag-and-drop-email-editor/create-email-content-with-drag-and-drop-editor/#show-or-hide-content-per-device).

To show the block only to some recipients, use [display conditions](/product/content/email-content/drag-and-drop-email-editor/show-content-to-specific-recipients/).

<Aside type="note">

Outlook Desktop ignores a background image and shows the background color only, so keep a readable color behind the image.

</Aside>