Articles on: Design & Display

How to Show Coupons on Collection Pages

You can display your coupons directly on collection pages to showcase discounts to customers as they browse through your product collections.


This is the easiest way to enable collection page coupons and works out of the box on most modern themes.


1. Enable Collection Page Coupons

Go to your Klip Dashboard:

  • Open a coupon or create a new one
  • Click Coupon design, the third step in the step bar at the top, then select Collection page badge under Customize style
  • Enable Show coupon badge on collection page


Coupon Design section with the collection page coupon option enabled


To ensure best compatibility across themes:

  • Go to Klip Settings
  • Navigate to Advanced Settings
  • Scroll to Buy Now Compatibility
  • Click Regenerate token


Buy Now Compatibility section with the Regenerate token button


This is usually already set for most stores. If so, no action is needed.


3. Verify on Collection Page

Visit your store’s collection page and check if coupons appear next to eligible products.


Collection page showing coupon badges next to eligible products


This method works automatically on many themes. However, some themes may require additional setup depending on how collection pages are built. If coupons do not appear, please use Method 2 below or contact us or start a live chat. Our team is happy to help you get everything working smoothly.


Method 2: Manual Setup (Theme Code Installation)


1. Create or Edit a Coupon

  • Go to your Klip Dashboard
  • Either create a new coupon or click on a coupon name to edit an existing one.


2. Navigate to the Coupon Design Section

  • Click Coupon design, the third step in the step bar at the top of the coupon settings, then select Collection page badge under Customize style.


Coupon design step with Collection page badge selected and Show coupon badge on collection page ticked


3. Enable the Collection Page Setting

  • Enable the Show coupon badge on collection page option. This setting will allow your coupons to appear on the collection page.


Collection page coupon option enabled in Coupon Design


4. Backup Your Theme

  • Before making any changes to your theme, it's highly recommended to create a backup. Go to your Shopify Admin, click Online Store in the left menu, click the … button next to Edit theme on your live theme (the store preview at the top), and select Duplicate (not Duplicate in Canvas). This will create a backup copy of your theme that you can revert to if needed.


Duplicate in the theme's menu in Online Store


5. Edit Your Theme Code

  • In Online Store, click the … button next to Edit theme on the theme you want to edit.
  • Select Edit code to open the theme code editor.


Edit code in the theme's menu in Online Store


6. Create a New Snippet

  • In the left sidebar, find the Snippets folder and click on Add a new snippet.


Theme code editor Snippets folder with Add a new snippet


  • Name the snippet elsklip_collection_block and paste the following code into the snippet file:
{% if product %}
{%- capture klip_product_json -%}
{
"{{ product.id }}": {
"id": {{product.id}},
"collectionIds": [
{% for c in product.collections %}
{{c.id}}{% unless forloop.last %},{% endunless %}
{% endfor %}
],
"tags": {{ product.tags | json }},
"variants": {{ product.variants | json }}
}
}
{%- endcapture -%}

<div class="elsklip-coupon-box"
data-product-id="{{ product.id }}"
{% if short %}data-short{% endif %}
data-klip-product="{{ klip_product_json | escape }}">
</div>
{% endif %}


  • Save the snippet file.


7. Add the Snippet to Your Product Cards

Locate the file responsible for rendering product items on collection pages. Common file names include:


  • snippets/product-card.liquid
  • snippets/product-grid-item.liquid
  • snippets/product-loop.liquid
  • snippets/card.liquid


Open the file and add the snippet that you've created on the previous step above the code that is responsible for the product price output.


{% render 'elsklip_collection_block', product: card_product, short: true %}


For example, for the Dawn theme you would need to open the file snippets/card-product.liquid and the code snippet would be added in the following way:


Add the above code before this line:


{% render 'price', product: card_product, price_class: '', show_compare_at_price: true %}


or


{% render 'price', product: card_product, price_class: '' %}


This step may vary depending on your theme. Different themes render products on collection pages differently. Please contact us if your theme has different file names or you can not find a place where to render the coupons.


Sometimes the product variable that needs to be passed to the snippet is not "card_product" and must be adopted according to the context in your theme.


8. Theme-Specific Adjustments

  • The exact file names and structure may vary depending on your theme. If the instructions above don’t work with your theme, please feel free to reach out to our support team for assistance.


9. Change Coupon Alignment (Optional)

  • Go to Klip Settings
  • Navigate to Collection Page
  • Select the badge alignment position


Collection Page settings with the badge alignment position


10. Verify the Coupon on the Collection Page

  • Navigate to your store’s Collection Page.
  • Check that the coupon badge appears next to each product where it applies.


Collection page with the coupon badge next to a product


Additional Tips


Test Before Going Live: Use the theme preview to check that everything is working correctly before making your theme live.


Clear Cache: If you don’t see the coupon after making these changes, try clearing your browser cache or testing in an incognito window.


Contact Support: If you encounter any issues or need help customizing the coupon appearance, feel free to reach out to our support team.


See also


Updated on: 10/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!