Reviws position

Is it possible to change the position of the reviews to be inside a tab just like here?

http://www.bhphotovideo.com/c/produc…i_Digital.html

I want that when a user will visit my site he will see immideatly the reviews without needded to click on the reviews to see it.

thanks.

6 answers

Profile photo of Saguaros 0.00 $tone April 5, 2013
Public

Hi,

An easy way to achieve is that you change the order of tab displaying in product view page:

-- Open file: \app\design\frontend\default\jm_jasminetemplate\c atalog\product\view.phtml

-- Move code for reviews tab to the first order:

PHP Code:

<?php if($product_reviews $this->getChildHtml('product_reviews')): ?>
                   <li><a href="#ja-tabitem-reviews"><?php echo $this->__('Product Reviews'?></a></li>
              <?php endif; ?>


so it appears just before:

PHP Code:

<?php foreach ($this->getChildGroup('detailed_info''getChildHtml') as $alias => $html):?>
                    <li><a href="<?php echo "#ja-tab-{$alias}"?>"><?php echo $alias?></a></li>
                <?php endforeach;?>


underneath:

PHP Code:

<ul class="ja-tab-navigator clearfix"




-- Change the same order in div tag named:
PHP Code:

<div class="ja-tab-content"



PHP Code:

<?php if($product_reviews): ?>
                        <div id="ja-tabitem-reviews">
                            <?php echo $product_reviews ?>
                        </div>
                        <?php endif;?>


Once done, remember to flush magento cache.

#1

This question is now closed

Written By

Comments