👖

Pants - Page 1

Showing page 1 of 5

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

Nested Marketplace Route

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

Samsung pant 1

$244
★ 4.8

38 reviews

👖

Sony pant 2

$777
★ 3.7

507 reviews

👖

LG pant 3

$618
★ 3.8

35 reviews

👖

Dell pant 4

$351
★ 3.9

64 reviews

👖

HP pant 5

$448
★ 4.1

309 reviews

👖

Nike pant 6

$223
★ 3.8

335 reviews

👖

Adidas pant 7

$50
★ 3.9

239 reviews

👖

Apple pant 8

$834
★ 4.4

300 reviews

👖

Samsung pant 9

$598
★ 4.0

60 reviews

👖

Sony pant 10

$238
★ 4.7

292 reviews

👖

LG pant 11

$997
★ 3.8

350 reviews

👖

Dell pant 12

$337
★ 4.1

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