Hi Guys,
In the file /public_html/templates/sj_market/html/com_virtuemart/productdetails/default.php and changed:
1. in begin of file:
Please find:
<?php
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication('site');
$template = $app->getTemplate();
$assets_img = JURI::root().'templates/'.$template.'/images/rating';
$ratingModel = VmModel::getModel('ratings');
// addon for joomla modal Box
//JHTML::_('behavior.modal');
/* Let's see if we found the product */
if (empty($this->product)) {
echo JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND');
echo '<br /><br /> ' . $this->continue_link_html;
return;
}
vmJsApi::jPrice();
vmJsApi::cssSite();
echo vmJsApi::writeJS();
?>
====> Edit to:
<?php
defined('_JEXEC') or die('Restricted access');
$app = JFactory::getApplication('site');
$template = $app->getTemplate();
$assets_img = JURI::root().'templates/'.$template.'/images/rating';
$ratingModel = VmModel::getModel('ratings');
/* Let's see if we found the product */
if (empty($this->product)) {
echo vmText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND');
echo '<br /><br /> ' . $this->continue_link_html;
return;
}
echo shopFunctionsF::renderVmSubLayout('askrecomjs',array('product'=>$this->product));
// addon for joomla modal Box
//JHTML::_('behavior.modal');
vmJsApi::jDynUpdate();
vmJsApi::addJScript('updDynamicListeners',"
jQuery(document).ready(function() { // GALT: Start listening for dynamic content update.
// If template is aware of dynamic update and provided a variable let's
// set-up the event listeners.
if (Virtuemart.container)
Virtuemart.updateDynamicUpdateListeners();
}); ");
if(vRequest::getInt('print',false)){ ?>
<body onload="javascript:print();">
<?php } ?>
2. in bottom file, please find:
<?php // event onContentBeforeDisplay
echo $this->product->event->beforeDisplayContent; ?>
</div>
====> Edit to:
<?php // event onContentBeforeDisplay
echo $this->product->event->beforeDisplayContent; ?>
<div class="clear"></div>
<?php // onContentAfterDisplay event
echo $this->product->event->afterDisplayContent;
echo vmJsApi::writeJS();
?>
</div>
<script>
// GALT
/*
* Notice for Template Developers!
* Templates must set a Virtuemart.container variable as it takes part in
* dynamic content update.
* This variable points to a topmost element that holds other content.
*/
// If this <script> block goes right after the element itself there is no
// need in ready() handler, which is much better.
//jQuery(document).ready(function() {
Virtuemart.container = jQuery('.productdetails-view');
Virtuemart.containerSelector = '.productdetails-view';
//Virtuemart.container = jQuery('.main');
//Virtuemart.containerSelector = '.main';
//});
</script>
If you need to check directly, please provide us your FTP account.
Thanks & regards!