News:

Looking for documentation? Take a look on our wiki

Main Menu

Problem with neighbour Links on detailpage

Started by Teramus, April 08, 2014, 19:33:36 PM

Previous topic - Next topic

Teramus

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

Milbo

I helps extremely if you actually write that you use vm2.6. Which ordering do you use? Please check your vm config.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Teramus

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

Milbo

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!
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Teramus

Hey,
here a screenshot from my config.
I stored it again, but no success.

Regards

[attachment cleanup by admin]

Milbo

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?
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/