Stay on product page after adding item to cart for Refresh theme?

So I’ve just moved our store onto the Refresh theme within the past two months after using a third-party website editor. On that website editor, we were able to set it so that when someone adds an item to their cart it doesn’t take them to the cart page but lets them stay on the product page (same for adding products from collection pages) but have noticed that isn’t available as a setting on the Shopify editor for the Refresh theme.

I have tried using the method shared here - https://community.shopify.com/c/shopify-design/product-pages-stay-on-the-product-page-after-adding-products-to/td-p/616440/page/3 but after doing it nothing changed, tried some of the fixes in the comments and still nothing changed.

Does anyone know how I can do this?

Hi @searnold

You can find the option under theme settings and the option is bottom 3rd.

After adding a product to the cart from the product page, there are 3 types of cart styles.

  1. Drawer

  2. Page

  3. Popup Notification

You can choose what suits you.

Hi, I did have a look at that but if I choose Drawer it doesn’t give me a cart page and I need an overall cart page so that doesn’t work for me unfortunately

Hi @searnold

I got it.

Find the cart-drawer.liquid under Snippets and paste the below code at line 305.

{%- if cart != empty -%}
            {{ 'templates.cart.cart' | t }}
{%- endif -%}

It will look something like

If the cart is empty then, like below

Thats worked perfectly thank you!

I have noticed though, I think some code from a separate external app that we use on our cart page is changing the placement of it, would you know what I could do to make the button appear above the checkout button? If not thats fine I’m happy to leave it as it is

Hi @searnold

Can you share your store URL?
I can share the change code after checking what we can do to fix it.

If you don’t want to share the store URL here, you can messgae me.

Our store URL is https://naturallyhealthypet.co.uk/

Hi @searnold

It looks like you solved your issue.

I can see the correct add to cart button.

Oh thats weird, this is how it shows up for me

After adding a product to the cart from the product page, I want to stay on product page and no appear 3 types of cart styles. What should I do?