public static function handlePDFExtensions($orderId)
{
$pdfV = array();
$pdfV['plugin-pdf'] = PhocacartUtilsExtension::getExtensionInfo('phocacart', 'plugin', 'phocapdf');
$pdfV['component-pdf'] = PhocacartUtilsExtension::getExtensionInfo('com_phocapdf');
$pdfV['pdf'] = 0;
if ($pdfV['plugin-pdf'] == 1 && $pdfV['component-pdf'] == 1) {
if (File::exists(JPATH_ADMINISTRATOR . '/components/com_phocapdf/helpers/phocapdfrender.php')) {
require_once JPATH_ADMINISTRATOR . '/components/com_phocapdf/helpers/phocapdfrender.php';
} else {
PhocacartLog::add(2, 'Order Status - Notify - ERROR (PDF Class)', (int) $orderId, 'Render PDF file could not be found in system');
throw new Exception('Error - Phoca PDF Helper - Render PDF file could not be found in system', 500);
return false;
}
$pdfV['pdf'] = 1;
}
return $pdfV;
}