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 change the badge's look, see How to Customize the Collection Page Badge Design.


To ensure best compatibility across themes:

  • In Klip, go to Settings → Advanced and scroll to Buy Now Button 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)


First turn on Show coupon badge on collection page for the coupon (Method 1, step 1).


1. 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


2. 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


3. 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.


4. 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 adapted to your theme.


5. Change Coupon Alignment (Optional)

  • In Klip, go to Settings → Collection Page and choose Left, Center or Right under Badge Alignment.


Collection Page settings with the badge alignment position


6. 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.


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: 23/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!