Forums / Setting Up Categories, Products, Attributes / Attribute image display in rows?

Attribute image display in rows?

Locked

Started by sixlizards on 15 Jun 2006, 2:31 PM · Views: 7,484

Results 1 to 20 of 24
This thread is locked. New replies are disabled.
15 Jun 2006, 2:31 PM
#1
sixlizards avatar

sixlizards

New Zenner

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

Attribute image display in rows?

I'm trying to get attribute images to display in rows and columns rather than in a single column down the middle. I have played with the stylesheet with no luck - according to some posts this is a setting in the admin but I can't find it - in my "Attribute Settings" section there is only "enable attribute images". Please help!

16 Jun 2006, 2:51 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute image display in rows?

Look in you admin > images > for Product Info - Number of Additional Images per Row

And set to the desired #. See if that is what you are seeking

Zen-Venom Get Bitten

16 Jun 2006, 4:04 PM
#3
sixlizards avatar

sixlizards

New Zenner

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

Re: Attribute image display in rows?

Hello -
no, that setting didn't help - someone said it may be a float tag in css but I haven't been able to get them to work. It is the attribute images specifically, not additional product images. Thanks. - Alice

16 Jun 2006, 5:13 PM
#4
sanguisdesign avatar

sanguisdesign

Inactive

Join Date:
May 2005
Location:
Western MA, USA
Posts:
588
Plugin Contributions:
1

Re: Attribute image display in rows?

you know I would like to do the same thing, nad I am willing to do the foot work to figure it out. but first things first. I am pretty sure that sixlizards and I dont have the save ver of zen cart running as the site I am working on, I took over for another guy and it is ver Zen Cart 1.2.1 and if it did not have heavey mods that I dont have the budget to reintergrate I would.
but any ways I need to know where the var, $options_attributes_image[$i] is defined, I tried greping but aperanyl not vert well, could the masters help me out and I will be on my way to makeing horazontal atribute images w/ a lager image pop up

thanx
JOsh

JOsh Beauregard
Sanguis Development

19 Jun 2006, 2:35 PM
#5
sixlizards avatar

sixlizards

New Zenner

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

Re: Attribute image display in rows?

Fixed it! in includes/modules/attributes.php, on line 418 or so, there is a <br clear="all" tag - take it out! Then the float specs will indeed work, and everything lines up in happy rows. hope this is helpful to other people!
http://www.zen-cart.com/forum/images/smilies/happy.gif

19 Jun 2006, 6:49 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute image display in rows?

Sometime do a fresh install of Zen Cart v1.3.0.1 into a test directory into a test database and load the demo data ...

This is managed in the Option Name setting when you edit this ...

If it is not working ... then I would suspect an issue in the stylesheet may also be a problem here ...

I have not been able to reproduce this error in a clean install ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Jun 2006, 6:54 PM
#7
sixlizards avatar

sixlizards

New Zenner

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

Re: Attribute image display in rows?

Yeah, I just DID a complete upgrade to 1.3.1 after someone suggested that would fix the problem.
It didn't.
It does make sense, though, that a float tag will get overridden by a br clear=all tag.

19 Jun 2006, 6:56 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute image display in rows?

Are you using a clean install and the demo data in a test directory and database or just an upgrade and your existing template and stylesheet?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

25 Jun 2006, 6:04 AM
#9
bigmoof avatar

bigmoof

New Zenner

Join Date:
Jun 2006
Location:
Toronto
Posts:
1
Plugin Contributions:
0

Re: Attribute image display in rows?

Ajeh:

Are you using a clean install and the demo data in a test directory and database or just an upgrade and your existing template and stylesheet?

Setting "Attribute Images per Row" under Option Name Edit WORKS on an upgrade install with customized template.

Now the question is, can I get _MED and _LRG images works as well for these attribute images?

27 Jun 2006, 6:51 AM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Attribute image display in rows?

Now the question is, can I get _MED and _LRG images works as well for these attribute images?
if you are naming the images correctly and locating them in the correct folders this should be automatic or a bit of Zen Majik.

Zen-Venom Get Bitten

29 Jun 2006, 11:04 PM
#11
rombout avatar

rombout

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Attribute image display in rows?

the setting for attribute images in a row is in the admin:

