I am currently trying to get the accordion on the product info pages to work. Has anybody had any success with this?
So far I have tried adding a column to the database in the table product_descriptions titled product_descriptions2. Then I have attempted to use the data from this table in the tpl_product_info.php template in the same way that the first description (product_descriptions) is referenced.
The first tab of the accordion (Product Description):
Code:
<section class="tab-content">
<h3 class="tab"><?php echo TEXT_TAB_ACCORDION_DESCRIPTION; ?></h3>
<!--bof Product description -->
<?php if ($products_description != '') { ?>
<div id="productDescription1" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div>
<?php } ?>
<!--eof Product description -->
</section>
The second tab of the accordion (was called specification, now renamed to Ingredients):
Code:
<section class="tab-content">
<h3 class="tab">INGREDIENTS</h3>
<!--bof Product description2 -->
<div>
<?php if ($products_description2 != '') { ?>
<div id="productDescription2" class="productGeneral biggerText"><?php echo stripslashes($products_description2); ?></div>
<?php } ?>
</div>
<!--eof Product description2 -->
</section>
So far this has not worked, and has only resulted in a blank specifications/ingredients tab.
Any tips on how to get this to work?
Site is at: http://www.akin.co.nz/