👕

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

$298
4.8

143 reviews

👕

Sony shirt 26

$663
4.2

321 reviews

👕

LG shirt 27

$359
3.7

13 reviews

👕

Dell shirt 28

$275
3.9

55 reviews

👕

HP shirt 29

$837
4.0

271 reviews

👕

Nike shirt 30

$589
4.5

179 reviews

👕

Adidas shirt 31

$589
4.6

387 reviews

👕

Apple shirt 32

$341
4.5

169 reviews

👕

Samsung shirt 33

$166
4.9

26 reviews

👕

Sony shirt 34

$888
4.8

464 reviews

👕

LG shirt 35

$124
3.5

17 reviews

👕

Dell shirt 36

$272
4.2

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