Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / attributes layout- putting a <br /> before a specific attribute

attributes layout- putting a <br /> before a specific attribute

Locked

Views: 974

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
9 Jul 2007, 9:02 PM
#1
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

attributes layout- putting a <br /> before a specific attribute

ok, i know this is a php-intensive question, and its possible i may need to hire somone to help me with this b/c its super specific, but I thought I'd ask here first:

A while ago I went to great lengths to remove the automatic break after each product attribute name/option because I thought the layout looked better without them. Now, I have a situation where I need to put a break before my 2nd to last attribute option so that my last 2 options appear on the same line.

Is this possible?

current setup: http://bridgetbullentemp.dreamhosters.com/zencart/index.php?main_page=product_info&cPath=1&products_id=13

preferred setup:

10 Jul 2007, 1:50 PM
#2
mellonade avatar

mellonade

New Zenner

Join Date:
Apr 2007
Posts:
69
Plugin Contributions:
0

Re: attributes layout- putting a <br /> before a specific attribute

im hoping this is a little bit closer...

in includes/modules/attributes.php, i found this section of code at line 226:

 switch ($products_options_names->fields['products_options_images_style']) {
                      case '0':
                      $tmp_radio .= zen_draw_radio_field('id[' . $products_options_names->fields['products_options_id'] . ']', $products_options_value_id, $selected_attribute, 'id="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '"') . '<label class="attribsRadioButton zero" for="' . 'attrib-' . $products_options_names->fields['products_options_id'] . '-' . $products_options_value_id . '">' . $products_options_details . '</label><br />' . "\n";
                      break;

its where the cases start for the radio buttons. now, because these are the only radio buttons i'll be offering, i thought i might be able to insert a break somewhere in here. i tried putting a <br class="clearBoth">. after $tmp_radio .= and it didnt do much.

i also tried, in my css, using #attrib-9-126 {clear:both}, which is the specific attribute id for that first radio button, and again nada

not sure if im on the right track, or if this is a hopeless endeavor...