👖

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

$301
4.4

438 reviews

👖

Sony pant 26

$388
4.6

254 reviews

👖

LG pant 27

$670
4.4

95 reviews

👖

Dell pant 28

$855
4.7

437 reviews

👖

HP pant 29

$489
3.8

198 reviews

👖

Nike pant 30

$290
3.6

285 reviews

👖

Adidas pant 31

$534
3.6

15 reviews

👖

Apple pant 32

$337
4.1

95 reviews

👖

Samsung pant 33

$726
4.8

122 reviews

👖

Sony pant 34

$559
3.7

507 reviews

👖

LG pant 35

$1020
4.3

452 reviews

👖

Dell pant 36

$63
4.8

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