protected function _loadCart($item, $article_params) { $lang = JFactory::getLanguage(); $lang->load('com_j2store'); $j2params = JComponentHelper::getParams('com_j2store'); if (empty($item->id) || is_int($item->id == false)) { return ''; } $product_enabled = J2StorePrices::getItemEnabled($item->id); if ($product_enabled == 1) { $this->_updateCurrency(); $content = ''; $content = J2StoreHelperCart::getAjaxCart($item); $output = $content; } else { $output = ''; } //free file attachments $freefiles = J2StoreDownloads::getDownloadHtml($item->id); $output = $freefiles . $output; return $output; }