I have 2 sections, Availability, and Average Delivery that always show on my specifications table even if I have no others set. It is hard coded in the product template and then the other specs pull from the database is normal. Everything is showing except for my headings are foobared and I cannot figure out why.
See screen shot for how it is displaying right now, but:
"Availability & Delivery" should be where "Stone Properties" is and the "Stone Properties" heading should be above the "Amethyst" section. (stone properties & amethyst as well as everything below is is coming from the database as it should be from the for each attribute section in the code. For some reason, the theads are just not where they are supposed to be and it's been bugging the crap out of me!!
Code: Select all
<div class="tab-pane" id="tab-specification">
<table class="table table-bordered" style="width:100%;overflow-y:auto;>
<thead>
<tr>
<td colspan="2"><strong>Availability & Delivery</strong></td>
</tr>
</thead>
<tbody>
<tr>
<td>Availability:</td>
<td>Inventory is updated regularly and will be shown above with any sizes/colors/items out of stock indicated. Not all manufacturers provide inventory data and even in stock items can be sold out without notice. Items not shown out of stock are normally available. We will notify you of any out of stock items as soon as possible or you can contact us in advance of placing your order to verify availability. </td>
</tr>
<tr>
<td>*Average Delivery:</td>
<td>The average delivery time for delivery within the United States via Standard or Free Shipping. Deliveries outside the US will on average take an additional 10-15 days based on destination country and customs both in the US and at the destination. International deliveries may have additional import duties, taxes, or fees imposed before delivery that we cannot charge or estimate - contact your local customs office for information. <br/><br/>
Note: This is the average, estimated time for delivery and is subject to availability, seasonal sales volume, and other potential, unforeseen delays. If you must have an item by a specific date, be sure to include that date in your cart comments when checking out.</td>
</tr>
</tbody>
<?php foreach ($attribute_groups as $attribute_group) { ?>
<thead>
<tr>
<td colspan="2"><strong><?php echo $attribute_group['name']; ?></strong></td>
</tr>
</thead>
<tbody>
<?php foreach ($attribute_group['attribute'] as $attribute) { ?>
<tr>
<td><?php echo $attribute['name']; ?></td>
<td><?php echo $attribute['text']; ?></td>
</tr>
<?php } ?>
</tbody>
<?php } ?>
</table>
</div>