👖

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

$1024
3.9

243 reviews

👖

Nike pant 38

$90
4.3

268 reviews

👖

Adidas pant 39

$1049
4.5

329 reviews

👖

Apple pant 40

$453
4.2

293 reviews

👖

Samsung pant 41

$808
4.0

362 reviews

👖

Sony pant 42

$282
4.1

55 reviews

👖

LG pant 43

$645
4.1

85 reviews

👖

Dell pant 44

$456
4.2

351 reviews

👖

HP pant 45

$110
3.9

265 reviews

👖

Nike pant 46

$439
3.9

386 reviews

👖

Adidas pant 47

$126
3.6

249 reviews

👖

Apple pant 48

$423
4.7

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