Solutons Lounge

How to edit the Cart Drawer product page links (Sense theme)


 

Hi everyone,

 

Looking to get some help on editing the cart drawer on www.birchbury.co.nz.

 

When I add an item to the cart, the products I’ve added, the links goes to the default shopify page which I don’t want. I use REPLO to build my pages and want it linked to those instead.

 

I was able to fix this issue on the cart page (https://birchbury.co.nz/cart) by:

  • Going to code editor and to main-cart-items.liquid
  • Replaced old code #1: //<a href=”https://community.shopify.com/c/shopify-design/how-to-edit-the-cart-drawer-product-page-links-sense-theme/td-p/{{ item.url }}” class=”cart-item__link” aria-hidden=”true” tabindex=”-1″> </a>//
  • New code #1: <a href=”https://community.shopify.com/pages/{{ item.title” truncatewords: 1, “” }}” class=”cart-item__link” aria-hidden=”true” tabindex=”-1″> </a>

 

  • Replaced old code #2: <a href=”https://community.shopify.com/c/shopify-design/how-to-edit-the-cart-drawer-product-page-links-sense-theme/td-p/{{ item.url }}” class=”cart-item__name h4 break”>{{ item.product.title | escape }}</a>
  • New code #2: <a href=”https://community.shopify.com/pages/{{ item.title” truncatewords: 1, “” }}” class=”cart-item__name h4 break”>{{ item.product.title | escape }}</a>

 

^ The above code corrected the product link on the cart page.

 

But would like any help to get it corrected for the cart drawer (that slides out from the side of the page)

 

Thanks,

T

TL



Source link

Exit mobile version