archosaur2

custom_product_tab opencart

Jan 28th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.03 KB | None | 0 0
  1. custom_product_tab.xml
  2.  
  3.   <file name="catalog/view/theme/althaina/template/product/product.tpl">
  4.         <operation>
  5.             <search position="replace"><![CDATA[
  6.             <div id="tabs" class="htabs">
  7.             ]]></search>
  8.             <add><![CDATA[
  9.     <?php if ($cpt_show) { ?>
  10.     <?php $custom_tab_count = 0; ?>
  11.  
  12.     <?php if ($products) { ?>
  13.     <a href="#tab-related"><?php echo $tab_related; ?> (<?php echo count($products); ?>)</a>
  14.     <?php } ?>
  15. #################################################################################
  16. product.tpl
  17.  <div id="tabs" class="htabs">
  18.   <a href="#tab-description"><?php echo $tab_description; ?></a>
  19.     <?php if ($attribute_groups) { ?>
  20.     <a href="#tab-attribute"><?php echo $tab_attribute; ?></a>
  21.     <?php } ?>
  22.     <?php if ($review_status) { ?>
  23.     <a href="#tab-review"><?php echo $tab_review; ?></a>
  24.     <?php } ?>
  25.     <?php if ($products) { ?>
  26.     <a href="#tab-related"><?php echo $tab_related; ?> (<?php echo count($products); ?>)</a>
  27.     <?php } ?>
  28.   </div>
Advertisement
Add Comment
Please, Sign In to add comment