Hi,
Okay it is fixed. It will be the first "Bugs Fixing" that is going to be added to v3.1 release.
Either download the v3.1 version form our server and reapply the VM Template OR apply the fix for this issue by yourself. (it is quite easy though)
Open this PHP file:
ROOt/templates/<yourjoomlatemplatefolder>/html/com_virtuemart/productdetails/default.php
(deault.php or flexv2.php depends on which product details you are using)
And find these lines:
<?php
if (!empty($this->product->neighbours ['next'][0])) {
if (!($parameter == "quicklook")) {
$next_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
} else {
$next_link = JRoute::_('index.php?option=com_virtuemart&tmpl=component&flexiblelayout=quicklook&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
}
}
if (!empty($this->product->neighbours ['previous'][0])) {
if (!($parameter == "quicklook")) {
$prev_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
} else {
$prev_link = JRoute::_('index.php?option=com_virtuemart&tmpl=component&flexiblelayout=quicklook&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
}
}
?>
<a class="FlexibleNeighboursPrev" href="<?php echo $prev_link; ?>" title="<?php echo JTEXT::_('COM_VIRTUEMART_BOX_PREVIOUS');?>" ></a>
<span class="FlexibleNeighborSeperator"></span>
<a class="FlexibleNeighboursNext" href="<?php echo $next_link; ?>" title="<?php echo JTEXT::_('COM_VIRTUEMART_BOX_NEXT');?>" ></a>
And replace them with this:
<?php if (!empty($this->product->neighbours ['previous'][0])) {
if (!($parameter == "quicklook")) {
$prev_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
} else {
$prev_link = JRoute::_('index.php?option=com_virtuemart&tmpl=component&flexiblelayout=quicklook&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
} ?>
<a class="FlexibleNeighboursPrev" href="<?php echo $prev_link; ?>" title="<?php echo JTEXT::_('COM_VIRTUEMART_BOX_PREVIOUS');?>" ></a>
<span class="FlexibleNeighborSeperator"></span>
<?php }?>
<?php
if (!empty($this->product->neighbours ['next'][0])) {
if (!($parameter == "quicklook")) {
$next_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
} else {
$next_link = JRoute::_('index.php?option=com_virtuemart&tmpl=component&flexiblelayout=quicklook&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id);
}
?>
<a class="FlexibleNeighboursNext" href="<?php echo $next_link; ?>" title="<?php echo JTEXT::_('COM_VIRTUEMART_BOX_NEXT');?>" ></a>
<?php } ?>
And you will be good to go.
Cheers.