👕

Shirts - Page 2

Showing page 2 of 5

Path: /marketplace/clothing/shirts/2
3
Path Depth
389
Total Items
2
Current Page
12
Items Shown

Nested Marketplace Route

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

HP shirt 13

$228
3.9

344 reviews

👕

Nike shirt 14

$180
4.2

404 reviews

👕

Adidas shirt 15

$129
3.9

287 reviews

👕

Apple shirt 16

$193
5.0

78 reviews

👕

Samsung shirt 17

$724
4.2

11 reviews

👕

Sony shirt 18

$924
4.7

479 reviews

👕

LG shirt 19

$737
4.3

214 reviews

👕

Dell shirt 20

$249
4.4

457 reviews

👕

HP shirt 21

$590
3.8

31 reviews

👕

Nike shirt 22

$442
4.5

207 reviews

👕

Adidas shirt 23

$694
4.0

55 reviews

👕

Apple shirt 24

$950
3.9

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