Forum Support

Shape 5
March 29, 2024, 12:19:18 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Need to remove Reviews block at bottom of flypage  (Read 837 times)
adadeacon
Jr. Member
**
Offline Offline

Posts: 50



« on: June 21, 2011, 06:08:50 AM »

Hi there,

I need to remove the "Reviews" block at the bottom of the product descriptions on a website I'm doing.

I've read this post  from 2008 - http://www.shape5.com/component/option,com_smf/Itemid,75/topic,2908.0/
The code in flypage.tpl.php isn't quite the same in my version that I downloaded recently, but I found the part that removes the Reviews tab. However, when I delete the code for Reviews, all the other tabs show up but don't work.

I want to remove that box at the bottom completely as I won't be using any of those tabs and don't want it showing up there with nothing in it.

Oh, and I did turn off the customer review/rating system.

Example page: http://www.queencaterers.co.za/faith_foods/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=21&category_id=8&option=com_virtuemart&Itemid=155
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 23789



WWW
« Reply #1 on: June 21, 2011, 11:34:32 AM »

Hello,

Ok to do so and be sure they dont show up do the following, open up  "components/com_virtuemart/themes/s5_restaurante/templates/product_details/flypage.tpl.php" and remove the following code:


Code:
<div id="tab_s5_ts_top" style="height:27px; float:left;margin-top:-38px;line-height:24px;margin-left:1px;position:relative;">
<div onclick="tab_s5_ts_tab1()" id="tab2_s5_a_ts_tab1" style="cursor:pointer; float:left; height:20px;margin-right:6px; padding-top:4px; padding-bottom:3px; padding-left:0px; padding-right:4px;">
<span id="s5_a2_ts" style="display:block;height:33px;width:20px;margin-top:5px;<?php if ($is_ie6 == "yes") { ?>margin-top:6px;<?php }?>float:left;background:transparent url(<?php echo $LiveSite ?>components/com_virtuemart/themes/s5_restaurante/templates/product_details/images/tabactl.jpg) no-repeat left;"></span>
<a id="tab_s5_a_ts_tab1" style="float:left;padding-bottom:9px;padding-top:10px;padding-right:15px;font-size: 12px; font-weight: bold; cursor: pointer;background:transparent url(<?php echo $LiveSite ?>components/com_virtuemart/themes/s5_restaurante/templates/product_details/images/tabactr.jpg) repeat-x right;" onclick="tab_s5_ts_tab1()">Related Items</a>
</div>

<div id="tab2_s5_a_ts_tab2" onclick="tab_s5_ts_tab2()" style="cursor:pointer; float:left; height:27px;margin-right:6px; padding-top:4px; padding-bottom:3px;padding-left:0px; padding-right:4px; ">
<span id="s5_a2_ts1" style="display:block;height:33px;width:20px;margin-top:5px;<?php if ($is_ie6 == "yes") { ?>margin-top:6px;<?php }?>float:left;background:transparent url(<?php echo $LiveSite ?>components/com_virtuemart/themes/s5_restaurante/templates/product_details/images/tabactlh.jpg) no-repeat left;"></span>
<a id="tab_s5_a_ts_tab2" style="float:left;padding-bottom:9px;padding-top:10px;padding-right:15px;color:#5e5e5e;font-size: 12px; font-weight: bold; cursor: pointer;background:transparent url(<?php echo $LiveSite ?>components/com_virtuemart/themes/s5_restaurante/templates/product_details/images/tabactrh.jpg) repeat-x right;" onclick="tab_s5_ts_tab2()">Reviews</a>
</div>

<div id="tab2_s5_a_ts_tab3" onclick="tab_s5_ts_tab3()" style="cursor:pointer; float:left; height:27px;margin-right:6px; padding-top:4px; padding-bottom:3px;padding-left:0px; padding-right:4px; ">
<span id="s5_a2_ts2" style="display:block;height:33px;width:20px;margin-top:5px;<?php if ($is_ie6 == "yes") { ?>margin-top:6px;<?php }?>float:left;background:transparent url(<?php echo $LiveSite ?>components/com_virtuemart/themes/s5_restaurante/templates/product_details/images/tabactlh.jpg) no-repeat left;"></span>
<a id="tab_s5_a_ts_tab3" style="float:left;padding-bottom:9px;padding-top:10px;padding-right:15px;color:#5e5e5e;font-size: 12px; font-weight: bold; cursor: pointer;background:transparent url(<?php echo $LiveSite ?>components/com_virtuemart/themes/s5_restaurante/templates/product_details/images/tabactrh.jpg) repeat-x right;" onclick="tab_s5_ts_tab3()">Delivery Time</a>
</div>

