All Projects → w3bdesign → nuxtjs-woocommerce

w3bdesign / nuxtjs-woocommerce

Licence: MIT license
NuxtJS (Vue) eCommerce site with WooCommerce backend

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to nuxtjs-woocommerce

Ocelot-Social
Free and open-source social network for active citizenship.
Stars: ✭ 49 (-40.96%)
Mutual labels:  apollo, nuxtjs
Laravel Vuejs.com
Laravel and VueJs Blog, using Laravel nova, GraphQL, NuxtJs, Apollo and ...more
Stars: ✭ 54 (-34.94%)
Mutual labels:  apollo, nuxtjs
Vuesion
Vuesion is a boilerplate that helps product teams build faster than ever with fewer headaches and modern best practices across engineering & design.
Stars: ✭ 2,510 (+2924.1%)
Mutual labels:  apollo, nuxtjs
Virapro.ru
[E-commerce] Plumbing Store
Stars: ✭ 45 (-45.78%)
Mutual labels:  algolia, nuxtjs
Gatsby Woocommerce Themes
⚡ A Gatsby Theme for WooCommerce E-commerce site Gatsby WooCommerce WordPress
Stars: ✭ 306 (+268.67%)
Mutual labels:  apollo, woocommerce
Nextjs Woocommerce
NextJS (React) eCommerce site with WooCommerce backend
Stars: ✭ 53 (-36.14%)
Mutual labels:  algolia, woocommerce
nuxtswagger
Nuxt-TS-Swagger
Stars: ✭ 17 (-79.52%)
Mutual labels:  nuxtjs
ios-graphql
iOS code examples with GraphQL, Apollo & more
Stars: ✭ 78 (-6.02%)
Mutual labels:  apollo
zksync-dapp-checkout
zkCheckout — trustable permissionless DeFi payment gateway. Brand new zkSync dApp w/t all L2 perks: fast&cheap transfers / simple&quick withdrawal
Stars: ✭ 37 (-55.42%)
Mutual labels:  nuxtjs
cloudinary-module
Integration of Cloudinary to Nuxt.js
Stars: ✭ 129 (+55.42%)
Mutual labels:  nuxtjs
search-insights.js
Library for reporting click, conversion and view metrics using the Algolia Insights API
Stars: ✭ 39 (-53.01%)
Mutual labels:  algolia
corporate-dashboard
🔥 A blazingly fast corporate dashboard single page web application, built with a focus on component oriented design with React, Relay & GraphQL
Stars: ✭ 52 (-37.35%)
Mutual labels:  apollo
spring-boot-learn-box
spring boot集成其他组件
Stars: ✭ 21 (-74.7%)
Mutual labels:  apollo
BS Nuxt Starter
⚠️ Deprecated
Stars: ✭ 28 (-66.27%)
Mutual labels:  nuxtjs
laravel-scout-settings
DEPRECATED: Use of this repository is deprecated. Please use Scout Extended - https://github.com/algolia/scout-extended instead.
Stars: ✭ 23 (-72.29%)
Mutual labels:  algolia
matters-web
Website of Matters.News, built with Next.js.
Stars: ✭ 70 (-15.66%)
Mutual labels:  apollo
nuxt-gsap-module
GSAP module for Nuxt.js
Stars: ✭ 183 (+120.48%)
Mutual labels:  nuxtjs
now-nuxt
A Now v2 Nuxt builder
Stars: ✭ 25 (-69.88%)
Mutual labels:  nuxtjs
react-chat-app
A real-time chat application with Node.js, Prisma, GraphQL, Next.js, React.js and Apollo.
Stars: ✭ 61 (-26.51%)
Mutual labels:  apollo
downwrite
✍️ Markdown writing application that's down right, neat.
Stars: ✭ 103 (+24.1%)
Mutual labels:  apollo

Codacy Badge CodeFactor Quality Gate Status

NuxtJS Ecommerce site with WooCommerce backend

Project screenshot

Table Of Contents (TOC)

Vue 3

I have converted this project to an Astro project with Vue 3 and <script setup> syntax here: Astro with Vue 3

Installation

  1. Install and activate the following required plugins, in your WordPress plugin directory:
  • woocommerce Ecommerce for WordPress.
  • wp-graphql Exposes GraphQL for WordPress.
  • wp-graphql-woocommerce Adds WooCommerce functionality to a WPGraphQL schema. Currently only confirmed to be working with version 0.61 of this plugin.
  • algolia-woo-indexer Sends WooCommerce products to Algolia. Required for search to work.

Optional plugin:

  • headless-wordpress Disables the frontend so only the backend is accessible.
  • wp-graphql-cors Ensures that CORS works correctly. Remember to add the domain to the store under Extend "Access-Control-Allow-Origin” header

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

  • WordPress version 6.1.0
  • WooCommerce version 7.1.0
  • WP GraphQL version 1.5.0
  • WooGraphQL version 0.6.2
  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 .env with the URL to the GraphQL endpoint (or set environment variables in the configuration UI for your deployment solution)

  4. Start the server with npm run dev

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

  6. Add a product to the cart

  7. Proceed to checkout

  8. Fill in your details and place the order

Features

  • Nuxt 2
  • Tailwind CSS
  • Vue Apollo with GraphQL Codegen
  • Responsive design
  • Support for simple and variable products
  • GraphQL-based filters
  • CSS animations and transitions
  • Form handling and validation with Vue Formulate
  • Checkout process
  • Animated mobile menu

Troubleshooting

I am getting a cart undefined error or other GraphQL errors

Check that you are using the 0.6.2 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.

TODO

  • Make WooCommerce session token expire and get deleted after 24 hours
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].