Skip to content

Shopify Inbox with custom storefront #878

Answered by juanpprieto
Chadyka asked this question in Help
Discussion options

You must be logged in to vote

@Chadyka @JacopoKenzo @nerioslamaj

I managed to get Inbox to work with Hydrogen with this workaround. Here are the steps:

  1. Install the Shopify Inbox app into your store
  2. Make sure it is enabled in your Online Store by going to the app settings.
  3. Visit your published liquid theme preview and inspect the DOM via DevTools
  4. Search the DOM for a script tag with a src pointing to a shopifyChatV1.js
  1. Copy the script's src
  2. In your hydrogen's root.tsx add the following script tag
import {Script} from '@shopify/hydrogen'

export default App() {
 return (
   ....
   <Script
     async
     src='YOUR-COPIED-SRC_INC-QUERY-PARAMS'
   />
 )
}

Note: The widget won't fully work in localhost because it is…

Replies: 4 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@geoffreybosch
Comment options

@geoffreybosch
Comment options

@vestimir
Comment options

@juanpprieto
Comment options

@countfak
Comment options

Answer selected by juanpprieto
Comment options

You must be logged in to vote
1 reply
@contrebande-labs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
9 participants