Forums / Templates, Stylesheets, Page Layout / Display-only attributes: show side by side?

Display-only attributes: show side by side?

Started by cosmocanuck on 27 Sep 2006, 10:16 PM · Views: 2,913

Results 1 to 5 of 5
27 Sep 2006, 10:16 PM
#1
cosmocanuck avatar

cosmocanuck

New Zenner

Join Date:
Jun 2006
Posts:
85
Plugin Contributions:
0

Display-only attributes: show side by side?

I asked this question earlier but perhaps this is a better way to put it. (No replies yet...)

I see that when I have multiple display-only attributes, they're listed vertically - after the option's name. Thus:

       S
Sizes  M
       L
       XL

But I need them to display this way:

Sizes: S, M, L, XL

This is a "showcase" cart so this sort of text-only display is what I need. There are actually two lines of info, - "Sizes" and "Colours" - and I need 'em one right above the other, nice and compact.

Any hints much appreciated!

Thanks,
Adam

27 Sep 2006, 11:24 PM
#2
cosmocanuck avatar

cosmocanuck

New Zenner

Join Date:
Jun 2006
Posts:
85
Plugin Contributions:
0

Re: Display-only attributes: show side by side?

I found the answer - in case anyone else wonders...

It was in includes/modules/attributes.php - the file that actually produces the attributes list.

I went through it carefully with a fine tooth comb and found a "<br />" that simply needed to be changed to a ", ".

Voila!

Of course I made the change in my own copy of the file located at:

includes/modules/MY_TEMPLATE/attributes.php

  • adam
20 May 2008, 2:23 PM
#3
runoka avatar

runoka

New Zenner

Join Date:
May 2008
Location:
Orlando, FL
Posts:
96
Plugin Contributions:
0

Re: Display-only attributes: show side by side?

which "<br />" changed to a ", "
there are lots of "<br />" in that file!
thanks

6 Jun 2008, 5:31 PM
#4
syk_skillz avatar

syk_skillz

New Zenner

Join Date:
Jun 2008
Posts:
1
Plugin Contributions:
0

Re: Display-only attributes: show side by side?

I also need to know which <br/> to change.

20 Mar 2011, 3:29 AM
#5
jaymisdesigns avatar

jaymisdesigns

New Zenner

Join Date:
Mar 2011
Posts:
1
Plugin Contributions:
0

Re: Display-only attributes: show side by side?

Ok, check it all. I have looked and scoured for the answer to this question: How to put the attributes into two columns or side by side as opposed to the daunting file line. If you use the zip file offered in that attached file that I downloaded from another solution page.

Then go in and replace every instance of this: <br class="clearBoth" /> with this: <br class="," />

As mentioned above, only it is every instance rather than one. I found three total and it worked perfectly! Of course I also implemented an earlier suggestion I found that mentioned to modify the attibute sort order by starting with the number "2" (so now I am skipping/not using "1" or "0" as a sort order).

Now who's to say which solution is the one or if it is a combination of the three, but either way, the end result did exactly what I wanted resulting with my attributes in two columns. Success at last!