-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 5.5
Hi,
I want to fetch all the products from a selected category and display through my custom code. For this I referred here:
hikashop.com/support/documentation/62-hi...umentation.html#code
$productClass = hikashop_get('class.product');
$product=$productClass->get($product_id);
I want to know how can I add an ordering parameter here ? for example I want to display products from selected category. So, here I am passing the product id of all the fetched products but want to order them by product_name, product_id etc. or do I need to write the whole sql query for this?