👖

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

$759
3.7

183 reviews

👖

Nike pant 14

$1032
4.6

115 reviews

👖

Adidas pant 15

$953
3.9

391 reviews

👖

Apple pant 16

$241
4.8

57 reviews

👖

Samsung pant 17

$456
4.6

293 reviews

👖

Sony pant 18

$647
4.5

361 reviews

👖

LG pant 19

$290
3.7

432 reviews

👖

Dell pant 20

$997
3.8

157 reviews

👖

HP pant 21

$864
4.8

391 reviews

👖

Nike pant 22

$61
4.7

460 reviews

👖

Adidas pant 23

$537
5.0

311 reviews

👖

Apple pant 24

$461
3.7

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