👕

Shirts - Page 4

Showing page 4 of 5

Path: /marketplace/clothing/shirts/4
3
Path Depth
389
Total Items
4
Current Page
12
Items Shown

Nested Marketplace Route

File: /marketplace/[...path].astro
Handles: /marketplace/category/subcategory/page
Current path: ["clothing", "shirts", "4"]
Parsed as: Category: "clothing", Subcategory: "shirts", Page: "4"
👕

HP shirt 37

$881
4.3

272 reviews

👕

Nike shirt 38

$578
4.4

479 reviews

👕

Adidas shirt 39

$268
3.7

509 reviews

👕

Apple shirt 40

$427
4.7

398 reviews

👕

Samsung shirt 41

$902
4.1

428 reviews

👕

Sony shirt 42

$566
4.8

267 reviews

👕

LG shirt 43

$162
3.9

357 reviews

👕

Dell shirt 44

$438
4.4

197 reviews

👕

HP shirt 45

$691
4.6

263 reviews

👕

Nike shirt 46

$86
4.7

33 reviews

👕

Adidas shirt 47

$125
4.7

501 reviews

👕

Apple shirt 48

$140
4.1

490 reviews

Try These Marketplace Paths

/marketplace/electronics → Electronics category
/marketplace/electronics/phones → Phone subcategory
/marketplace/electronics/phones/2 → Page 2 of phones
/marketplace/clothing/shoes/1 → Page 1 of shoes

Nested Marketplace Implementation

---
// File: /marketplace/[...path].astro
export function getStaticPaths() {
  // Pre-generate all possible marketplace paths
  return [
    { params: { path: 'electronics' } },
    { params: { path: 'electronics/phones' } },
    { params: { path: 'electronics/phones/1' } },
    { params: { path: 'electronics/phones/2' } },
    // ... more paths
  ];
}

const { path } = Astro.params;
const [category, subcategory, page] = path.split('/');
---

<h1>{category} → {subcategory} → Page {page}</h1>