Hi,
sorry, of course, no single function. I used this code which worked, if I have an ID, which I don't have:
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')){
echo 'This module can not work without the Hikashop Component';
return;
};
$id='15';
$productClass = hikashop_get('class.product');
$product = $productClass ->get($id);
$currencyClass = hikashop_get('class.currency');
$products = array(&$product);
$ids = array($id);
$config =& hikashop_config();
$main_currency = $currency_id = (int)$config->get('main_currency',1);
$zone_id = explode(',',$config->get('main_tax_zone',0));
if(count($zone_id)){
$zone_id = array_shift($zone_id);
}else{
$zone_id=0;
}
$discount_before_tax = (int)$config->get('discount_before_tax',0);
$currencyClass->getPrices($products,$ids,hikashop_getCurrency(),$main_currency,$zone_id,$discount_before_tax);
error_log("1");
echo "xxxxxxxxxx".$products[0]->product_name.$products[0]->product_code;
error_log("2");
sorry again, the code from the "show" function is much too complex for me.
As I wrote, I only need description and prices for a couple of given product_names. May be you could be a little more specific...
Thanks.