Replies: 1 comment
-
Yes, and I would include product pages. I personally do something like this:
Correct. You're essentially building a decoupled front end from wordpress. Your WP theme is still useful however, as it can be used to dictate the CMS experience for your shop managers.
Yes and no. You will first have to make a choice as to whether or not you want to fetch this particular data at build time or on run time. Prices should always be fetched at run time. If you are high volume store that gets a lot of reviews, it may be worth refetching reviews at run time. Most stores however, will be fine fetching and updating reviews at build time. If you host on Gatsby Cloud or Netlify, You can also have a new review trigger an incremental build so it's only ever a few minutes behind real-time.
Yes, you can do something similar to Shopify's hosted checkout where you have all of your product data on one site, and redirect the user to another site for the checkout portion. It's not necessary, however, as you can also integrate the full cart and checkout process into your Gatsby site.
@jacobarriola has written a post about it here. Note: Understanding this will require some pre-reading on wp-graphql and wp-graphql-woocommerce.
It's an option, though I would argue that the MOST common option is to have a fully decouple front end and backend.
Additional plugins like Hope that helps, and feel free to join the wp-graphql community on slack for more information. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
it all sounds amazing but I've still got some questions, despite the tutorials / guides that I find online.
I'm using WooCommerce + WordPress as a backend and would like to use gatsby as a frontend.
Am I correct with those assumptions:
And a general question:
Is it possible to use Gatsby for parts of the website (blog, content page) and not for other parts (checkout)?
If yes, how to do that?
Have WooCommerce + Gatsby running side by side (Gatsby as in the generated HTML files) and depending on which URL has been requested by the browser, either HTML or the WP index.php is being processed.
In terms of SSL, Cookie Consent, PHP Sessions, Logged in users / wholesale roles:
Will that be somewhat "easier" to use both systems or would it be best to have 100% Gatsby in front of WooCommerce?
Thanks,
Chris
Beta Was this translation helpful? Give feedback.
All reactions