👕

Shirts - Page 4

Showing page 4 of 5

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

Nested Marketplace Route

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

HP shirt 37

$191
4.2

474 reviews

👕

Nike shirt 38

$412
4.5

60 reviews

👕

Adidas shirt 39

$899
3.5

491 reviews

👕

Apple shirt 40

$539
4.2

38 reviews

👕

Samsung shirt 41

$594
4.9

322 reviews

👕

Sony shirt 42

$233
4.6

455 reviews

👕

LG shirt 43

$1047
4.2

275 reviews

👕

Dell shirt 44

$951
4.9

412 reviews

👕

HP shirt 45

$594
3.9

472 reviews

👕

Nike shirt 46

$936
4.9

430 reviews

👕

Adidas shirt 47

$479
4.5

190 reviews

👕

Apple shirt 48

$831
3.9

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