Hi,
You asked for a sorting on the field "product_ordering" and HikaShop display you the products in the sort you asked for.
Because you are displaying products of sub categories, the display is not right like you expected to but it's logically regarding the configuration.
So in your situation, you want a more specific and more complex sorting which is possible using a little joomla plugin.
class plgHikaShopCustomerOrdering extends JPlugin {
function onBeforeProductListingLoad(&$filters, &$order, &$view, &$select, &$a, &$b, &$on) {
if($order == ' ORDER BY a.ordering ASC')
$order = ' ORDER BY a.category_id ASC, a.ordering ASC';
}
}
And it will sort first by the category id, and second by the ordering value.
But it uses the category id and not some kind of ordering between the categories. If you want something more complex, you will have to improve the algorithm and add more values in the SQL query made by HikaShop in order to get the product listing.
The code I gave require to create a little Joomla plugin with a XML and a PHP file.
Please check the Joomla documentation in order to know more about that. You can also use a simple HikaShop plugin as a base for your XML content (just have to rename some values).
Kind regards,