👖

Pants - Page 5

Showing page 5 of 5

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

Nested Marketplace Route

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

Samsung pant 49

$583
3.6

28 reviews

👖

Sony pant 50

$337
4.9

83 reviews

👖

LG pant 51

$685
3.7

258 reviews

👖

Dell pant 52

$846
3.9

233 reviews

👖

HP pant 53

$728
4.1

222 reviews

👖

Nike pant 54

$556
3.7

32 reviews

👖

Adidas pant 55

$1032
4.7

215 reviews

👖

Apple pant 56

$960
4.3

80 reviews

👖

Samsung pant 57

$112
4.4

179 reviews

👖

Sony pant 58

$893
4.3

487 reviews

👖

LG pant 59

$654
4.4

147 reviews

👖

Dell pant 60

$398
4.1

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