👕

Shirts - Page 3

Showing page 3 of 5

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

Nested Marketplace Route

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

Samsung shirt 25

$864
3.9

417 reviews

👕

Sony shirt 26

$67
5.0

263 reviews

👕

LG shirt 27

$843
4.8

500 reviews

👕

Dell shirt 28

$888
4.7

196 reviews

👕

HP shirt 29

$479
4.9

73 reviews

👕

Nike shirt 30

$577
3.6

426 reviews

👕

Adidas shirt 31

$911
4.3

182 reviews

👕

Apple shirt 32

$930
3.8

464 reviews

👕

Samsung shirt 33

$597
3.7

60 reviews

👕

Sony shirt 34

$888
3.9

159 reviews

👕

LG shirt 35

$499
4.9

339 reviews

👕

Dell shirt 36

$131
4.0

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