If you notice that there are some Customily URLs showing on your cart follow the instructions below to hide them.
Be careful
Removing this involves changing code on your Shopify theme. If you are not familiar with theme liquid files, proceed with caution!
To hide Customily URL on the cart page
1. Go to the Shopify theme you want to use and click on Actions -> Edit code
2. Identify the cart page file. This could have one of the following names:
- cart-template.liquid
- cart.liquid
- template--cart.liquid
3. Find the piece of code that renders and filters the properties of the cart items. It
looks something like this:
{% for p in item.properties %}
{% if p.last != blank %}
{{ p.first }}:
{% if p.last contains '/uploads/' %}
{{ p.last | split: '/' | last }}
{% else %}
{{ p.last }}
{% endif %}
{% endif %}
{% endfor %}
4. Insert the following code inside the condition depending on how it is written.
- If the condition is {% if p.last != blank %} we must add the following condition inside the brackets:
and p.first.first != '_'
When added it should look like this:
- If the condition is {%unless p.last == blank%} we must add the following condition inside the brackets:
or p.first.first == '_'
When added it should look like this:
To hide Customily URLs in a pop-up cart
To hide the Customily URLs showing on your pop-up cart:
1. Go to the Shopify theme you want to use and click on Actions -> Edit code
2. Identify the pop-up cart file. This could have one of the following names.
- header.liquid
- ajax-cart-template.liquid
- mini-cart.liquid
3. Follow the rest of the instructions indicated above.
Share
Was this article helpful?
Have more questions? Submit a request