Hi,
It is sad to hear that Ajax loading is creating this problem in your joomla framework.
Some joomla template are doing more than they are supposed to.
Looks like; either your joomla template or a plugin (i can't be sure who is guilty), is using a function something like:
jQuery(document).ajaxStop(function(){
to define a function after an AJAX request is completed. In the new jQuery versions, the ajaxStart and ajaxStop functions are attached the "document".. Therefore, they are valid for all AJAX loadings. It is kind of hard to explain this to you.
But there are 2 possible solution:
1- Find the way to disable the AJAX loading functionality that comes with your joomla template (i hope will also eliminate the ajaxStop function, which is the main reason that breaks the layout within our VM template after the AJAX loading is completed.)
2- Eliminate the AJAX loading within our VM Template, therefore; there will be no AJAX loading, so there will be no broken layout.
To disable AJAX loading within our VM Template.
A - open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php
find and delete these lines:
$doc = JFactory::getDocument();
$doc->addScriptDeclaration('
jQuery(document).ready(function(){
jQuery.fn.FlexiblNeighborsdAjax();
});
');
B- Open this PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetails/default_addtocart.php
find and delete these lines:
$doc = JFactory::getDocument();
$doc->addScriptDeclaration('
jQuery(document).ready(function(){
jQuery.fn.FlexibleChildAjax();
});
');
The AJAX loading will be disabled and you will be good to go.
After your inquiry, i decided to create a new plugin parameter to disable the AJAX loading easily through "Flexible VM2 Template" plugin. This patch will be available in CleanMart v1.2
Regards
Support & Development