How to add Cross-sell Personalization to your campaigns
Boost your sales by offering personalized add-ons directly on your product page.
With Cross-sell Personalization, you can link a main product to another product or an entire collection. When buyers customize the main product, they’ll also see the linked items — giving them the option to personalize and purchase both together in one click.

Please continue reading this article to learn how to do so!
Setting up Cross-sell Personalization feature
Step 1. Turn on Cross-sell Personalization for your store
- Navigate to your Teeinblue > Store Settings > Product Page Settings > Cross-sell Personalization and enable the toggle there.

- Once enabled, please be sure to click on the
Add metafieldsbutton as well.
tib.cross_sell.product and tib.cross_sell.collection. These metafields are needed for the next step.Step 1.1. Choose where to display the Cross-sell block
- In the same Cross-sell Personalization section, use Display on to choose where customers see the Cross-sell block:
Product page: show the Cross-sell block on the product page. Customers can personalize the linked item while they personalize the main product, then add both to cart in one click.Cart: show it under each item in the cart.Both product page & cart: show it in both places.

Cart or Both product page & cart, you need to add a short code snippet to the cart page of your theme. Follow this guide: Add Cross-sell Personalization on Cart page.Step 2. Assign Cross-sell Products or Collections in Shopify
- Navigate to Shopify Admin > Products > select the product you want to add the Cross-sell feature to. For example:

- Scroll down a little bit, and you should find the
Metafieldswith two new metafields added there:

**TIB cross-sell collection(s): **Select one or more collections to link as cross-sell options. Customers will then be able to browse and choose from any product within those collections during personalization.

Here’s what your customers will see on the product page:

**TIB cross-sell product: **Select a single product to link as the cross-sell item. Customers will see and can personalize this specific product alongside the main one.

Here’s what your customers will see on the product page:

Step 2.1: Bulk assign Cross-sell products
You can quickly apply the Cross-sell setup to multiple products in Shopify by using the Bulk Edit function.
- Navigate to your Shopify Admin > Products section > select the products you would like to add the Cross-sell feature to > select Bulk Edit

- You might need to click the Column Icon, then add the Metafields to the Table

- Select the Collection or the Product you want to add the Cross-sell feature to

Step 3. Customize and translate the Cross-sell block text
You can change the text shown in the Cross-sell block, and translate it into each language your store sells in.
- Go to Teeinblue > Store Settings > Product Page Content and find the Cross-sell Personalization section.

- At the top of the page, use the Languages from dropdown to choose the language you want to edit.
- Edit the text in each field:
- Cross-sell Personalization title: the heading of the Cross-sell block. Default:
Add a matching customizable item. - Cross-sell Personalization description: the short text under the heading. Default:
Complete your set with a matching personalized item. Buy together & enjoy your personalized bundle! - "Choose product" button: the button customers click to pick a Cross-sell product.
- "Sold out" button: shown when the Cross-sell product is sold out.
- "Edit design" button: lets customers edit the design of the Cross-sell product they personalized.
- Cross-sell Personalization deletion confirmation: the message shown when customers remove the Cross-sell item. Default:
Are you sure you want to remove this item? - Cross-sell confirm delete button / Cross-sell cancel delete button: the two answers to that message. Defaults:
YESandNO.
- Cross-sell Personalization title: the heading of the Cross-sell block. Default:
- Click
Savewhen you're done. Repeat for each language you sell in.
Auto translate to fill in the fields for the selected language, or Import / Export to manage your translations in bulk.Step 3.1. Customize title and description per product (Advanced)
By default, the title and description in Step 3 apply store-wide to all products. If you want a specific product to display unique heading and description text (e.g., inviting buyers of an adult pajama set to add a matching kid set), you can set up a custom product metafield with a short Liquid snippet.

Follow these steps to set it up:
1. Create a Product Metafield definition in Shopify
- In your Shopify Admin, go to Settings > Metafields and metaobjects > Products.

- Click Add definition.

- Set the following information:
- Name:
TIB cross-sell content(or any label you prefer) - Namespace and key:
custom.tib_cross_sell_content - Type: Select Multi-line text
- Name:
- Click Save and pin the definition so it shows up in your product editor.

