Skip to main content

Overview

Similar Products suggests alternative products when a size is out of stock. This feature increases conversions by offering relevant alternatives to customers.

Standard installation

Available Display Modes Configuration Step 1: Choose the Display Mode In the Kleep App Embed settings, find the “Show recommended products” option and select your desired mode from the dropdown menu. Screenshot_2025-12-09_at_11.48.24.png Similar Products Mode Selection Adding Custom Buttons (for custom modes) If you’ve chosen a mode with “custom”, you can add buttons at specific locations:
  1. Go to the Product page template in the theme editor
  2. In the desired section, click Add block
  3. Click the Apps tab and select “Kleep Similar Button”
  4. Position the block where you want it and save
image.png Add Kleep Similar Button Block
Similar Products buttons only appear when a variant is out of stock. It’s normal if you don’t see them on all products.
Adding Multiple Buttons You can add any number of Similar Products buttons on the Product Page. To allow multiple buttons, the widget must be set to one of: custom_buttons, popup+custom, or button+custom. For OS 2.0 themes:
  • Go to Online Store → Customize
  • Open the Product page template
  • Click Add block → Kleep Similar Button
  • Repeat if you want 2+ buttons on the page
Every button automatically appears only when the selected variant is out of stock. For the complete technical walkthrough (including V1 / legacy themes), see the advanced installation guide.

Manual installation

Step 1: Create the Snippet Create a file snippets/kleep-similar-button.liquid with the following code:
Step 2: Render the Snippet Insert this line wherever you want the button to appear:
Typical placement: under the variant selectors or near the Add to Cart form. Step 3: Enable the Correct Mode Because manual installation doesn’t use OS 2.0 blocks, the widget must use one of:
  • custom_buttons
  • popup+custom
  • button+custom
Adding Multiple Buttons To create multiple buttons, simply place the snippet code in different areas of the product template:
Each snippet call creates an additional button. Every button automatically appears only when the selected variant is out of stock.
Manual installation requires the Kleep translation keys in your theme locale files — see Translations (i18n).

Troubleshooting

Similar Products doesn’t appear
  • ☑️ Check that the mode isn’t set to “Disabled” in settings
  • ☑️ Buttons only appear when a variant is out of stock
  • ☑️ For “custom” modes, verify you’ve added an App Block
Still stuck? Contact support@kleep.ai.