category -> product association implemented

This commit is contained in:
echo committed 2025-02-16 20:02:41 +01:00
1 parent 0b8c5de8b0
commit c8bcfe6bd6
41 files changed
+2222 -703

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
<?php
if (!defined("_PS_VERSION_")) {
exit();
}
interface ICategory
{
public function createCategory(string $name, ?int $parentId = null): int;
public function getCategoryIdByName(string $name): ?int;
public function processCategoriesFromString(string $categoriesJson): array;
}
+12
View File
@@ -0,0 +1,12 @@
<?php
if (!defined("_PS_VERSION_")) {
exit();
}
interface IProductSync
{
public function importProducts(int $perPage = 100): array;
public function importSingleProduct(array $productData): bool;
}