Hi,
This is exactly the same in official Virtuemart Component (without CleanMart). Navigating to next-prev products doesn't update the breadcrumbs or page titles etc.. We are not responsible to solve the Virtuemart Bugs. You should raise this issue on Virtuemart's Official Forum (
forum.virtuemart.net)
- But i must say; this is against the idea of running AJAX loading. AJAX is exist to update just the "portion" of the page to increase the loading time. If the the title of the page; or breadcrumbs etc.. are all updated, then running AJAX is non-sense. Because you want to update many things.
To fix this problem, you must disable the AJAX loading for product next-prev navigation. To do it;
1- open these PHP file:
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetaiils/default.php
/templates/YOUR_TEMPLATE/html/com_virtuemart/productdetaiils/flexv2.php
2- Find these lines:
<?php if (!empty($this->product->neighbours ['previous'][0])) {
$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);?>
<a class="FlexibleNeighbours FlexibleNeighboursPrev" data-dynamic-update="1" href="<?php echo $prev_link; ?>" title="<?php echo $this->product->neighbours ['previous'][0]['product_name']?>" ></a> <span class="FlexibleNeighborSeperator"></span>
<?php }?>
<?php if (!empty($this->product->neighbours ['next'][0])) {
$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); ?>
<a class="FlexibleNeighbours FlexibleNeighboursNext" data-dynamic-update="1" href="<?php echo $next_link; ?>" title="<?php echo $this->product->neighbours ['next'][0]['product_name'];?>" ></a>
<?php } ?>
3- Replace them with these:
<?php if (!empty($this->product->neighbours ['previous'][0])) {
$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);?>
<a class="FlexibleNeighbours FlexibleNeighboursPrev" href="<?php echo $prev_link; ?>" title="<?php echo $this->product->neighbours ['previous'][0]['product_name']?>" ></a> <span class="FlexibleNeighborSeperator"></span>
<?php }?>
<?php if (!empty($this->product->neighbours ['next'][0])) {
$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); ?>
<a class="FlexibleNeighbours FlexibleNeighboursNext" href="<?php echo $next_link; ?>" title="<?php echo $this->product->neighbours ['next'][0]['product_name'];?>" ></a>
<?php } ?>
TIP: Remove the
data-dynamic-update="1" attribute from the NEXT-PREV links.
Regards.