👖

Pants - Page 4

Showing page 4 of 5

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

Nested Marketplace Route

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

HP pant 37

$349
4.6

148 reviews

👖

Nike pant 38

$985
3.5

400 reviews

👖

Adidas pant 39

$56
4.8

393 reviews

👖

Apple pant 40

$68
4.8

431 reviews

👖

Samsung pant 41

$528
4.5

90 reviews

👖

Sony pant 42

$810
4.7

505 reviews

👖

LG pant 43

$804
4.4

128 reviews

👖

Dell pant 44

$868
3.7

26 reviews

👖

HP pant 45

$890
4.9

73 reviews

👖

Nike pant 46

$344
3.6

129 reviews

👖

Adidas pant 47

$424
4.2

175 reviews

👖

Apple pant 48

$207
4.5

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