Hi,
Thank you for your feedback. That's a good idea.
You can add the code:
if($config->get('circle_around_for_shortcuts', 1)){
if(empty($links->next) && !empty($links->previous)){
$id_next = first($articles);
$elt = $productClass->get($id_next);
$productClass->addAlias($elt);
$links->next = hikashop_completeLink('product&task=show&cid='.(int)$id_next.'&name='.$elt->alias.'&'.$pathway.$url_itemid);
$links->next_product = $elt;
}
if(empty($links->previous) && !empty($links->next)){
$id_previous = end($articles);
$elt = $productClass->get($id_previous);
$productClass->addAlias($elt);
$links->previous = hikashop_completeLink('product&task=show&cid='.(int)$id_previous.'&name='.$elt->alias.'&'.$pathway.$url_itemid);
$links->previous_product = $elt;
}
}
after the code:
if(isset($articles[$n])) {
$id_next = $articles[$n];
$elt = $productClass->get($id_next);
$productClass->addAlias($elt);
$links->next = hikashop_completeLink('product&task=show&cid='.(int)$id_next.'&name='.$elt->alias.'&'.$pathway.$url_itemid);
$links->next_product = $elt;
}
break;
}
in the file components/com_hikashop/views/product/view.html.php and that should do it.