> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.teeinblue.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Add warning about missing customization on Cart page

To avoid ** [orders placed without a customization](https://support.teeinblue.com/en/article/orders-not-show-in-teeinblue-because-of-missing-customization-1kyl0lt/)**, you can show a warning right on your Cart page when the item added to cart doesn't have a customization. Then your customers can notice and go back to the product to add to cart again.

Please follow the instruction below to add this warning message.

| The warning message only shows up for each **Line item** on Cart which belongs to Teeinblue and has no **customization_id**.

1. Go to your Shopify admin -> Themes -> Edit code (of the published theme)

![](https://storage.crisp.chat/users/helpdesk/website/6085dc2a7293d800/image_1r3p443.png)

2. Open a file that build Cart Page contents. It can be in `Sections` or `Snippets` folder. Example: `cart.liquid`, `cart-items.liquid`, `main-cart-items.liquid`,...

3. Find a block code starting like `{% for item in cart.items %}`

![](https://storage.crisp.chat/users/helpdesk/website/6085dc2a7293d800/image_7eqlk7.png)

4. Inside the block code, add the codes below into where you want to show warning message:
```
<!-- Teeinblue no custom notification -->
{% assign product = item.product %}
{% assign version = product.metafields.teeinblue.campaign_version %}
{% assign platformProduct = product.metafields.teeinblue.platform_product %}
{% assign isPlatformProduct = false %}
{% assign teeProduct = false %}
{% assign startDate = '2020-03-31 23:59:59' | date: '%s' %}
{% assign endDate = '2020-10-20 00:00:00' | date: '%s' %}
{% assign productCreatedDate = product.created_at | date: '%s' %}
{% assign productVendor = product.vendor | downcase %}
{% assign addonVariants = product.metafields.teeinblue.addon_variants.value %}
{% if platformProduct %}
  {% assign isPlatformProduct = true %}
  {% assign version = platformProduct.value.published_at | date: '%s' %}
{% endif %}
{% if version
  or isPlatformProduct
  or productVendor == 'teeinblue'
  and productCreatedDate > startDate
  and productCreatedDate < endDate
%}
  {% assign teeProduct = true %}
{% endif %}

{% if teeProduct == true %}
{% for property in item.properties %}
  {% if property.first contains '_customization_id' %}
	{% assign hasCustomizationId = true %}
	{% break %}
  {% endif %}
{% endfor %}

{% if hasCustomizationId != true %}
  <div class="teeinblue-warning-no-customization" style="color: #EC0101; border-style: solid; border-width: 2px; padding: 10px;">
    Error! Personalization lost. Kindly remove this item from cart and add the item to cart again. We apologize for this inconvenience!
  </div>
{% endif %}
{% endif %}
<!-- End Teeinblue no custom notification -->
```

For example, under `cart-item__details`:

![](https://storage.crisp.chat/users/helpdesk/website/6085dc2a7293d800/image_6jrz6.png)

5. Change the warning message if you want.
The default warning message is _"Error! No customization created. Please add to cart again."_ In the above codes, you can find the line `<div class="teeinblue-warning-no-customization">Error! No customization created. Please add to cart again.</div>` and change the message.

6. Save and Done.
Then, when some errors happen and the customization can't be created, a warning message will show up like this:

![](https://storage.crisp.chat/users/helpdesk/website/6085dc2a7293d800/image_x94ssn.png)

| Contact our support team if you need help.