👖

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

$76
4.8

157 reviews

👖

Sony pant 50

$888
4.7

429 reviews

👖

LG pant 51

$740
3.7

410 reviews

👖

Dell pant 52

$764
3.7

492 reviews

👖

HP pant 53

$292
4.9

473 reviews

👖

Nike pant 54

$596
3.9

62 reviews

👖

Adidas pant 55

$578
4.9

196 reviews

👖

Apple pant 56

$469
4.9

392 reviews

👖

Samsung pant 57

$518
3.8

135 reviews

👖

Sony pant 58

$65
4.5

345 reviews

👖

LG pant 59

$706
4.7

356 reviews

👖

Dell pant 60

$997
4.5

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