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

samthk
Tourist
12 0 2

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 ?

Replies 7 (7)

Noman01
Shopify Partner
6 0 2

By Clicking Open Shopify Inbox Chat

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

gobrandbrite
Tourist
7 1 1

Did you figure out how to do this? Thanks!

Noman01
Shopify Partner
6 0 2

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

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

DuraPaw
Shopify Partner
16 0 10

Unfortunately, it did not work for us.

Noman01
Shopify Partner
6 0 2

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

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

DuraPaw
Shopify Partner
16 0 10

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.

Noman01
Shopify Partner
6 0 2

Hi, @samthk  

yes you can use the following code : <a href="/?chat"> Contact US </a>

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