Skip to content

About

A modern electronics eCommerce theme built with Bagisto Headless Commerce, featuring a responsive UI, fast performance, product-focused layouts, and a scalable storefront architecture for electronic and gadget stores.

Resources

Stars

9 stars

Watchers

0 watching

Forks

Repository files navigation

Bagisto logo

Website | Documentation | Forums | Community

License

Bagisto Headless Electronic Theme

A headless electronic eCommerce theme built with Next.js and powered by Bagisto, designed specifically for electronics and gadget retailers. This theme delivers exceptional performance, modern UI, and a seamless shopping experience tailored to tech-focused stores.

Through layered caching and optimized rendering strategies, it consistently achieves a 100/100 Core Web Vitals score, delivering lightning-fast performance and seamless shopping experiences.

Check the Documentation to quickly set up your Headless eCommerce store.

Bagisto Version: v2.4.x

Bagisto API: v1.0.3

Bagisto Headless Electronic Theme — Home


Features

  • Ultra-fast storefront with 100/100 Core Web Vitals score.
  • Layered caching for API responses and page rendering.
  • Fully responsive and mobile-friendly design optimized for electronics.
  • SEO optimized with meta tags, OpenGraph, and Twitter cards.
  • Secure authentication via NextAuth.js.
  • Powered by Bagisto GraphQL APIs for robust commerce functionality.
  • Incremental Static Regeneration (ISR) with revalidation.
  • Product-focused layouts tailored for electronics and gadgets.
  • Advanced filtering and search for tech products.
  • Support for multiple product types (simple, configurable, bundled, downloadable).

Bagisto Headless Electronic Theme — Performance


Prerequisites

Before you begin, ensure you have the following installed:


Installation

  1. Install Bagisto

    Begin by installing the Bagisto eCommerce platform on your server or local environment.

  2. Install the Bagisto Headless Extension

    After installing Bagisto, install the Bagisto Headless Extension to expose the required APIs for your frontend.

  3. Clone the repository and install dependencies:

    git clone https://github.com/bagisto/nextjs-electronic-theme.git
    cd nextjs-electronic-theme
    npm install
  4. Configure .env.local in the Next.js Project

    In your Next.js frontend project, create or update your .env.local file with the following variables:

    Variable Description Example
    NEXT_PUBLIC_BAGISTO_ENDPOINT Enter Your Bagisto Shop URL https://your-store.bagisto.com/
    NEXT_PUBLIC_BAGISTO_STOREFRONT_KEY Enter Your Bagisto Storefront Key pk_storefront_*************************
    NEXTAUTH_URL Enter Your Headless Shop URL https://headless-store.com/
    NEXTAUTH_SECRET Enter Your Headless Shop Secret Generate with openssl rand -base64 32
    COMPANY_NAME Enter Your company name Electronics Store

    Important Notes

    • Use the environment variables defined in .env.example as a reference.
    • It's recommended to use Vercel Environment Variables, but a .env.local file is sufficient for local development.
    • Never commit your .env.local file to version control — it contains secrets that would allow others to control your Bagisto store.

Getting Started

Run the development server:

npm dev

Access the store at: http://localhost:3000

Build for production:

npm build
npm start

Deployment

Deploy to Vercel

Install the Vercel CLI:

npm i -g vercel

Link your local instance with Vercel and GitHub accounts (creates the .vercel directory):

vercel link

Download your environment variables:

vercel env pull

Products

Browse a comprehensive range of electronic products with built-in pagination and advanced search functionality. Each product features detailed pages with multiple images, specifications, pricing, availability, customer reviews, and ratings.

Bagisto Headless Commerce APIs support multiple product types, including simple, configurable, bundled, and downloadable products, ensuring flexibility for different business needs.

Bagisto Headless Electronic Theme — Product Page


Categories

Products are organized into hierarchical categories, making it easy for customers to navigate your electronics store. Each category page displays relevant product listings with filtering and sorting options for a better shopping experience.

The theme also ensures SEO-friendly category URLs with meta titles, descriptions, and breadcrumbs for improved discoverability.

Bagisto Headless Electronic Theme — Category Page


Checkout

The checkout process is fully functional, featuring complete cart management where customers can add, update, or remove items.

Both guest and logged-in users can proceed through checkout, selecting shipping addresses and preferred payment methods. Once the order is placed, it is instantly synchronized with the Bagisto backend for smooth order processing and management.

Bagisto Headless Electronic Theme — Cart & Checkout


Customer Panel

Registered customers get a dedicated account dashboard to manage their entire shopping experience. The panel offers a responsive layout for both desktop and mobile, with all customer data securely synchronized with the Bagisto backend.

Profile

Customers can view and update their personal details — name, email, contact information, and password — directly from the profile page, keeping their account secure and up to date.

Bagisto Headless Electronic Theme — Customer Profile

Orders

The orders section displays a complete history of placed orders with cursor-based pagination. Customers can drill into any order to view its items, status, and download the associated invoices.

Bagisto Headless Electronic Theme — Customer Orders

Addresses

Customers can manage multiple shipping and billing addresses — adding, editing, or removing entries — which are then available for quick selection during checkout.

Reviews

From the reviews section, customers can track all the product reviews and ratings they have submitted, helping them keep record of their feedback.

Wishlist

Customers can save their favorite products to a wishlist for later, then move items to the cart whenever they are ready to buy. Wishlist state is managed globally with Redux for a seamless experience across the store.

Bagisto Headless Electronic Theme — Wishlist

Compare

The compare feature lets customers place products side by side to evaluate their specifications and features, making it easier to choose the right electronics. Compare state is also managed globally with Redux for consistency across pages.

Bagisto Headless Electronic Theme — Compare


Community

Get support and connect with the Bagisto community:


License

Bagisto Headless eCommerce framework that will always remain free under the MIT License.


Security Vulnerabilities

If you believe you have found a security issue in the Electronics Theme, please do not use the issue tracker and do not post it publicly. Instead, all security issues must be sent to support@bagisto.com.

About

A modern electronics eCommerce theme built with Bagisto Headless Commerce, featuring a responsive UI, fast performance, product-focused layouts, and a scalable storefront architecture for electronic and gadget stores.

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages