Shopify Headless Hydrogen as main store problems

Shopify Headless Hydrogen as main store problems

rewuxiin
Shopify Partner
5 1 0

Hi all!


This thread is both a question of what to do and a cautionary tale for those who are going to use hydrogen as their main store.

During the rebranding process we decided to launch a shopify store on react and it turned out that shopify allows us to use the hydrogen solution out of the box.

We were very excited and developed an excellent solution.

However, after the launch we ran into a whole bunch of problems.

 

First of all - you can't use hydrogen as your main store. This means that you must have two domains or it can be a www subdomain, one of the domains will be the main domain, product url's will be linked to it and all applications will be based on this domain. However, this same domain can only work in normal shopify theme display mode.

In order that when you click on a product link to get to your hydrogen store, shopify has a solution in the form of a redirect theme.

 

By the way I contacted tech support twice and both times they couldn't help me, the second time they suggested me to contact application developers or community. That is, even the solution to the redirect theme I found after myself.

Well, it would seem that the problem is solved, although with the use of a crutch.

However - the next day google merchant center blocks our store, because we redirect users from product pages using redirects.

I suspect that meta ads will give us the same notice.

 

 

On top of that, shopify api decided to take a different path than mainstream shopify. Regular shopify uses links like ?variant=47215858024 and the same links are used for all applications, but storefront api gives data to hydrogen to form links like ?Color=Green&Size=S.

Yes, we can modify hydrogen to work with links of the form ?variant=47215858024 but this is an additional crutch that can slow down the store.

 

My question is: is there any solution to intercept link formation in shopify in order to give the correct links to third-party applications?

 

 

Replies 0 (0)