Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Display product attributes in two columns (side by side)

Display product attributes in two columns (side by side)

Locked

Views: 31,815

Results 21 to 40 of 73
This thread is locked. New replies are disabled.
27 Feb 2008, 2:34 PM
#21
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Display product attributes in two columns (side by side)

rwoody:

You are correct, thus the reason in my first post I admitted I was off topic, but you folks were soooo close to my issue at the time, I just had to jump in.

Thanks for the kudos on the site. I have to tell you this has been "the" most challenging design I've ever done. Each of the main cats have a different flash image so it was really tough to come up with a way to make that happen. Waaaaay too many categories to even try to use individual style sheets and that really wouldn't have helped load all those flash modules. The different flash headers is definitely what I noticed, and I would love to know your "secret" for pulling it off.. So don't be surprised if you get a PM from me begging you to share your "recipe" :laugh:

rwoody:

Take care and thanks again for the mod. I did grab it for another site that I'm building and it works perrrrrrrfect !!! :smile:Glad ya liked it.. :smile:

27 Feb 2008, 6:20 PM
#22
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Display product attributes in two columns (side by side)

I'll be looking forward to it. I will warn you, it is not for the faint of heart (the design, that is)...LOL But it works amazingly well.:D

Take care

Ruth

28 Feb 2008, 1:33 AM
#23
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Display product attributes in two columns (side by side)

rwoody:

I'll be looking forward to it. I will warn you, it is not for the faint of heart (the design, that is)...LOL But it works amazingly well.:D

Take care

RuthI can imagine.. Plus I NEED you to tell me how you got an animated favicon..

Now if this is something EVERYONE knows, then I apologize for being the one dense kid:blush:.. But I still have your site up just 'cause I'm FASCINATED!!!:laugh::laugh:

28 Feb 2008, 6:03 AM
#24
rwoody avatar

rwoody

Totally Zenned

Join Date:
Aug 2004
Location:
Fountain Hills, AZ
Posts:
476
Plugin Contributions:
0

Re: Display product attributes in two columns (side by side)

Isn't that just the coolist little thingy you've ever seen? Problem is if you're in IE it isn't showing up, so I have to play with that. I found this when I was out doing research and saved it for later...here you go favicons You just have to create your original graphic as always to use for this.

I'll give you a clue or if you have FF tools you'll get an even bigger clue...but there is "no" header file in this design.....:lookaroun

22 Mar 2008, 3:55 PM
#25
aga avatar

aga

New Zenner

Join Date:
Mar 2008
Posts:
2
Plugin Contributions:
0

Re: Display product attributes in two columns (side by side)

how can i add another column? i tried messing around with the code but i had no success. also i would like the atribute value to be on on the same row with the atribute name...

13 May 2008, 2:47 AM
#26
roy_irishtaxi avatar

roy_irishtaxi

New Zenner

Join Date:
May 2008
Posts:
11
Plugin Contributions:
0

Re: Display product attributes in two columns (side by side)

Thank you! just what I needed!:clap:

13 May 2008, 4:42 AM
#27
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Display product attributes in two columns (side by side)

AgA:

how can i add another column? i tried messing around with the code but i had no success. also i would like the atribute value to be on on the same row with the atribute name...I wish I could help.. I didn't make this modification, a programmer friend of mine did this for me.. I just decided to share it with the community..

roy(irishtaxi):

Thank you! just what I needed!:clap:You are very welcome.. Glad it worked for you..

1 Jun 2008, 8:09 PM
#28
divani avatar

divani

New Zenner

Join Date:
May 2008
Location:
Foxburg, PA
Posts:
13
Plugin Contributions:
0

Re: Display product attributes in two columns (side by side)

Hi All,

Forgive me if my understanding of the requirement here is incorrect but the ability to specify number of columns for attribute images comes with Zen Cart (I use 1.3.8a).

This has already been discussed in this post.

Regards,
Vab

2 Jun 2008, 2:03 AM
#29
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Display product attributes in two columns (side by side)

You need to read through this post again.. Your understanding of the requirement here is indeed incorrect.. I have explained what this mod does and what the before and after result looks like including sample sites so that it's clear.. This mod is not about the attribute IMAGES. I am very much aware that the ability to specify columns for attribute IMAGES is built in.. This mod is about the ATTRIBUTES themselves as a distinct entity..

As you may be aware, attributes only appear in one vertical stack. You add one and it appears... You add more, and they appear one right below the last.. This mod puts them in two columns side by side.. Nothing more.. Nothing less..

7 Jun 2008, 1:56 PM
#30
osmith avatar

osmith

New Zenner

Join Date:
Oct 2007
Posts:
31
Plugin Contributions:
0

Re: Display product attributes in two columns (side by side)

I LOVE this! Thank you so much! I have a small problem and it is because of my lack of any knowledge when it comes to building websites, CSS, PHP, etc...everything I have learned has been from these forums and the wonderful people that support them!:thumbsup:

When I did this, I now have my image on top of one of the columns, can you tell me how to fix this? I tried using FF web developer to find the coding in the CSS, but it told me no style information.

Site Here

I am still working on the site, and now I need to go in and fix the sort order according to your mod...so please forgive me as you look at it.

Thanks again!!!

7 Jun 2008, 3:48 PM
#31
osmith avatar

osmith

New Zenner

Join Date:
Oct 2007
Posts:
31
Plugin Contributions:
0

Re: Display product attributes in two columns (side by side)

ok...I spoke too soon. :blush: I went in and saw that the attributes are in a table, so I changed the table to 70% and voila! It worked. No more attributes hiding behind images.

