How can I make 'add to cart' function add to sidebar instead of redirecting?

Hi,

I’ve currently added in my theme’s ‘add to cart button’ below the thumbnails of my collections, however, frustratingly, it adds the product & redirects to the cart page instead of adding it to a sidebar cart (similar to the normal functioning of the button).

  1. Pictured below, the usual add to cart button, adds a product to the sidebar cart.

  2. Whilst the add to cart button that I added - in the liquid file - below the thumbnails of collections aredirects to the cart page and adds the product to the cart.

Is there a way that I can enable the second button to function like the first - adding to a sidebar cart?

I assume it would be using JS?

Any help is greatly appreciated!

The website link is: www.friendandburrell.com.au

Hello fandb,

Yes it’s possible but without the code of theme you are using it’s not possible.
Or try to copy the existing first button code and implement in second button a/to theme structure.
or alternatively hire someone to do this.

Thanks