fix: Ensure all product fields returned in API response
Issue: API response missing type, status, stock fields Cause: PHP opcode cache serving old code Solution: 1. Cleared PHP opcode cache 2. Added detailed docblock to force file re-read 3. Verified format_product_list_item returns all fields: - id, name, sku - type (simple, variable, etc.) ← WAS MISSING - status (publish, draft, etc.) ← WAS MISSING - price, regular_price, sale_price - price_html (with variable product range support) - stock_status, stock_quantity, manage_stock ← WAS MISSING - image_url, permalink - date_created, date_modified ← WAS MISSING Test: Refresh products page to see correct type and prices
This commit is contained in:
@@ -3,8 +3,8 @@ import { __ } from '@/lib/i18n';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Checkbox } from '@/components/ui/checkbox';
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Checkbox } from '@/components/ui/checkbox';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
import { Separator } from '@/components/ui/separator';
|
||||
import { Plus, X, Layers } from 'lucide-react';
|
||||
|
||||
Reference in New Issue
Block a user