Hi,
I've been looking through the classes php files and have a better idea about products and categories now. I've added the parts as products under a brand category. I'm not sure I'm using these in the most efficient way but what I'm currently doing is using
$brands = $category->getList('manufacturer', 0, false);
Then scan the array for the brand I am looking for. I then use
// $id is set from the previous scan
$tree = $product->getTreeList($id, 3);
foreach($tree[1] as $tr){
$product->getProducts($tr->product_id);
}
To find all the individual parts that will be used to create the item. From here I will build the item using my Joomla module and later save it back as a product variant (I haven't written this code yet).
Do these classes have API documentation available somewhere?
If I know the manufacturer's name is it possible to have HikaShop search for a string in the category table to return 1 record with the category_id that I need?
Atm it seems necessary to know all the Ids which I need to manually scan for.
Thanks for your help.