Product Name Floats in front of Product Image
Posted 29 June 2012 - 11:41 PM
Here's a page of my site with the problem:
I know that my Product Names are pretty long... is that what's causing the problem?
Also, FYI, I completely removed the CSS I'm using and it doesn't fix the problem. This problem was also in effect before I edited the 960 Grid....
Thanks for the help!
Posted 30 June 2012 - 08:28 AM
I am not a coder, so dont bother sending PMs asking for help as you wont get any.
OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
Posted 01 July 2012 - 08:43 PM
Steve, the shop owner didn't like the small images and wanted larger images for his products, so while lowering the image size would have probably worked, it just wasn't acceptable to him.
Multimixer, thanks, that worked! I had to play with it a bit, but finally got things the way I wanted them.
For anyone else looking for an answer to this problem, here are the changes I used:
The file to be changed is actually located in catalog/includes/modules/product_listing.php
In that file, around line 127 you'll see 'PRODUCT_LIST_IMAGE' this is where you make changes to the <td> for your product image. So on the very next line find:
$prod_list_contents .= ' <td align="center">and then 3 more lines down you'll find the exact same code. I changed both of these instances to:
$prod_list_contents .= ' <td align="center" width="180">
This fixed the overlapping problem I was having with the product names over the product image, but then I noticed my changes also forced the product names into too little of a space making some of my product names wrap to 5 lines.
To widen the product name area I found 'PRODUCT_LIST_NAME' around line 104 and changed the following 2 instances of:
$prod_list_contents .= ' <td>to:
$prod_list_contents .= ' <td width="250">
This makes everything look great. There's probably a more elegant way of doing what I needed, but this definitely works (if anyone has a better solution, I'd love to hear it). You may have to play with the width sizes to make this work for your shop, but it shouldn't be too hard to figure out.
Edited by brad11, 01 July 2012 - 08:44 PM.