Thanks Eliot,
I know it is the international language code for Spanish-Spain, my question was, why did you send it as a parameter to the loadObject Method?
I see the method only asks for 1 parameter:
public function loadObject($class = 'stdClass')
Also, today I tested and the site was broken. I was sure I tested it last night and it worked, maybe some sort of cache..
I traced it down, and it seems the problem was in fact the extra parameters of the loadObject method, I checked the library method and I foudn what I put above, so I removed the parameters and used it as I normally use it. Joomla 2.5, not sure if 3.0 implements your method.
I'm curretnly using:
$db = JFactory::getDBO();
$db->setQuery('SELECT * FROM #__hikashop_product WHERE product_id='.$vars['cid']);
$product = $db->loadObject();
$lkname = $product -> product_name;
I also noticed that, if there was no translation available for a product in Falang, it would return an empty name. So I changed the helper file to use the default product name when no translation was found in Falang