News:

Support the VirtueMart project and become a member

Main Menu

Breadcrumbs (navigation) on products pages dont works

Started by thefbi, February 05, 2012, 15:16:37 PM

Previous topic - Next topic

thefbi

Hello,
i have VM 2.0.1d and Joomla 2.5.1.
I have problem with the Breadcrumbs on products pages dont works. I just have littles arrows, but not the products name. I speak about the navigation between products, with the name of the products before and after.
Take a look here : http://www.energie-sante.ch/le-centre/produits/consommables/papaye-fermentee-anti-age-immuni-stimulant-detail
Regards, Frédéric

morktron

I have the same problem, I can see the php code in the template but no link is being output. I can see empty link elements on the page:

<div class="product-neighbours">
<a class="previous-page" href="/shop"></a>
<a class="next-page" href="/shop"></a>
<div class="clear"></div>
</div>


I see another person had this issue and their solution was to reset the installation which is unfortunately not an option for me as I've come so far.

Is anyone else having this issue and are there any solutions?

morktron

The code from the latest version fixes it :)

<?php
    
// Product Navigation
    
if (VmConfig::get('product_navigation'1)) { ?>

<div class="product-neighbours">
    <?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);
echo JHTML::_('link'$prev_link$this->product->neighbours ['previous'][0]
['product_name'], array('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);
echo JHTML::_('link'$next_link$this->product->neighbours ['next'][0] ['product_name'], array('class' => 'next-page'));
    }
    ?>

    <div class="clear"></div>
        </div>
    <?php // Product Navigation END
    
?>

greenmonkey

I have the same problem. Where exactly do I find this ie what directory / file?
Thanks.

Felis-concolor

#4
Hello morktron
just got the same problem too.
in the /components/com_virtuemart/views/productdetails/tmpl/default.php
your code is implemented cause I use the latest update

in viewing the website in the browser and looking for the code I can found
<div class="product-neighbours">
              <div class="clear"></div>
        </div>
but i can´t see something on the page
normaly must be shown after "Artikelnummer"

http://stober-handel.de/index.php/stober-shop/wischmopps/one-off-40cm-detail

sorry for my bad english I wrote from germany