Add disclaimer in cart page based on product page

Topic summary

A user needs to display a disclaimer on the cart page for products tagged with “PRODUCT_IMGDISCLAIMER”. The disclaimer currently appears above products but should appear below each individual product item.

Current Issue:

  • Code placed within the cart items loop ({%- for item in cart.items -%}) displays disclaimer above products
  • User wants it positioned below each product’s details section

Proposed Solutions:

Two community members offered similar approaches:

  • Adjust the disclaimer code’s position within the product loop to render after product details
  • Use conditional Liquid code: {% if item.product.tags contains "PRODUCT_IMGDISCLAIMER" %}
  • Add custom CSS styling for proper formatting (font-size, color, margins)

Status: The discussion remains open with solutions provided but not yet confirmed as implemented. One responder requested the website URL for more specific guidance, while another offered hands-on implementation assistance.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

I need help for adding disclaimer in the cart page based on the tag we have for the products, and the tags we are using is “PRODUCT_IMGDISCLAIMER”. I tried using the code:

which is added below the {%- for item in cart.items -%}. However, it is only showing above the product. Is it possible that you can help me add it below

I want to add it here: https://monosnap.com/file/AnlAyRXU1h1tpUcVRhPDQLEw7cWtTW

hi @ligaya

Thanks for reaching out to the Shopify Community. I understand your concern about adding the disclaimer below the product on the cart page. Since the disclaimer is based on the product tag PRODUCT_IMGDISCLAIMER, you’ll need to adjust its position within the loop so that it appears directly below the product.

To assist you better, could you please share your website URL? This will help us identify the exact section where we can apply the code to achieve the desired result.

Alternatively, you can try placing the code in the position shown below and check the result. Please refer to the screenshot below

Hey @ligaya ,

Hope you’re doing fantastic! :slightly_smiling_face:

To display the disclaimer below each individual product in the cart, we need to modify the Liquid template code.

Here’s the solution:

  1. Locate your cart template file (likely cart.liquid or a similar file in your theme)
  2. Find the section where individual cart items are displayed in the loop (usually within a for loop like {% for item in cart.items %})
  3. Add this code just after each product’s details but before the next item starts:
{% if item.product.tags contains "PRODUCT_IMGDISCLAIMER" %}  **Disclaimer:** Image shown is not an exact match for the product or options you've selected. 
 {% endif %}
  1. You may want to add some CSS styling for this new disclaimer element:
.product-image-disclaimer {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
  margin-bottom: 15px;
}

The orange-highlighted area in your second image is exactly where this disclaimer should appear for each product.

This solution maintains the existing top disclaimer while adding individual disclaimers below each applicable product in the cart.

Let me know if you need any clarification or have any questions! If you want us to do this for you, let us know and we’d love to.

Best regards,

Shubham | Untechnickle