VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Teramus on April 08, 2014, 19:33:36 PM

Title: Problem with neighbour Links on detailpage
Post by: Teramus on April 08, 2014, 19:33:36 PM
Dear Community,

i have a problem using the product oder by sort. I i use this ordering type i can not use the product neighbour navigation anymore. i dont know how to fix this issue. I tried to upgrad to the latest version, but i have still the same Problem.
Here is the code for the navigation. I hope someone has a solution for me:
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, FALSE);
echo JHTML::_('link', $prev_link, $this->product->neighbours ['previous'][0]
['product_name'], array('rel'=>'prev', 'class' => 'previous-page'));
    }
    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, FALSE);
echo JHTML::_('link', $next_link, $this->product->neighbours ['next'][0] ['product_name'], array('rel'=>'next','class' => 'next-page'));
    }

The Website you will find here: http://www.kepka.impulsfaktor.abcde.biz/portfolio/glasbilder/wandbilder/glasbild-sipho-detail (already a detailpage)

I use the newest version of Virtuemart and Joomla as well.

Regards

Teramus
Title: Re: Problem with neighbour Links on detailpage
Post by: Milbo on April 08, 2014, 20:00:59 PM
I helps extremely if you actually write that you use vm2.6. Which ordering do you use? Please check your vm config.
Title: Re: Problem with neighbour Links on detailpage
Post by: Teramus on April 08, 2014, 20:09:27 PM
Hey,

yes i use virtuemart 2.0.6, sry. I use the (i hope it is named so) custom order.
I found actually a solution here (last post) http://forum.virtuemart.net/index.php?topic=96784.30
For the moment it seems to work, but i need to try more pages.

Regards

Teramus
Title: Re: Problem with neighbour Links on detailpage
Post by: Milbo on April 08, 2014, 20:11:33 PM
2.0.6?

Actually we worked on that for vm2.6 and we tested it quite widely. Please tell use your vm config for ordering. Please check your config and store it!
Title: Re: Problem with neighbour Links on detailpage
Post by: Teramus on April 08, 2014, 20:37:03 PM
Hey,
here a screenshot from my config.
I stored it again, but no success.

Regards

[attachment cleanup by admin]
Title: Re: Problem with neighbour Links on detailpage
Post by: Milbo on April 08, 2014, 21:43:10 PM
Seems your manual ordering is broken. Please go in your product edit list,.. select a category and store the ordering. This should fix it. From which version did you update?