hitengautami007@gmail.com
All projects

BarristerBooks

Legal Textbook E-Commerce — Rental, Buyback & Digital Access

Legal bookstore / Adobe Magento 2 · Live
Visit live site ↗
BarristerBooks storefront
Adobe Magento 2 / B2CCaptured from the live website
Platform
Adobe Magento 2
Role
Magento Developer
Type
B2C
Duration
Project Engagement

01 / The idea

Legal Textbook E-Commerce — Rental, Buyback & Digital Access

BarristerBooks is a specialized legal textbook e-commerce platform built on Adobe Magento 2, purpose-built for law students and legal professionals. The store offers a full spectrum of acquisition models — outright purchase, semester-length rentals, used-book buyback, and digital access codes through VitalSource — each requiring custom commerce logic not available in any standard Magento installation. The engagement delivered 16 custom Magento modules from scratch, alongside a dual-frontend architecture supporting three simultaneous production-grade themes.

A platform engineered for the unique demands of the legal textbook market: multi-format acquisition models, geographic restrictions, course-connected casebook content, and search tuned to law students searching by ISBN, author, title, and edition — all delivered through 16 custom modules and three simultaneous production themes.

16Custom ModulesBuilt from scratch
3Frontend ThemesLuma, Hyva, Checkout
80%+JS Payload ReductionVia Hyva vs Luma
5+3rd-Party IntegrationsIncluding VitalSource, Stripe

02 / In motion

A walk through the storefront

Discovery, product and checkout — recorded in the working website.

Screen recording / Live website

03 / The experience

One platform Five perspectives

Inside the experience01 — 05
Arrival
01 / ArrivalCaptured from the website
Footer & service
02 / Footer & serviceCaptured from the website
Discovery
03 / DiscoveryCaptured from the website
Product
04 / ProductCaptured from the website
Cart & checkout
05 / Cart & checkoutCaptured from the website

04 / Engineering decisions

Making room for scale

01

Book Rental System

Built as a completely custom Magento 2 module, the rental system introduces a commerce pattern the platform does not natively support. Rental products carry a rental period, status lifecycle, and return workflow requiring their own data models and checkout behavior.

  • Custom Rental and RentalStatus resource models manage the full lifecycle from checkout through return
  • Each rental record tracks customer, product SKU, rental duration, and fulfillment state in a dedicated database schema
  • Admin views surface rental status — which copies are out, due dates, and overdue items
  • Full resource model, collection, and admin grid infrastructure extending Magento's entity framework from scratch
02

Buyback Program

The buyback module creates a reverse commerce channel through which customers can sell used textbooks back to the store — a pattern with no out-of-the-box Magento equivalent.

  • Buyback Catalog: admin-managed eligibility and pricing for each title accepted for trade-in
  • Buyback Cart: customer-facing interface with title lookup, condition selection, and trade-in submission
  • Buyback Transactions: records submission details, value calculations, and fulfillment handoff
  • Keeps the textbook value cycle within the BarristerBooks ecosystem rather than third-party resellers
03

VitalSource eBook Integration

The Vitalsource module handles the complete lifecycle of digital access code fulfillment for eBook purchases — from order placement through delivery to the customer's VitalSource bookshelf.

  • Custom console commands manage API communication with VitalSource for access code retrieval and delivery
  • Dedicated Logger class provides full observability into digital fulfillment operations
  • Integrates with Magento's order observer system to trigger fulfillment post-purchase — decoupled from payment capture
  • Enables digital-physical bundles: printed casebook + lifetime VitalSource digital licence as a single purchasable unit
04

Multi-Theme Frontend Architecture

Three production-grade themes are maintained simultaneously on the platform — each serving a distinct purpose within the customer journey.

  • BarristerBooks (Luma-based): foundational theme with brand identity and catalog-specific UX patterns
  • BarristerBooks Hyva: full reimplementation using Hyva/Tailwind CSS — reduces JavaScript payload by 80%+ vs Luma
  • Barrister Checkout: specialized distraction-free theme stripped to essentials for purchase completion
  • Custom HyvaThemeFallback module ensures graceful degradation when Hyva-specific features are unavailable
05

Advanced Search & Discovery

The search layer is built on OpenSearch/Elasticsearch (versions 6, 7, and 8 all supported), configured with a custom instant.json defining search buckets, field weighting, and facets tailored to legal textbook commerce.

  • Instant search with typeahead providing suggestions as customers type — critical for partial ISBN searches
  • Spell correction handling misspelled author surnames and course codes
  • Field weighting prioritizes exact ISBN matches, then author and title fields
  • Faceting by Condition, Format, Rentable status, Weight class, and Category
  • Casebook Management module: instructors create structured casebook product bundles linked to specific law courses
06

Stripe Payments, Tax & Geographic Restrictions

Payment processing via Stripe's official extension with Stripe Tax for real-time multi-state tax calculation. Geographic product restrictions enforce publisher licensing rules at checkout.

  • Stripe payments: credit/debit cards, Apple Pay, Google Pay, and Stripe's full payment suite
  • Stripe Tax for real-time tax calculation across BarristerBooks' multi-state US customer base
  • RestrictStates module: admin-configurable product-level state blocklists enforced at checkout
  • Clear descriptive messaging when restrictions apply — reduces support contacts for licensing limitations
  • Product Alert System notifying customers of back-in-stock and price drop events

05 / The stack

Built with

Adobe Magento 2PHP 8.1+Hyva ThemeTailwind CSSAlpine.jsOpenSearch / Elasticsearch 6–8Stripe PaymentsStripe Tax APIVitalSource eBook APISchema.org JSON-LDIWD Order ManagerMySQL / MariaDBGoogle Tag ManagerComposer / PSR-4

06 / Experience it

Explore the live platform

Step into the storefront. Set your own pace.

Enter the store ↗