👖

Pants - Page 2

Showing page 2 of 5

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

Nested Marketplace Route

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

HP pant 13

$388
4.8

158 reviews

👖

Nike pant 14

$540
4.7

459 reviews

👖

Adidas pant 15

$161
4.7

58 reviews

👖

Apple pant 16

$475
3.7

335 reviews

👖

Samsung pant 17

$436
5.0

78 reviews

👖

Sony pant 18

$309
4.4

26 reviews

👖

LG pant 19

$480
4.1

325 reviews

👖

Dell pant 20

$841
4.2

480 reviews

👖

HP pant 21

$566
3.5

11 reviews

👖

Nike pant 22

$802
4.2

106 reviews

👖

Adidas pant 23

$564
4.6

364 reviews

👖

Apple pant 24

$229
3.8

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