News:

Support the VirtueMart project and become a member

Main Menu

Product navigation link rename

Started by ParkInZone, November 24, 2013, 12:37:11 PM

Previous topic - Next topic

ParkInZone

Hi,

I would like to rename the product navigation link is NEXT, PREV , the original code is :

<div class="productdetails-view">

    <?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
    
?>


THX

Maxim Pishnyak

Sticked 'Language Overrides' in Language forum.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

ParkInZone

Quote from: Maxim Pishnyak on November 24, 2013, 16:54:25 PM
Sticked 'Language Overrides' in Language forum.

THX, and if you do not have the product name?

Maxim Pishnyak

Explain what do you want more wisely, pls.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

ParkInZone

Quote from: Maxim Pishnyak on November 24, 2013, 17:09:58 PM
Explain what do you want more wisely, pls.

ORIGINAL:

<- Moshi iPhone 5 Cover                        Moshi iPhone 5s Cover ->

modified, it should be:

<- Previous                                          Next->

Maxim Pishnyak

Compare your file with original from virtuemart views folder.
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart