Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
9afdeaa
Initial plan
Copilot Feb 12, 2026
b0eb14b
Add eBay store category hierarchy support (3-level mapping)
Copilot Feb 12, 2026
e68db83
Display eBay store category hierarchy in product pages
Copilot Feb 12, 2026
b1250ba
Address code review: optimize performance and fix security issues
Copilot Feb 12, 2026
01ce4a1
Improve eBay API error handling for better diagnostics
Copilot Feb 12, 2026
4b9ea71
Use strict comparison for error code checking
Copilot Feb 12, 2026
ebe5bc6
Add migration guide documentation
Copilot Feb 12, 2026
76f0eae
Implement dynamic eBay category navigation with 3-tier sidebar
Copilot Feb 12, 2026
d4c44c6
Update admin product form to display eBay 3-tier categories clearly
Copilot Feb 12, 2026
f9c79e2
Implement complete eBay store 3-level category integration with dynam…
Copilot Feb 12, 2026
d822f4e
Fix missing SyncLogger include in products.php
Copilot Feb 12, 2026
a9514fd
Add dark mode support for category sidebar and improve debug logging
Copilot Feb 12, 2026
fe48c92
Add comprehensive logging for eBay store category extraction
Copilot Feb 12, 2026
2ba6447
Use GetItem API to fetch store category IDs for products
Copilot Feb 12, 2026
cca83dd
Fix product.php mobile overflow and simplify category display
Copilot Feb 12, 2026
6446b53
Implement AJAX category filtering and mobile collapsible menu
Copilot Feb 12, 2026
62ecc3f
Fix subcategories display and prevent menu collapse on desktop
Copilot Feb 12, 2026
3b7782a
Fix AJAX product loading and keep mobile menu open
Copilot Feb 12, 2026
89f80f4
Add comprehensive error handling and debugging for AJAX loading
Copilot Feb 12, 2026
963de0d
Improve category sidebar UX - red active color and collapsed menu beh…
Copilot Feb 12, 2026
9e7cd5c
Add comprehensive error handling and debugging for AJAX API
Copilot Feb 12, 2026
9b2b6db
Add enhanced debugging for innerHTML update
Copilot Feb 12, 2026
589f257
Fix AOS animation blocking product display after AJAX load
Copilot Feb 12, 2026
40e9d7d
Disable AOS animations on AJAX-loaded products to fix visibility
Copilot Feb 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 47 additions & 2 deletions admin/products.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,17 @@
<td><?php echo $prod['quantity']; ?></td>
<td>
<?php if ($prod['source'] === 'ebay'): ?>
<span class="badge bg-primary">eBay</span>
<?php
$ebayCategory = $productModel->getEbayStoreCategoryPath($prod);
?>
<span class="badge bg-primary"
<?php if ($ebayCategory): ?>
title="<?php echo htmlspecialchars($ebayCategory); ?>"
data-bs-toggle="tooltip"
data-bs-placement="top"
<?php endif; ?>>
eBay
</span>
<?php else: ?>
<span class="badge bg-success">Manual</span>
<?php endif; ?>
Expand Down Expand Up @@ -545,7 +555,7 @@

<div class="col-md-3">
<div class="mb-3">
<label class="form-label">Category</label>
<label class="form-label">Website Category (Legacy)</label>
<select class="form-select" name="category">
<option value="">Select Category</option>
<option value="motorcycle" <?php echo $product && $product['category'] === 'motorcycle' ? 'selected' : ''; ?>>Motorcycle Parts</option>
Expand All @@ -555,7 +565,42 @@
<option value="gifts" <?php echo $product && $product['category'] === 'gifts' ? 'selected' : ''; ?>>Gifts</option>
<option value="other" <?php echo $product && $product['category'] === 'other' ? 'selected' : ''; ?>>Other</option>
</select>
<small class="text-muted">For manual products only. eBay products use store categories below.</small>
</div>

<?php if ($product && $product['source'] === 'ebay'): ?>
<?php $ebayCategories = $productModel->getEbayStoreCategoryArray($product); ?>
<?php if (!empty($ebayCategories)): ?>
<div class="alert alert-info mb-3">
<strong><i class="fas fa-store"></i> eBay Store Categories (3-tier):</strong><br>
<div class="mt-2">
<?php if (isset($ebayCategories[1])): ?>
<div class="mb-1">
<span class="badge bg-primary">Level 1:</span>
<span class="badge bg-secondary"><?php echo htmlspecialchars($ebayCategories[1]); ?></span>
</div>
<?php endif; ?>
<?php if (isset($ebayCategories[2])): ?>
<div class="mb-1">
<span class="badge bg-primary">Level 2:</span>
<span class="badge bg-secondary"><?php echo htmlspecialchars($ebayCategories[2]); ?></span>
</div>
<?php endif; ?>
<?php if (isset($ebayCategories[3])): ?>
<div class="mb-1">
<span class="badge bg-primary">Level 3:</span>
<span class="badge bg-secondary"><?php echo htmlspecialchars($ebayCategories[3]); ?></span>
</div>
<?php endif; ?>
<small class="text-muted d-block mt-2"><em>Automatically synced from eBay store during product sync</em></small>
</div>
</div>
<?php else: ?>
<div class="alert alert-warning mb-3">
<small><i class="fas fa-exclamation-triangle"></i> No eBay store categories found. Run sync to update.</small>
</div>
<?php endif; ?>
<?php endif; ?>

<div class="mb-3">
<label class="form-label">Manufacturer</label>
Expand Down
Loading