👖

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

$779
4.7

347 reviews

👖

Sony pant 26

$236
3.6

151 reviews

👖

LG pant 27

$261
4.2

278 reviews

👖

Dell pant 28

$530
3.6

450 reviews

👖

HP pant 29

$885
3.9

88 reviews

👖

Nike pant 30

$78
5.0

419 reviews

👖

Adidas pant 31

$762
4.3

487 reviews

👖

Apple pant 32

$122
4.5

304 reviews

👖

Samsung pant 33

$883
4.4

312 reviews

👖

Sony pant 34

$604
4.1

126 reviews

👖

LG pant 35

$675
4.5

432 reviews

👖

Dell pant 36

$820
4.2

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