My example shows how 14 different Attribute Options become presented:
[img]http://candybond.com/images/noattributes.gif[/img]
This is how the 14 Attributes look with my Fix:[img]http://candybond.com/images/yesattributes-fixed.gif[/img]
THE FIXINSERT this code at approx. line 128 (Before <table border="0" cellspacing="0" cellpadding="2">):
<!-- Organize Attribute into Columns Fix Opens Here --><?php $attribute_count = 1; ?><!-- Organize Attribute into Colums Fix Closes Here -->REPLACE THIS CODE at approx. Line 150:
<tr>
<td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
<td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td>
</tr>
WITH THIS CODE:<!-- Organize Attribute into Columns Fix Opens Here -->
<td class="main"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
<td class="main"><?php echo tep_draw_pull_down_menu('id[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td>
<?php
if ($attribute_count == 1){
echo "<td width=7%></td>";
$attribute_count = $attribute_count + 1;}
elseif ($attribute_count == 2){
echo "</tr>";
$attribute_count = $attribute_count - 1;}
?><!-- Organize Attribute into Columns Fix Closes Here -->
Thats it!
This code fixed the Attributes for all of my products... ...And I haven't seen anybody give it out yet.
{My first php fix. Please tell me what you think}















