Issues fixed: - Product ID was undefined - Alpine.js couldn't access data-product-id from nested div - Missing placeholder image caused 404 errors Changes: - Pass product_id and vendor.id through window globals instead of dataset - Initialize productId and vendorId directly from window variables - Add placeholder.jpg SVG for products without images - Add debug logging to track initialization The product detail page now correctly loads products and handles missing images. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
7 lines
291 B
Plaintext
7 lines
291 B
Plaintext
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg">
|
|
<rect width="400" height="400" fill="#f3f4f6"/>
|
|
<text x="50%" y="50%" font-family="Arial, sans-serif" font-size="20" fill="#9ca3af" text-anchor="middle" dominant-baseline="middle">
|
|
No Image Available
|
|
</text>
|
|
</svg>
|