2. Add the custom snippet to your theme
- In your Shopify Admin, navigate to Online Store > Themes.
- Click the three dots
...next to your active theme > Edit code. - Under the Snippets folder, click Add a new snippet.
- Name the snippet
tib-cross-sell-content.liquid.

- Paste the following code into the new file:
{%- comment -%}
-----------------------------------------------------------------------------
Teeinblue Custom Cross-Sell Text per Product
-----------------------------------------------------------------------------
Metafield configuration:
- Namespace & Key : custom.tib_cross_sell_content
- Type : Multi-line text
- Format options :
Option 1: Title || Description
Option 2: Title | Description
Option 3: Title
Description (separate with a new line)
- Supports inline HTML tags (e.g. <strong>, <span style="color:red">)
-----------------------------------------------------------------------------
{%- endcomment -%}
{%- if product -%}
{%- assign tib_cross_sell = product.metafields.custom.tib_cross_sell_content.value | strip -%}
{%- if tib_cross_sell != blank -%}
<script target="teeinblue" role="crossSellMetafield">
(function() {
var raw = {{ tib_cross_sell | json }};
if (!raw) return;
// Parse title & description by '||', '|', or new line '\n'
var separator = raw.indexOf('||') !== -1 ? '||' : (raw.indexOf('|') !== -1 ? '|' : '\n');
var index = raw.indexOf(separator);
var customTitle = (index === -1 ? raw : raw.slice(0, index)).trim();
var customDesc = (index === -1 ? '' : raw.slice(index + separator.length)).trim();
if (!customTitle && !customDesc) return;
// Live HTMLCollection for maximum selector performance
var buttons = document.getElementsByClassName('tee-cross-sell-product-button');
/**
* Safely updates content (supports HTML tags if present, otherwise updates inner text)
*/
var updateContent = function(container, newContent, defaultTag) {
if (!container || !newContent) return;
var hasHtml = newContent.indexOf('<') !== -1 && newContent.indexOf('>') !== -1;
if (hasHtml) {
if (container.innerHTML !== newContent) {
container.innerHTML = newContent;
}
} else {
var target = container.querySelector(defaultTag) || container;
if (target.textContent !== newContent) {
target.textContent = newContent;
}
}
};
/**
* Applies custom text across all cross-sell button instances on the page
*/
var applyCustomText = function() {
for (var i = 0; i < buttons.length; i++) {
var button = buttons[i];
// Skip if the user has already selected a cross-sell product
if (button.classList.contains('tee-cross-sell-product-button--has-product')) continue;
var titleHolder = button.querySelector('.tee-cross-sell-product-button__title');
var descHolder = button.querySelector('.tee-cross-sell-product-button__description');
if (customTitle) updateContent(titleHolder, customTitle, 'strong');
if (customDesc) updateContent(descHolder, customDesc, 'span');
}
};
// Observe documentElement immediately without waiting for DOMContentLoaded to eliminate any text flashing
var observer = new MutationObserver(applyCustomText);
observer.observe(document.documentElement, {
childList: true,
subtree: true,
characterData: true
});
// Initial check in case elements are already parsed
applyCustomText();
})();
</script>
{%- endif -%}
{%- endif -%}- Click Save.
- In the Layout folder, open
theme.liquid. - Locate the
<head>section and render the snippet right before</head>:
{% render 'tib-cross-sell-content' %}- Click Save.

3. Fill in custom content for your products
- Go to Shopify Admin > Products and select the product you want to customize.
- Scroll down to the Metafields section at the bottom.
- Locate TIB cross-sell content and type your custom title and description. You can separate them using either
||,|, or simply by pressing Enter for a new line:
Add a matching kid set || Complete the family bundle and save 15%!<span style="color: #e53e3e;">Save 15% today!</span>.- Click Save.

Step 4. Review and test your Cross-sell products
- Go back to Teeinblue > Store Settings > Product Page Content > Cross-sell Personalization and review your text in every language (see Step 3).
- Also, be sure to double-check everything on your storefront. Confirm that the Cross-sell block appears correctly, and that when you add the main product to cart, the linked Cross-sell product is also added automatically.

Updated on: 16/11/2026
Thank you!
