hello, this actually was a problem with jquery libraries between the widgetkit and virtuemart. opc does not need jquery, but the page didn't get loaded at all due to the javascript problems and the fading effect on your site.
the bug actually is somewhere in the widgetkit because it does not check for dependencies and does not load the libraries that it needs before any other extension.
the only way on how could i fix this, is to make sure that proper jquery libraries are loaded BEFORE wedgetkit, so i decided to use your:
/plugins/system/opc.php
and i've changed this code from:
- Code: Select all
public function onAfterRoute() {
if (self::_check())
{
JHTMLOPC::script('opcping.js', 'components/com_onepage/assets/js/', false);
}
// rest of the function here...
to
- Code: Select all
public function onAfterRoute() {
if (self::_check())
{
$app = JFactory::getApplication();
$jq = $app->get('jquery', false);
if (empty($jq))
{
JHTML::script('http://code.jquery.com/jquery-1.11.0.min.js');
JHTML::script('http://code.jquery.com/jquery-migrate-1.2.1.min.js');
$app->set('jquery', true);
}
$ui = $app->get('jquery-ui', false);
if (empty($ui))
{
if (class_exists('vmJsApi'))
vmJsApi::js ('jquery-ui', '//ajax.googleapis.com/ajax/libs/jqueryui/1.8.16', '', TRUE);
$app->set('jquery-ui', true);
}
$document = JFactory::getDocument();
$base = JURI::base();
$jbase = str_replace('/administrator', '', $base);
if (substr($jbase, -1) !== '/') $jbase .= '/';
if (file_exists(JPATH_SITE.DS.'components'.DS.'com_virtuemart'.DS.'assets'.DS.'js'.DS.'jquery.noConflict.js'))
$document->addScript($jbase.'components/com_virtuemart/assets/js/jquery.noConflict.js');
else
if (file_exists(JPATH_SITE.DS.'components'.DS.'com_virtuemart'.DS.'assets'.DS.'js'.DS.'jquery.noconflict.js'))
$document->addScript($jbase.'components/com_virtuemart/assets/js/jquery.noconflict.js');
JHTMLOPC::script('opcping.js', 'components/com_onepage/assets/js/', false);
// rest of the function here...
}
i may add this as an option to opc "load the latest jquery library"
best regards, stan