Onto my next problem...the sort order does not seem to work. I have assigned an odd sort order number to all of the option names except the "click here to preview." The names are still in the original order, going from l-r then next row, l-r, etc...

What am I doing wrong? Cleared the cache and refreshed the page...still no change.

Thanks!:smile:

8 Jun 2008, 6:29 AM
#32
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Display product attributes in two columns (side by side)

I have to be perfectly honest I cannot tell you why the sort order is working for you the way it is.. I am not a programmer, and had to have someone who knows PHP work this mod out for me.. I decided to share it with the community in case there were others who could benefit from it.. I had a very specific requirement in that I simple wanted the attributes to appear in two columns.. I never tested it to see if it would work the way you are using it.. (All attributes except one in one column)

16 Jun 2008, 4:14 AM
#33
moebiusenterprises avatar

moebiusenterprises

Zen Follower

Join Date:
May 2005
Location:
Phoenix Arizona (whew!)
Posts:
167
Plugin Contributions:
0

Re: Display product attributes in two columns (side by side)

Ok, trying to follow this (and not a programmer either), but will it work in 1.3.8? I really need something to wrangle lists of attributes (mostly color swatches)... Thanks!

16 Jun 2008, 6:15 AM
#34
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Display product attributes in two columns (side by side)

If you are looking to put attributes in two columns then yes this will work in 1.3.7 & 1.3.8 (I have used it in both) BUT as I have stated previously, if you are talking about putting attribute VALUES in two columns Zen Cart supports this in the attribute management (from the admin)..

18 Jun 2008, 4:37 AM
#35
moebiusenterprises avatar

moebiusenterprises

Zen Follower

Join Date:
May 2005
Location:
Phoenix Arizona (whew!)
Posts:
167
Plugin Contributions:
0

Re: Display product attributes in two columns (side by side)

Looking at your site, I think my problem is I need the attribute selections (radio buttons) to do something other than a single column.

18 Jun 2008, 3:20 PM
#36
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Display product attributes in two columns (side by side)

You are speaking of attribute VALUES. Remember an attribute has an attribute NAME and a set of 1 or more attribute VALUES.. Using an example from your site "Metal" is the attribute NAME". While Sterling Silver" & "Bronze" are the attribute VALUES.

Zen Cart natively supports putting the values in one or more columns using the attribute management. (from the store admin)

18 Jun 2008, 6:36 PM
#37
moebiusenterprises avatar

moebiusenterprises

Zen Follower

Join Date:
May 2005
Location:
Phoenix Arizona (whew!)
Posts:
167
Plugin Contributions:
0

Re: Display product attributes in two columns (side by side)

DivaVocals:

You are speaking of attribute VALUES. Remember an attribute has an attribute NAME and a set of 1 or more attribute VALUES.. Using an example from your site "Metal" is the attribute NAME". While Sterling Silver" & "Bronze" are the attribute VALUES.

Zen Cart natively supports putting the values in one or more columns using the attribute management. (from the store admin)

Yes, but that only works for text attributes, not text plus image. :
http://moebiusenterprises.com/shop/index.php?main_page=product_info&cPath=49_53_146&products_id=1105

I need to put these in some other order than one long, annoying column.

:dontgetit

19 Jun 2008, 1:21 AM
#38
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Display product attributes in two columns (side by side)

Moebiusenterprises:

Yes, but that only works for text attributes, not text plus image. :
http://moebiusenterprises.com/shop/index.php?main_page=product_info&cPath=49_53_146&products_id=1105

I need to put these in some other order than one long, annoying column.

:dontgetitThe attribute controller features allows you to put text values as well as text values+value images into columns.. I believe you are misunderstanding how the attribute value function works.. It's a common misunderstanding and the though UI is not completely straightforward it has a few clues to indicate that this can be done..:cool:

Please see page 1 of this post.. Another poster kinda explains this, and included a screenshot of the Zen Cart admin screen which shows how you can do both.. (http://www.zen-cart.com/forum/showpost.php?p=483197&postcount=8)

I just tried it on my test site, and it does indeed work.. Please see my two test product links and you can see this implemented both ways:

Attributes with value images in two columns
http://clients.overthehillweb.com/mymaneattractions/index.php?main_page=product_info&cPath=1&products_id=33

Attributes without value images in two columns
http://clients.overthehillweb.com/mymaneattractions/index.php?main_page=product_info&cPath=1&products_id=27

19 Jun 2008, 1:23 AM
#39
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Display product attributes in two columns (side by side)

Since some of this post is a little off topic from what my mod actually does, I thought I should re-iterate what my OP does for anyone else reading this thread.. My mod only takes the attribute name+value combo (with or without value images) and puts them into two columns..

ZenCart NATIVELY supports putting the attribute values (with or without images) into two columns. The links above show this in action WITHIN my mod. This is what the admin section that supports this looks like: http://www.zen-cart.com/forum/attachment.php?attachmentid=3149&d=1199347360

For more info on how attributes are managed/structured in Zen Cart please see: https://www.zen-cart.com/tutorials/index.php?article=57

28 Oct 2008, 6:15 AM
#40
jbraz avatar

jbraz

New Zenner

Join Date:
Mar 2007
Posts:
59
Plugin Contributions:
0

Re: Display product attributes in two columns (side by side)

Ok, I have gone to Option Name Manager and edited it and set the Attribute Images per Row to 3 but still it only does one loooooooong column of image swatches. Anyone have any idea why ? Here is the page I mean, if you look at the matt color options, I want them to line up in rows of 3 instead of one long single column. Is there something else I am missing ? This is the first time I have really had to add attribute images.

http://skrappin.com/~skrappin/shop/index.php?main_page=product_info&cPath=109&products_id=290

Tia !!!