How to make product title on cart page unclickable?

Solved
YnkSch
Excursionist
29 0 8

How can I make the product title on the cart page unclickable so that the customer can't go to the product page?

 

I'm using dawn theme.

Accepted Solution (1)

Accepted Solutions
arshia_sheikh
Shopify Partner
51 17 9

This is an accepted solution.

Hi @YnkSch  , hope you are doing well. You can do this by replacing this line on  main-cart-items.liquid  file

 <a href="{{ item.url }}" class="cart-item__name h4 break">{{ item.product.title | escape }}</a>

with the line below

<div class="cart-item__name h4 break">{{ item.product.title | escape }}</div>

If helpful, please Like and Accept Solution.

View solution in original post

Replies 2 (2)
arshia_sheikh
Shopify Partner
51 17 9

This is an accepted solution.

Hi @YnkSch  , hope you are doing well. You can do this by replacing this line on  main-cart-items.liquid  file

 <a href="{{ item.url }}" class="cart-item__name h4 break">{{ item.product.title | escape }}</a>

with the line below

<div class="cart-item__name h4 break">{{ item.product.title | escape }}</div>

If helpful, please Like and Accept Solution.

YnkSch
Excursionist
29 0 8

Thank you very much:)