<div id="tab2_s5_a_ts_tab4" onclick="tab_s5_ts_tab4()" style="cursor:pointer; float:left; height:27px;margin-right:6px; padding-top:4px; padding-bottom:3px;padding-left:0px; padding-right:4px;">
<span id="s5_a2_ts3" style="display:block;height:33px;width:20px;margin-top:5px;<?php if ($is_ie6 == "yes") { ?>margin-top:6px;<?php }?>float:left;background:transparent url(<?php echo $LiveSite ?>components/com_virtuemart/themes/s5_restaurante/templates/product_details/images/tabactlh.jpg) no-repeat left;"></span>
<a id="tab_s5_a_ts_tab4" style="float:left;padding-bottom:9px;padding-top:10px;padding-right:15px;color:#5e5e5e;font-size: 12px; font-weight: bold; cursor: pointer; background:transparent url(<?php echo $LiveSite ?>components/com_virtuemart/themes/s5_restaurante/templates/product_details/images/tabactrh.jpg) repeat-x right;" onclick="tab_s5_ts_tab4()">More Categories</a>
</div>

<div id="tab2_s5_a_ts_tab5" onclick="tab_s5_ts_tab5()" style="cursor:pointer; float:left; height:27px;margin-right:6px; padding-top:4px; padding-bottom:3px;padding-left:0px; padding-right:4px; ">
<span id="s5_a2_t4" style="display:block;height:33px;width:20px;margin-top:5px;<?php if ($is_ie6 == "yes") { ?>margin-top:6px;<?php }?>float:left;background:transparent url(<?php echo $LiveSite ?>components/com_virtuemart/themes/s5_restaurante/templates/product_details/images/tabactlh.jpg) no-repeat left;"></span>
<a id="tab_s5_a_ts_tab5" style="float:left;padding-bottom:9px;padding-top:10px;padding-right:15px;color:#5e5e5e;font-size: 12px; font-weight: bold; cursor: pointer;background:transparent url(<?php echo $LiveSite ?>components/com_virtuemart/themes/s5_restaurante/templates/product_details/images/tabactrh.jpg) repeat-x right;" onclick="tab_s5_ts_tab5()">Recently Viewed</a>
</div>
<div style="clear:both;"></div>
</div>



<div class="s5_vmdetails_tm" <?php if ($is_ie6 == "yes") { ?>style="margin-top:-11px;"<?php }?>>
<div class="s5_vmdetails_tl2"></div>
<div class="s5_vmdetails_tr2"></div>
<div style="clear:both;"></div>
</div>
<div class="s5_vmdetails_ml" <?php if ($is_ie6 == "yes") { ?>style="margin-top:-3px;"<?php }?>>
<div class="s5_vmdetails_mr">
<div id="tab_s5_ts_bottom" style="font-size:100%; clear:both;padding:12px;padding-bottom:9px">
<div style="display:none;text-align:left;padding-left:7px;" class="s5_div_ts" id="tab_s5_div_ts1" style="color:#000000;">
<?php echo $related_products ?>
</div>
<div style="display:none;text-align:left;padding-left:7px;" class="s5_div_ts" id="tab_s5_div_ts2" style="color:#000000;">
<?php echo $product_reviews ?>
<br/><br/>
<?php echo $product_reviewform ?>
</div>
<div style="display:none;text-align:left;padding-left:7px;" class="s5_div_ts" id="tab_s5_div_ts3" style="color:#000000;">
<?php 
  
if( $this->get_cfg'showAvailability' )) {
   echo $product_availability
   }
   ?>

</div>
<div style="display:none;text-align:left;padding-left:7px;" class="s5_div_ts" id="tab_s5_div_ts4" style="color:#000000;">

<?php
if( !empty( $navigation_childlist )) { ?>

<?php echo $VM_LANG->_('PHPSHOP_MORE_CATEGORIES'?><br />
<?php echo $navigation_childlist ?><br style="clear:both"/>
<?php 
?>

</div>
<div style="display:none;text-align:left;padding-left:7px;" class="s5_div_ts" id="tab_s5_div_ts5" style="color:#000000;">

<?php 
if( !empty( $recent_products )) { ?>

<div class="vmRecent">
<?php echo $recent_products?>
</div>
<?php 
}?>

</div>
</div>
<div id="tab_s5_ts_bottom_wrapper" style="height:12px">
</div>



</div>
</div>


<div class="s5_vmdetails_bm">
<div class="s5_vmdetails_bl"></div>
<div class="s5_vmdetails_br"></div>
<div style="clear:both;"></div>
</div>
Logged

Jonah Hall
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
adadeacon
Jr. Member
**
Offline Offline

Posts: 50



« Reply #2 on: June 22, 2011, 12:33:32 AM »

Thank you very much, it worked perfectly :-)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.