VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: thefbi on February 05, 2012, 15:16:37 PM

Title: Breadcrumbs (navigation) on products pages dont works
Post by: thefbi on February 05, 2012, 15:16:37 PM
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
Title: Re: Breadcrumbs (navigation) on products pages dont works
Post by: morktron on February 20, 2012, 06:11:13 AM
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?
Title: Re: Breadcrumbs (navigation) on products pages dont works
Post by: morktron on February 20, 2012, 06:22:32 AM
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
    
?>
Title: Re: Breadcrumbs (navigation) on products pages dont works
Post by: greenmonkey on February 22, 2012, 11:36:43 AM
I have the same problem. Where exactly do I find this ie what directory / file?
Thanks.
Title: Re: Breadcrumbs (navigation) on products pages dont works
Post by: Felis-concolor on April 16, 2012, 22:20:04 PM
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