👖

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

$797
4.4

114 reviews

👖

Nike pant 14

$512
4.0

154 reviews

👖

Adidas pant 15

$775
4.0

266 reviews

👖

Apple pant 16

$158
4.9

149 reviews

👖

Samsung pant 17

$88
4.7

231 reviews

👖

Sony pant 18

$186
4.8

189 reviews

👖

LG pant 19

$979
4.6

20 reviews

👖

Dell pant 20

$503
4.0

272 reviews

👖

HP pant 21

$882
4.8

265 reviews

👖

Nike pant 22

$527
4.7

400 reviews

👖

Adidas pant 23

$535
4.5

253 reviews

👖

Apple pant 24

$455
4.9

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