👖

Pants - Page 3

Showing page 3 of 5

Path: /marketplace/clothing/pants/3
3
Path Depth
267
Total Items
3
Current Page
12
Items Shown

Nested Marketplace Route

File: /marketplace/[...path].astro
Handles: /marketplace/category/subcategory/page
Current path: ["clothing", "pants", "3"]
Parsed as: Category: "clothing", Subcategory: "pants", Page: "3"
👖

Samsung pant 25

$895
3.9

134 reviews

👖

Sony pant 26

$333
4.0

285 reviews

👖

LG pant 27

$646
3.8

362 reviews

👖

Dell pant 28

$507
4.8

460 reviews

👖

HP pant 29

$131
3.7

452 reviews

👖

Nike pant 30

$764
3.9

347 reviews

👖

Adidas pant 31

$753
4.1

21 reviews

👖

Apple pant 32

$662
4.2

412 reviews

👖

Samsung pant 33

$327
4.1

308 reviews

👖

Sony pant 34

$252
4.8

195 reviews

👖

LG pant 35

$711
4.2

82 reviews

👖

Dell pant 36

$646
4.2

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