//load HikaShop if not already loaded
if(!defined('DS'))
define('DS',DIRECTORY_SEPARATOR);
if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php'))
return true;
//get product id
$product_id = (int)hikashop_getCID('product_id');
if(empty($product_id ))
return true;
// load product
$productClass = hikashop_get('class.product');
$product = $productClass->get($product_id);
if(empty($product ))
return true;
//load prices
$currencyClass = hikashop_get('class.currency');
$config = hikashop_config();
$ids = array($product_id);
$currencyClass->getPrices($product,$ids,hikashop_getCurrency(),(int)$config->get('main_currency',1), hikashop_getZone(null),(int)$config->get('discount_before_tax',0));
// display the first price of the product
echo $product->prices[0]->price_value;