👖

Pants - Page 3

Showing page 3 of 5

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

Nested Marketplace Route

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

Samsung pant 25

$602
3.5

241 reviews

👖

Sony pant 26

$120
4.2

197 reviews

👖

LG pant 27

$277
4.1

104 reviews

👖

Dell pant 28

$189
4.0

400 reviews

👖

HP pant 29

$571
3.8

449 reviews

👖

Nike pant 30

$512
4.7

27 reviews

👖

Adidas pant 31

$69
4.9

482 reviews

👖

Apple pant 32

$957
5.0

433 reviews

👖

Samsung pant 33

$826
4.4

90 reviews

👖

Sony pant 34

$565
4.0

207 reviews

👖

LG pant 35

$563
4.4

177 reviews

👖

Dell pant 36

$324
3.8

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