Saleor Store
우리 컬렉션을 쇼핑하세요
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
A headless e-commerce storefront that connects Next.js on the frontend to WooCommerce on the backend — delivering the performance and reliability of the world's most popular e-commerce engine.
• What Is This?
• For Business & Product Owners
• For Digital Marketers & Analysts
• For Developers & WooCommerce Specialists
• Quick Start
• Project Structure
• Environment VariablesREADME 전문 보기 ↗A headless e-commerce storefront that connects Next.js on the frontend to WooCommerce on the backend — delivering the performance and reliability of the world's most popular e-commerce engine.
This is a headless WooCommerce storefront — WooCommerce runs silently in the background managing products, inventory, orders, and shipping, while Next.js powers the entire customer experience: browsing, search, cart, checkout, and order confirmation.
The result: a fast, modern shopping experience without abandoning the WooCommerce ecosystem your team already knows.
Key capabilities at a glance:
| Feature | Implementation |
|---|---|
| Product catalog & search | WooCommerce Store API + ISR |
| Cart & checkout | Zustand + Server Actions + WC Store API |
| Payments | Stripe Checkout + webhook order sync |
| Analytics | Full GA4 Enhanced Ecommerce via GTM |
| Performance | React, ISR, SSG, Next/Image, Web Vitals |
| Testing | Jest + React Testing Library |
| Type safety | TypeScript + Zod |
This project is a modern, headless WooCommerce storefront built with Next.js. It uses React Server Components for product and shop pages, Server Actions for all cart and checkout mutations, and Zustand for state management (cart, checkout, wishlist). All WooCommerce API credentials and Stripe keys remain server-side for security.
Key technical highlights:
Stack: Next.js, React, Zustand, Zod, Stripe, Jest, Tailwind CSS, TypeScript, WooCommerce
Required WordPress plugins: WooCommerce
Variable products: Resolved at the Next.js layer, no theme customization needed
Testing: Jest + React Testing Library
Traditional WooCommerce stores serve every page from PHP — the database query, the HTML render, and the asset delivery all happen on the same server for every visitor. Under load, this creates bottlenecks, and performance degrades directly.
This architecture separates the concerns:
| Concern | Handled by | Benefit |
|---|---|---|
| Product & order data | WooCommerce / WordPress | Familiar admin, existing plugins, no data migration |
| Page delivery | Next.js on CDN edge | Pages served in milliseconds, globally |
| Checkout & payments | Stripe Checkout | PCI-compliant, trusted by customers, handles 3DS |
| Analytics | GTM + GA4 | Full funnel data, no third-party plugin needed |
next/image| Feature | Status |
|---|---|
| Product catalogue with filtering & sorting | ✅ |
| Full-text search | ✅ |
| Variable products (size, colour, etc.) | ✅ |
| Wishlist | ✅ |
| Slide-out cart drawer | ✅ |
| Multi-step checkout | ✅ |
| Live shipping rate calculation | ✅ |
| Stripe payment processing | ✅ |
| Cash on delivery / other WC payment methods | ✅ |
| Order confirmation page | ✅ |
| Dark / light mode | ✅ |
| Mobile-first responsive design | ✅ |
| Schema.org structured data (SEO) | ✅ |
The storefront is stateless — it holds no user data itself. You can run as many instances as needed behind a load balancer. WooCommerce handles inventory and order state. Stripe handles payment state. The frontend scales horizontally with zero configuration.
This storefront ships with a complete GA4 Enhanced Ecommerce implementation out of the box — most e-commerce sites miss half the funnel events or implement them incorrectly. This one does not.
| GA4 Event | When it fires |
|---|---|
view_item_list | Shop/category page loads |
select_item | User clicks a product card |
view_item | Product detail page loads |
add_to_cart | Item added to cart |
remove_from_cart | Item removed from cart |
add_to_wishlist | Item added to wishlist |
view_cart | Cart page / cart drawer opens |
begin_checkout | Checkout page loads |
add_shipping_info | Shipping method selected |
add_payment_info | Payment method selected |
purchase | Order confirmation page loads |
Every event includes the full ecommerce object: item IDs, names, categories, prices, quantities, currency, and the appropriate transaction/list context.
.env controls all tracking — no code changes needed to swap tags or add pixelsdataLayer is initialized in <head> before GTM loads, so zero events are lost during the GTM bootstrapEvery real user session reports LCP, CLS, INP, TTFB, and FCP as GTM events. This means you can segment Core Web Vitals by device, geography, or traffic source directly in GA4 or Looker Studio — no additional tooling needed.
Stripe checkout sessions carry the WooCommerce order ID in metadata, and the WooCommerce order confirmation page fires the GA4 purchase event with the correct revenue, tax, and shipping values — giving your attribution models accurate data.
git clone https://github.com/vakulkin/nextjs-woocommerce.git
cd nextjs-woocommerce
pnpm install
cp .env.example .env.local
Edit .env.local — see Environment Variables below.
pnpm dev
Open http://localhost:3000.
pnpm test
# WordPress / WooCommerce
NEXT_PUBLIC_SITE_URL=https://headless-woocommerce.adsister.com
NEXT_PUBLIC_WOOCOMMERCE_PROTCOL=https
NEXT_PUBLIC_WOOCOMMERCE_HOST=headless.adsister.com
WC_CONSUMER_KEY=ck_...
WC_CONSUMER_SECRET=cs_...
# Stripe
STRIPE_PUBLISHABLE_KEY=pk_test_...
STRIPE_SECRET_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
# Analytics
NEXT_PUBLIC_GTM_ID=GTM-XXXXXXX
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.