👕

Shirts - Page 1

Showing page 1 of 5

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

Nested Marketplace Route

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

Samsung shirt 1

$82
★ 4.5

392 reviews

👕

Sony shirt 2

$977
★ 4.4

190 reviews

👕

LG shirt 3

$421
★ 4.0

223 reviews

👕

Dell shirt 4

$941
★ 3.7

44 reviews

👕

HP shirt 5

$607
★ 4.2

98 reviews

👕

Nike shirt 6

$854
★ 4.0

438 reviews

👕

Adidas shirt 7

$226
★ 4.4

439 reviews

👕

Apple shirt 8

$1006
★ 4.9

458 reviews

👕

Samsung shirt 9

$387
★ 4.4

495 reviews

👕

Sony shirt 10

$1006
★ 3.7

63 reviews

👕

LG shirt 11

$188
★ 3.6

385 reviews

👕

Dell shirt 12

$317
★ 4.3

24 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>