👖

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

$68
★ 4.0

227 reviews

👖

Sony pant 2

$934
★ 3.7

326 reviews

👖

LG pant 3

$617
★ 4.5

222 reviews

👖

Dell pant 4

$203
★ 4.0

375 reviews

👖

HP pant 5

$324
★ 4.3

410 reviews

👖

Nike pant 6

$55
★ 3.6

237 reviews

👖

Adidas pant 7

$688
★ 3.7

81 reviews

👖

Apple pant 8

$1048
★ 4.1

353 reviews

👖

Samsung pant 9

$265
★ 4.2

337 reviews

👖

Sony pant 10

$226
★ 3.7

423 reviews

👖

LG pant 11

$352
★ 3.6

277 reviews

👖

Dell pant 12

$316
★ 4.4

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