How can I modify 'view cart' from <a> to <bottom> in HTML?

Topic summary

A user seeks help converting an <a> (anchor) tag labeled “ver carrito” (view cart) into a <button> element in their HTML code.

Current Implementation:

  • The view cart link uses an anchor tag with classes like “button”, “button–secondary”, and “button–full-width”
  • The code includes an href attribute pointing to the cart URL route
  • A screenshot shows the existing cart notification interface

Response:

  • Another user suggests trying a solution, though the specific code recommendation appears incomplete or improperly formatted in the thread

Status: The question remains open, awaiting a complete technical solution for the HTML tag conversion.

Summarized with AI on November 18. AI used: claude-sonnet-4-5-20250929.

Hi all!

I would like to know how can a change the “ver carrito” whichs means “view cart”

rebeccakids_0-1689610844715.png

my code is

<a
href=“{{ routes.cart_url }}”
id=“cart-notification-button”
class=“button button–secondary button–full-width”

{{ ‘general.cart.view_empty_cart’ | t }}

Thanks!

Try this