Our network: Joomla Templates // Magento Themes // WordPress Themes
Shopping cart (0)

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00
Welcome, Guest

Steps to create new custom tab in product detail
(1 viewing) (1) Guest
Userguide, new idea, report bugs...
  • Page:
  • 1

TOPIC: Steps to create new custom tab in product detail

Steps to create new custom tab in product detail 1 year, 1 month ago #4775

  • David Hoang
  • OFFLINE
  • Administrator
  • Posts: 88
  • Karma: 10
Step 1:
Create app\design\frontend\default\sm_sport\template\catalog\product\view\additional.phtml file. We created this file. You can open this file to refer.

Step 2:
Please open app\design\frontend\default\sm_sport\template\catalog\product\view.phtml file, find this code:
<?php /*if ($_additional = $this->getChildHtml('additional')):?>
<li><a href="#yt_tab_additional"><?php echo $this->__('Additional Information') ?></a></li>
<?php endif; */?>


and change to:
<?php if ($_additional = $this->getChildHtml('additional')):?>
<li><a href="#yt_tab_additional"><?php echo $this->__('Additional Information') ?></a></li>
<?php endif; ?>


Step 3:
in view.phtml too, please find this code:
<?php /*if ( $_additional ) : ?>
<div id="yt_tab_additional">
	<div class="collateral-box">
		<?php echo $_additional ?>
	</div>
</div>
<?php endif;*/?>


and change to:
<?php if ( $_additional ) : ?>
<div id="yt_tab_additional">
	<div class="collateral-box">
		<?php echo $_additional ?>
	</div>
</div>
<?php endif;?>
Ticket System. Join our Clubs to download our extensions and templates
Last Edit: 1 year, 1 month ago by David Hoang.

Re: Steps to create new custom tab in product detail 9 months, 2 weeks ago #4961

  • Adam Saul
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Thanks for the info. It worked however it shows a weird colour box over the text of those attributes. Any idea how I can get rid of the colour?
ScreenShot2014-02-11at4.30.43PM.png

Re: Steps to create new custom tab in product detail 8 months, 3 weeks ago #5001

  • Acuity Sports
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 10
  • Karma: 0
If you want to move the reviews into a tab it is pretty simple. Took me awhile to get it figured out.

on the view.phtml

change this around

move:

<div class="box-add-review">
<div class="box-add-review-inner">
<?php echo $this->getChildHtml('product_reviews') ?>
<?php echo $this->getChildHtml('review_form') ?>
</div>
</div>

to:


<?php if( $product_reviews ): ?>
<div id="yt_tabitem_reviews">
<div class="box-add-review">
<div class="box-add-review-inner">
<?php echo $this->getChildHtml('product_reviews') ?>
<?php echo $this->getChildHtml('review_form') ?>
</div>
</div>
</div>
  • Page:
  • 1
Time to create page: 0.10 seconds
Banner