Post by chokoret » Fri Jul 22, 2011 6:20 am

I want additional images from product info to be placed on the right side of main thumb photo instead of being on bottom like the image below...
Help Please ><

Attachments

addimg.png

addimg.png (70.87 KiB) Viewed 3100 times

Last edited by chokoret on Sun Jul 24, 2011 4:13 pm, edited 1 time in total.

User avatar
New member

Posts

Joined
Thu Jun 09, 2011 1:26 am
Location - Los Angeles, CA

Post by chokoret » Sun Jul 24, 2011 7:09 am

please..? :'(

User avatar
New member

Posts

Joined
Thu Jun 09, 2011 1:26 am
Location - Los Angeles, CA

Post by rph » Sun Jul 24, 2011 2:08 pm

System->Settings->Edit->Image->Product Image Thumb Size->140x140

/catalog/view/theme/default/stylesheet/stylesheet.css

Code: Select all

.product-info .image-additional {
	width: 260px;
	margin-left: -10px;
	clear: both;
	overflow: hidden;
}
.product-info .image-additional img {
	border: 1px solid #E7E7E7;
}
.product-info .image-additional a {
	float: left;
	display: block;
	margin-left: 10px;
	margin-bottom: 10px;
}
to

Code: Select all

/*.product-info .image-additional {
	width: 260px;
	margin-left: -10px;
	clear: both;
	overflow: hidden;
}*/
.product-info .image-additional img {
	border: 1px solid #E7E7E7;
}
.product-info .image-additional a {
	float: right;
	display: block;
	margin-left: 10px;
	margin-bottom: 10px;
}
I highly recommend getting Firebug. It will help with simple changes like this.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by chokoret » Sun Jul 24, 2011 4:12 pm

Thank you!!! but your css code above could move additional images to the right but not in vertical way.

But i could got hint from your help, changed it as

Code: Select all

.product-info .image-additional {
	width: 150px;
	margin-top: -10px;
	overflow: hidden;
}
.product-info .image-additional img {
	border: 1px solid #222;
}
.product-info .image-additional a {
	float: right;
	display: block;
	margin-top: 10px;
	margin-bottom: 10px;
}
Thank you for your help and intro to firebug. Awsome!!!

User avatar
New member

Posts

Joined
Thu Jun 09, 2011 1:26 am
Location - Los Angeles, CA

Post by rph » Sun Jul 24, 2011 5:46 pm

That'll only work in some older versions of IE (unless you have some other CSS). It doesn't work in Firefox and Chrome. I think I just missed adding a width to the left div container:

Code: Select all

.product-info > .left {
	float: left;
	margin-right: 15px;
	width: 260px;
}

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska

Post by chokoret » Sun Jul 24, 2011 5:52 pm

oh, right...i only tested in my browser and didn't think of other broswers...
I re-did it in your way with the width change you just posted and it works just great in both IE and firefox :)
Thank you!!!

User avatar
New member

Posts

Joined
Thu Jun 09, 2011 1:26 am
Location - Los Angeles, CA

Post by GreekOC » Wed Jul 27, 2016 6:41 pm

Hi Guys, can make possible this change on OC.2.?

Newbie

Posts

Joined
Wed Jul 27, 2016 6:36 pm
Who is online

Users browsing this forum: No registered users and 6 guests