Can I redirect clicking on this from the cart so that it redirects to my homepage?

Can I redirect clicking on this from the cart so that it redirects to my homepage?

iPrint
Visitor
2 0 1

Screenshot 2024-07-11 164147.png

When I click it, it redirects to its product page which isn't what I want it to really do.. I want it to go back to the homepage where my one product store really is. Is this possible or can I disable clicking on this product in the cart altogether? 

Replies 2 (2)

KieranR
Shopify Partner
393 34 121

I assume you're using Dawn theme?

 

To link product title in cart line item to homepage instead of product page:

 

  1. Edit theme code
  2. Open main-cart-items.liquid
  3. Replace {{ item.url }} with {{ shop.url }}
    Note: there should be 2x replacements
  4. Hit save
  5. Test it works and didn't break anything 🙃
Part time Shopify SEO, based in NZ. Sometimes freelance outside the 9-5.
iPrint
Visitor
2 0 1
It worked Thanks!