Manage WooCommerce products via REST API. No direct DB access.
НЕТ доступа к:
Есть доступ через:
WP_API_URL: https://ffkebab.md/
WP_API_USERNAME: ffkebabm
WP_API_PASSWORD: nkS1 IL2o X6Up DV1C LF6p q1mR
getProducts({ per_page: 100 })
Fields returned:
getProduct({ id: 591 })
updateProduct({
id: 591,
regular_price: "60.00",
stock_status: "instock",
stock_quantity: 100
})
createProduct({
name: "New Kebab",
type: "simple",
regular_price: "85.00",
description: "...",
short_description: "...",
categories: [{ id: 37 }], // Kebab category
images: [{ src: "https://..." }]
})
deleteProduct({ id: 591 })
| ID | Name | Slug | Products |
|---|---|---|---|
| 37 | Kebab | kebab | 4 |
| 36 | Kebab-special | kebab-special | 9 |
| 35 | Burger | burger | 9 |
| 79 | Baghet | baghet | 4 |
| 24 | Cartofi | cartofi | 4 |
| 80 | Salată | salata | 4 |
| 22 | Băuturi | bauturi | 47 |
| 38 | Sosuri | sosuri | 3 |
| 31 | Adaosuri | adaosuri | 6 |
| 34 | Crispy | crispy | 4 |
| 30 | Cafea | cafea | 3 |
| 32 | Ceai | ceai | 1 |
| 28 | Combo | combo | 7 |
getProducts({
per_page: 100,
category: 37 // Kebab category
})
Expected:
updateProduct({
id: 591,
regular_price: "60.00"
})
Verify:
getProduct({ id: 591 })
→ Check regular_price = "60.00"
updateProduct({
id: 591,
stock_status: "outofstock"
})
createProduct({
name: "Kebab Special Promo",
type: "simple",
regular_price: "75.00",
short_description: "Special offer!",
description: "Full description...",
categories: [{ id: 36 }], // Kebab-special
stock_status: "instock",
images: [{ src: "https://ffkebab.md/wp-content/uploads/..." }]
})
getProducts({ per_page: 100 })
.filter(p => p.images.length === 0)
getProducts({ per_page: 100 })
.filter(p => p.manage_stock === true && p.stock_quantity < 10)
1. Login: https://ffkebab.md/wp-admin
2. Products → Add New
3. Enter:
- Product name
- Description
- Price (Regular, Sale)
- Product Data: Simple / Variable
- Inventory: SKU, Stock status
- Categories: Select
- Product Image: Upload
4. Publish
1. Products → All Products
2. Find product (search or filter by category)
3. Click Edit
4. Modify fields
5. Update
1. Products → All Products
2. Select products (checkboxes)
3. Bulk Actions → Edit → Apply
4. Set new price
5. Update
## Products Report
### Category: Kebab (37)
| ID | Name | Price | Stock | Image |
|----|------|-------|-------|-------|
| 591 | Kebab Pui (Mic) | 55 MDL | ✓ | ✓ |
| 592 | Kebab Pui (Mare) | 65 MDL | ✓ | ✓ |
| 601 | Kebab Arab | 70 MDL | ✓ | ✓ |
| 603 | Kebab Hulk | 135 MDL | ✓ | ✓ |
### Updates Made
1. Updated price for ID 591: 55 → 60 MDL
2. Set ID 603 out of stock
### Issues Found
- [ ] Products without images: 12
- [ ] Low stock (<10): 3 products
- [ ] Price inconsistencies: 0
### Next Actions
- Add images for 12 products
- Restock 3 low stock items
| Endpoint | Method | Description |
|---|---|---|
/wc/v3/products | GET | Get all products |
/wc/v3/products/{id} | GET | Get single product |
/wc/v3/products/{id} | POST | Update product |
/wc/v3/products/{id} | DELETE | Delete product |
/wc/v3/products | POST | Create product |
/wc/v3/products/categories | GET | Get categories |
/wc/v3/products/attributes | GET | Get attributes |
"50.00" not 50# Get product by SKU
getProducts({ sku: "10001" })
# Get sale products
getProducts({ on_sale: true })
# Get featured products
getProducts({ featured: true })
# Search products
getProducts({ search: "Kebab" })
# Get by slug
getProducts({ slug: "kebab-pui-mare" })
Важно: Все операции через WooCommerce REST API. Прямого доступа к базе данных НЕТ.