
Hello,
i can not find how to enable product navigation for virtuemart.
On a Artister template the navigation is working, on the themler template it's not.


Hello,
i can not find how to enable product navigation for virtuemart.
On a Artister template the navigation is working, on the themler template it's not.
Hi,
Unfortunately Themler team does not provide such control. You can try adding this element manually using custom code in the CMS Code control.
Thank you,
Olivia
Hi, what is the code that I should add and in what files?
Hi, what is the code that I should add and in what files?Lo probé pero no aparece, sólo aparace el espacio vacío. Alguna sugerencia?
Lo probé pero no aparece, sólo aparace el espacio vacío. Alguna sugerencia?Lo intenté agregar en el archivo productoverview.php del template generado por themler, pero no funciona. Será otro el archivo que debo intervenir?
Lo intenté agregar en el archivo productoverview.php del template generado por themler, pero no funciona. Será otro el archivo que debo intervenir?El archivo a modificar es default_template.php, ruta TEMPLATE/html/com_virtuemart/productdetails
El archivo a modificar es default_template.php, ruta TEMPLATE/html/com_virtuemart/productdetailsHi,
Simply add "CMS Code" control to the Product Details template and insert the following code (from the VM source files):
<?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, FALSE);
echo JHtml::_('link', $prev_link, $this->product->neighbours ['previous'][0]
['product_name'], array('rel'=>'prev', 'class' => 'previous-page','data-dynamic-update' => '1'));
}
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','data-dynamic-update' => '1'));
}
?>
<div class="clear"></div>
</div>
<?php } // Product Navigation END
?>
That's all.
Thank you,
Olivia
I add the CMS Code above the Product Details page.
Than I copy > past your code
But doesn' work only a 404 error comes up :(
What do I wrong?
I add the CMS Code above the Product Details page. Than I copy > past your code But doesn' work only a 404 error comes up :( What do I wrong?Hi,
The code works ok on my side as well ad created links to products:
Could you please create a new private topic and provide the access to the Joomla admin panel.
Thank you,
Olivia