Mock Data Reference

All mock data available in the playground. Use this data for testing components and workflows.

Mock Products

9 products with variants, pricing, and inventory

Classic Band Tee

Classic Band Tee

prod_tshirt_001

published

100% cotton vintage-style band tee with premium screen printing. Pre-shrunk for the perfect fit.

6 variantsFrom € 29,99
Limited Edition Tour Tee

Limited Edition Tour Tee

prod_tshirt_002

published

Exclusive tour merchandise. Heavy cotton with vintage wash. Only 500 made.

3 variantsFrom € 34,99
Premium Logo Hoodie

Premium Logo Hoodie

prod_hoodie_001

published

Ultra-soft fleece hoodie with embroidered logo. 80% cotton, 20% polyester blend.

4 variantsFrom € 59,99
Embroidered Dad Hat

Embroidered Dad Hat

prod_hat_001

published

Classic dad hat with embroidered logo. Adjustable strap, one size fits most.

3 variantsFrom € 24,99
Canvas Tote Bag

Canvas Tote Bag

prod_tote_001

published

Heavy-duty canvas tote with printed design. Perfect for everyday use.

2 variantsFrom € 19,99
Latest Album - Limited Vinyl

Latest Album - Limited Vinyl

prod_vinyl_001

published

Limited edition colored vinyl. Includes digital download code. Only 1000 pressed.

2 variantsFrom € 39,99
Concert Poster - Signed

Concert Poster - Signed

prod_poster_001

published

Limited edition concert poster. Signed and numbered by the artist. 18x24 inches.

1 variantsFrom € 29,99
Upcoming Release - Long Sleeve

Upcoming Release - Long Sleeve

prod_draft_001

draft

Coming soon! Premium long sleeve with new design.

1 variantsFrom € 39,99
Vintage Festival Tee - SOLD OUT

Vintage Festival Tee - SOLD OUT

prod_soldout_001

published

Classic festival merchandise from 2024 tour. No restocks planned.

1 variantsFrom € 29,99

Import in your code:

1import { mockProducts, getProductById } from '@/lib/mock-data';
2
3// Get all products
4const products = mockProducts;
5
6// Get specific product
7const product = getProductById('prod_tshirt_001');
8
9// Filter by state
10const publishedProducts = mockProducts.filter(p => p.state === 'published');
11
12// Get product variants
13const variants = product.variants;

Product Categories

Apparel

apparel

cat_apparel

Accessories

accessories

cat_accessories

Music

music

cat_music

Helper Functions

Utility functions available in mock-data.ts

1import {
2 getProductById,
3 getVariantById,
4 formatPrice,
5 calculateCartTotal,
6 calculateProfit,
7 getProfitStatus,
8} from '@/lib/mock-data';
9
10// Get product
11const product = getProductById('prod_tshirt_001');
12
13// Get variant
14const variant = getVariantById('prod_tshirt_001', 'var_tshirt_001_m_black');
15
16// Format price
17const formattedPrice = formatPrice(2999); // "€29,99"
18
19// Calculate cart total
20const total = calculateCartTotal('cart_demo_001');
21
22// Calculate profit
23const profitInfo = calculateProfit(2999, 1200);
24// Returns: { profit, profitMargin, platformFee, baseCost }
25
26// Get profit status
27const status = getProfitStatus(profitMargin); // 'low' | 'medium' | 'good'