scottgraves Posted September 17, 2011 Share Posted September 17, 2011 Is there a way to show the texture images in the backoffice when looking at the group list instead of the little color boxes....I have images in there and they show up if I go into each color's detail, but it doesn't help much when looking at the whole list as they all show up as little white boxes.... Any help would be greatly appreciated.... Link to comment Share on other sites More sharing options...
scottgraves Posted September 26, 2011 Author Share Posted September 26, 2011 I'm bumping this because I know that other people are having this problem and that someone can answer this.... Link to comment Share on other sites More sharing options...
tomerg3 Posted September 26, 2011 Share Posted September 26, 2011 You can add that as a suggestion to PS, but that may take a while to do. You can hire a developer to make that change for you, it should probably be only a few hours to do. Link to comment Share on other sites More sharing options...
scottgraves Posted September 26, 2011 Author Share Posted September 26, 2011 I solved this myself today....I'll explain but keep in mind, you should backup any of these files before you change anything. This code modifies the AdminAttributesGroups.php file in your admin/tabs/ directory. this is a hard code fix for my particular installation...yours may vary. starting at line 140 in admin/tabs/AdminAttributesGroups.php <td> '.($tr['is_color_group'] ? '<div style="float: left; width: 50px; height: 50px; border: 1px solid #996633; background-color: '.$attribute['color'].'; background-image: url(../img/co/'.$attribute['id_attribute'].'.jpg); margin-right: 4px;"></div>' : '') .$attribute['name'].' </td> If you have a texture loaded, it will show....If not, the color will show. Just resize the width/height in the DIV tag. NOTE: It will not resize the texture image, so you'll basically see a crop of the texture you uploaded, starting from the upper left of the original sized texture image, at the size you specified in the DIV. Make sure the path after the background-image tag points to your particular image directory (imgs/co). Link to comment Share on other sites More sharing options...
scottgraves Posted October 6, 2011 Author Share Posted October 6, 2011 I just wanted to add that in CSS 3 you can add: background-size: 50px 50px; this goes in the div tag These are in pixels, match them to the size you used for the div Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now