catalog -> option name manager

edit your option name, and look for

Attribute Images per Row:
and
Attribute Style for Radio Buttons/Checkbox:

For me, the attribute style 4 works nicely.

Yes, these options are somewhat hard to find; it took me a full hour. :sleepy:

29 Jun 2006, 11:36 PM
#12
rombout avatar

rombout

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Attribute image display in rows?

Ajeh:

Sometime do a fresh install of Zen Cart v1.3.0.1 into a test directory into a test database and load the demo data ...

**This is managed in the Option Name setting when you edit this ... **

If it is not working ... then I would suspect an issue in the stylesheet may also be a problem here ...

I have not been able to reproduce this error in a clean install ...

Ah, Ajeh actually said so. Time to get some sleep. :blush:

3 Jul 2006, 6:50 AM
#13
isaiah36 avatar

isaiah36

Zen Follower

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

Re: Attribute image display in rows?

Hi - this thread helped me to setup this page as a zen cart newbie
http://rastaheadwraps.com/index.php?main_page=product_info&cPath=1&products_id=13
Can someone tell me how to make the attribute images resize consistently? looks like the last column expands to fill the remainder of the table width

3 Jul 2006, 7:29 AM
#14
isaiah36 avatar

isaiah36

Zen Follower

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

Re: Attribute image display in rows?

I just realized the issue only occurs with Mozilla Firefox and Apple Safari. In IE the attribute images look consistent, though it seems to be ignoring the resize instruction altogether.

3 Jul 2006, 9:11 PM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Attribute image display in rows?

kobra:

if you are naming the images correctly and locating them in the correct folders this should be automatic or a bit of Zen Majik.

Actually ... I kinda sorta never like got around to making the image magic trick work with the attributes as many had a hard enough time just getting the first image in there let alone work with _MED and _LARGE on Attributes Images ... :cry:

When we get to the extended directory structure on images and downloads etc. we will have to look into extending the use of the Attribute Images ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

3 Jul 2006, 9:47 PM
#16
rombout avatar

rombout

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Attribute image display in rows?

isaiah36:

Hi - this thread helped me to setup this page as a zen cart newbie
http://rastaheadwraps.com/index.php?main_page=product_info&cPath=1&products_id=13
Can someone tell me how to make the attribute images resize consistently? looks like the last column expands to fill the remainder of the table width

in /includes/templates/[your template]/css/stylesheet_new.css look for:

/Attributes/
.attribImg {
width: 20%;
margin: 0.3em 0em;
}

Remove the "width:20%;" and be done with the weird scaling.

3 Jul 2006, 11:00 PM
#17
isaiah36 avatar

isaiah36

Zen Follower

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

Re: Attribute image display in rows?

Thanks Rombout! I have played with that tag some, got it to do some things like make a 3px padding around the img. This Mozilla/Safari rendering discrepancy I have not been able to solve. I even tried giving it a fixed pixel width, but nope, still the same result. Most people use IE so I know its a waste of breath clamouring about this.

Thanks again!

4 Jul 2006, 4:10 PM
#18
rombout avatar

rombout

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Attribute image display in rows?

That is strange... :huh:

I used your stylesheets on my site, and cannot replicate your problem there. I also tested my stylesheets on your page, and they do give the same problem. The only difference I can see now is your Attribute Style. I have Attribute Style 4 (Element Below Image and Option Name), which means that both the radio button and the description are below the image.

Good luck!

5 Jul 2006, 6:41 AM
#19
isaiah36 avatar

isaiah36

Zen Follower

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

Re: Attribute image display in rows?

Rombout, did you test with Firefox and/or Safari? the problem will not replicate in IE - I tried attribute style 4 instead of 3, this made no difference

5 Jul 2006, 8:53 PM
#20
rombout avatar

rombout

New Zenner

Join Date:
May 2006
Posts:
9
Plugin Contributions:
0

Re: Attribute image display in rows?

Isaiah, this should be the problem/solution:

You have both the image width and the attribImg width set to 160. That does not fit! There is also some padding in the attribImg style, so you need more room in attribImg, or have smaller images. I just tried an attribImg width of 170, and that looks fine on your page. :thumbsup:

My test setup: a downloaded copy of your page, viewed with firefox and internet explorer on WinXP.