CMXX - Categories and catalog enhancements

This commit is contained in:
“VeLiTi”
2025-01-31 17:03:31 +01:00
parent a669b2fadf
commit 754359f6b6
10 changed files with 234 additions and 37 deletions

View File

@@ -128,10 +128,15 @@ foreach ($pricelist as $price) {
$keys_to_remove = ['status','item_status','group_status','version','config','sn','build','softwareversion','healthindex','salesflag','configurable','updatedby','createdby','updated','created'];
removeKeysRecursive($catalog,$keys_to_remove);
//------------------------------------------
//Catalog processor to split versions as new product
//------------------------------------------
$messages = processProductCollection($catalog);
//------------------------------------------
//JSON_ENCODE
//------------------------------------------
$messages = json_encode($catalog, JSON_UNESCAPED_UNICODE);
$messages = json_encode($messages, JSON_UNESCAPED_UNICODE);
//------------------------------------------
//Send results