VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: ParkInZone on November 24, 2013, 12:37:11 PM

Title: Product navigation link rename
Post by: ParkInZone on November 24, 2013, 12:37:11 PM
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
Title: Re: Product navigation link rename
Post by: Maxim Pishnyak on November 24, 2013, 16:54:25 PM
Sticked 'Language Overrides' in Language forum.
Title: Re: Product navigation link rename
Post by: ParkInZone on November 24, 2013, 16:56:23 PM
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?
Title: Re: Product navigation link rename
Post by: Maxim Pishnyak on November 24, 2013, 17:09:58 PM
Explain what do you want more wisely, pls.
Title: Re: Product navigation link rename
Post by: ParkInZone on November 24, 2013, 17:13:28 PM
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->
Title: Re: Product navigation link rename
Post by: Maxim Pishnyak on November 24, 2013, 17:18:11 PM
Compare your file with original from virtuemart views folder.