Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

products attributes


lindy

Recommended Posts

Is there a way to make all of the product attribute drop down menus the same size? As default, they are as long as the longest word in the option. I have some attributes where the longest option is only 4 letters long and others where there are 40 letters, so the attrributes sections on the product info pages look really messy.

 

Can you help me clean it up?

 

Thanks,

Linda

Link to comment
Share on other sites

Is there a way to make all of the product attribute drop down menus the same size? As default, they are as long as the longest word in the option. I have some attributes where the longest option is only 4 letters long and others where there are 40 letters, so the attrributes sections on the product info pages look really messy.

Can you help me clean it up?

 

You can pass in a width parameter using CSS into the product_info.php file.

 

At about line : 166, change this :

<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>

 

to this :

<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, 'STYLE="width: 300px";'); ?></td>

 

Where 300px is the width definition( Obviously) :blush:

 

 

david

Link to comment
Share on other sites

You can pass in a width parameter using CSS into the product_info.php file.

 

At about line : 166, change this :

<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>

 

to this :

<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, 'STYLE="width: 300px";'); ?></td>

 

Where 300px is the width definition( Obviously) :blush:

david

 

 

Thanks so much! That works perfectly!

 

Linda

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...