👕

Shirts - Page 2

Showing page 2 of 5

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

Nested Marketplace Route

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

HP shirt 13

$217
4.6

235 reviews

👕

Nike shirt 14

$197
4.3

405 reviews

👕

Adidas shirt 15

$146
4.9

349 reviews

👕

Apple shirt 16

$868
3.8

224 reviews

👕

Samsung shirt 17

$1020
4.1

115 reviews

👕

Sony shirt 18

$1047
4.8

362 reviews

👕

LG shirt 19

$321
4.7

111 reviews

👕

Dell shirt 20

$274
3.8

396 reviews

👕

HP shirt 21

$728
4.1

366 reviews

👕

Nike shirt 22

$418
4.5

80 reviews

👕

Adidas shirt 23

$945
3.6

204 reviews

👕

Apple shirt 24

$50
5.0

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