I want to open the Shopify inbox chat box when the user clicks the contact us button .

I have a contact us button on my website that needs to open the Shopify inbox chat box when the user clicks the button. Is it possible to do this ?

By Clicking Open Shopify Inbox Chat

<a class=“site-nav__link site-nav__link–icon” href=“{{ request.path | append: “/?chat” }}” > Open Chat Box

Did you figure out how to do this? Thanks!

<a class=“site-nav__link site-nav__link–icon” href=“{{ request.path | append: “/?show_chat” }}” > Open Chat Box

Try this it will work because Shopify inbox updates its handle form /?chat to /?show_chat.

Unfortunately, it did not work for us.

Hi, @samthk

yes you can use the following code : Contact US

or you can add /?chat this to your link in the navigation.

<a class=“site-nav__link site-nav__link–icon” href=“{{ request.path | append: “/?chat” }}” > Open Chat Box

Try this it will work because Shopify inbox updates its handle form /?show_chat to /?chat.

Hi Noman01, what this link does is refresh the page and then open the chat box. Is there a way to prevent the refresh and simply just open the chat box?

Thank you for taking the time to respond and help.

Hi Muhammed, this is a great solution! It works, but instead of simply opening up the chat window, this link bounces the user to the homepage and then opens the chat window. Do you know how to open the chat window without redirecting or refreshing the page?

@greenvalleycode Open Chat Box

try this