📚

Textbooks - Page 3

Showing page 3 of 5

Path: /marketplace/books/textbooks/3
3
Path Depth
234
Total Items
3
Current Page
12
Items Shown

Nested Marketplace Route

File: /marketplace/[...path].astro
Handles: /marketplace/category/subcategory/page
Current path: ["books", "textbooks", "3"]
Parsed as: Category: "books", Subcategory: "textbooks", Page: "3"
📚

Samsung textbook 25

$408
4.5

277 reviews

📚

Sony textbook 26

$378
4.4

154 reviews

📚

LG textbook 27

$788
4.8

396 reviews

📚

Dell textbook 28

$826
3.9

376 reviews

📚

HP textbook 29

$233
4.0

156 reviews

📚

Nike textbook 30

$139
5.0

505 reviews

📚

Adidas textbook 31

$648
4.9

50 reviews

📚

Apple textbook 32

$81
4.3

103 reviews

📚

Samsung textbook 33

$412
4.3

32 reviews

📚

Sony textbook 34

$61
4.1

39 reviews

📚

LG textbook 35

$829
4.4

467 reviews

📚

Dell textbook 36

$763
4.1

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