All Projects β†’ w3bdesign β†’ Nextjs Woocommerce

w3bdesign / Nextjs Woocommerce

Licence: gpl-3.0
NextJS (React) eCommerce site with WooCommerce backend

Programming Languages

javascript
184084 projects - #8 most used programming language
es6
455 projects

Projects that are alternatives of or similar to Nextjs Woocommerce

Wp Decoupled
Next.js app with WPGraphQL and WordPress at the backend.
Stars: ✭ 197 (+271.7%)
Mutual labels:  graphql, woocommerce, nextjs
Pizzaql
πŸ• Modern OSS Order Management System for Pizza Restaurants
Stars: ✭ 631 (+1090.57%)
Mutual labels:  graphql, nextjs, styled-components
Brian Lovin Next
My personal site
Stars: ✭ 522 (+884.91%)
Mutual labels:  graphql, nextjs, styled-components
Woo Next
πŸš€ React WooCommerce theme, built with Next JS, Webpack, Babel, Node, Express, using GraphQL and Apollo Client
Stars: ✭ 342 (+545.28%)
Mutual labels:  graphql, woocommerce, nextjs
Ran
⚑ RAN! React . GraphQL . Next.js Toolkit ⚑ - SEO-Ready, Production-Ready, SSR, Hot-Reload, CSS-in-JS, Caching, CLI commands and more...
Stars: ✭ 2,128 (+3915.09%)
Mutual labels:  graphql, nextjs, styled-components
Glutenproject.com
Google for Certified Gluten Free Products
Stars: ✭ 37 (-30.19%)
Mutual labels:  graphql, nextjs, styled-components
Styled Components Website
The styled-components website and documentation
Stars: ✭ 513 (+867.92%)
Mutual labels:  nextjs, styled-components
Pup
The Ultimate Boilerplate for Products.
Stars: ✭ 563 (+962.26%)
Mutual labels:  graphql, styled-components
Coolqlcool
Nextjs server to query websites with GraphQL
Stars: ✭ 623 (+1075.47%)
Mutual labels:  graphql, nextjs
Este
This repo is suspended.
Stars: ✭ 5,467 (+10215.09%)
Mutual labels:  graphql, nextjs
Bobarr
🍿 The all-in-one alternative for Sonarr, Radarr, Jackett... with a VPN and running in docker
Stars: ✭ 697 (+1215.09%)
Mutual labels:  graphql, nextjs
Gatsby Starter Personal Blog
A ready to use, easy to customize, fully equipped GatsbyJS blog starter with 'like app' layout and views transitions.
Stars: ✭ 817 (+1441.51%)
Mutual labels:  graphql, algolia
Language Babel
ES2017, flow, React JSX and GraphQL grammar and transpilation for ATOM
Stars: ✭ 476 (+798.11%)
Mutual labels:  graphql, styled-components
Example Storefront
Example Storefront is Reaction Commerce’s headless ecommerce storefront - Next.js, GraphQL, React. Built using Apollo Client and the commerce-focused React UI components provided in the Storefront Component Library (reactioncommerce/reaction-component-library). It connects with Reaction backend with the GraphQL API.
Stars: ✭ 471 (+788.68%)
Mutual labels:  graphql, nextjs
Firebase Gcp Examples
πŸ”₯ Firebase app architectures, languages, tools & some GCP things! React w Next.js, Svelte w Sapper, Cloud Functions, Cloud Run.
Stars: ✭ 470 (+786.79%)
Mutual labels:  graphql, nextjs
React Firebase Starter
Boilerplate (seed) project for creating web apps with React.js, GraphQL.js and Relay
Stars: ✭ 4,366 (+8137.74%)
Mutual labels:  graphql, styled-components
Mvfsillva
My personal website
Stars: ✭ 13 (-75.47%)
Mutual labels:  graphql, styled-components
Security Checklist
A checklist for staying safe on the internet
Stars: ✭ 908 (+1613.21%)
Mutual labels:  nextjs, styled-components
Nextjs Graphql Sample
A simple app to demonstrate basic API functions built with REST and GraphQL
Stars: ✭ 29 (-45.28%)
Mutual labels:  graphql, nextjs
Hackernews React Graphql
Hacker News clone rewritten with universal JavaScript, using React and GraphQL.
Stars: ✭ 4,242 (+7903.77%)
Mutual labels:  graphql, nextjs

Codacy Badge Scrutinizer Code Quality CodeFactor Quality Gate Status

Screenshot 1

NextJS Ecommerce site with WooCommerce backend

Live URL: https://nextjs-woocommerce.now.sh

Table Of Contents (TOC)

Installation

  1. Install and activate the following required plugins, in your WordPress plugin directory:

Optional plugin:

The current release has been tested and is confirmed working with the following versions:

  • WordPress version 5.6.0
  • WooCommerce version 5.0.0
  • WP GraphQL version 1.2.4
  • WooGraphQL version 0.6.1
  1. For debugging and testing, install either:

    https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/ (Firefox)

    https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm (Chrome)

    Rename .env.example to .env so the Apollo debugger will correctly load. It will not load if the NODE_ENV variable is not correctly set.

  2. Make sure WooCommerce has some products already or import some sample products

    The WooCommerce sample products CSV file is available at wp-content/plugins/woocommerce/sample-data/sample_products.csv or Sample products

    Import the products at WP Dashboard > Tools > Import > WooCommerce products(CSV)

  3. Clone or fork the repo and modify nextConfig.js.

    Then set the environment variables ALGOLIA_APP_ID and ALGOLIA_PUBLIC_API_KEY in Vercel or your preferred hosting solution.

    See https://vercel.com/docs/environment-variables

  4. Modify the values according to your setup

  5. Start the server with npm run dev

  6. Enable COD (Cash On Demand) payment method in WooCommerce

  7. Add a product to the cart

  8. Proceed to checkout (GΓ₯ til kasse)

  9. Fill in your details and place the order

Features

  • NextJS version 10.0.8
  • Connect to Woocommerce GraphQL API and list name, price and display image for products
  • Support for simple products and variable products
  • Cart handling and checkout with WooCommerce (Cash On Delivery only for now)
  • Algolia search (requires algolia-woo-indexer)
  • Meets WCAG accessibility standards where possible
  • Placeholder for products without images
  • Apollo Client with GraphQL
  • React Hook Form with form validation and error display
  • Animations with React-Spring and Animate.css
  • Loading spinner created with Styled Components
  • Shows page load progress with Nprogress during navigation
  • Fully responsive design
  • Category and product listings
  • Pretty URLs with builtin Nextjs functionality
  • Tailwind CSS for styling
  • JSDoc comments
  • WooCommerce cart session is automatically deleted after 48 hours to prevent GraphQL session expiration errors

Troubleshooting

I am getting a cart undefined error or other GraphQL errors

Check that you are using the 0.6.1 version of the wp-graphql-woocommerce plugin

The products page isn't loading

Check the attributes of the products. Right now the application requires Size and Color.

Issues

Overall the application is working as intended, but it has not been tested extensively in a production environment. More testing and debugging is required before deploying it in a production environment.

With that said, keep the following in mind:

  • Currently only simple products and variable products work without any issues. Other product types are not known to work.
  • Only Cash On Delivery (COD) is currently supported. More payment methods may be added later.

TODO

  • Add total to cart/checkout page
  • Show stock quantity on individual products
  • Copy billing address to shipping address
  • Display product variation name in cart / checkout
  • Hide products not in stock
  • Add better SEO
  • Re-add Next/image when it is working better
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].