Forum Support

 
Advanced Search


[1]

Offline adadeacon
Free Member
Posts: 50
Posted 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

Offline jonahh
Free Member
Posts: 23789 WWW
Posted 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

Offline adadeacon
Free Member
Posts: 50
Posted on: June 22, 2011, 12:33:32 AM

Thank you very much, it worked perfectly :-)
Logged
[1]

Jump to:  


Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Page created in 0.023 seconds with 21 queries.
Need some help getting your site up and running? Be sure to check out our tutorials area, post on the forum or hire us
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.