I've searched the forum here for a while and can't find an answer to this (or a contributed module) so I thought I'd ask the question. If I used the wrong words please direct me to the answer :-)
Now, I love CSS. I want to layout every detail of my site using CSS but I'm finding it a little tough. For example: In the product listing zen outputs the following html:
What I really want is more classes/spans/divs in there by default. For example:HTML Code:<tr class="productListing-odd"> <td class="productListing-data" align="center"><a href="http://www.mysite.co.uk/index.php?main_page=document_general_info&cPath=10&products_id=1040"><img src="images/noimg.JPG" alt="Full Height Base Units" title=" Full Height Base Units " width="100" height="80" class="listingProductImage" /></a></td> <td class="productListing-data"><h3 class="itemTitle"><a href="http://www.mysite.co.uk/index.php?main_page=document_general_info&cPath=10&products_id=1040">Full Height Base Units</a></h3><div class="listingDescription">Full Height Base Units available in different sizes.</div></td> <td class="productListing-data" align="right"><br /><br /><a href="http://www.mysite.co.uk/index.php?main_page=document_general_info&cPath=10&products_id=1040">... more info</a><br /><br /></td> </tr>
Simply adding a style over the whole row with (for example) the product ID built automatically into the class name means I can always make certain products look certain ways - even though they share the same core features zen cart provides (like write a review, displaying the image and so on). This could also be applied to other things as well, for example, the product type.HTML Code:<span class="listingprodid1040"> <tr class="productListing-odd"> <td class="productListing-data" align="center"><a href="http://www.mysite.co.uk/index.php?main_page=document_general_info&cPath=10&products_id=1040"><img src="images/noimg.JPG" alt="Full Height Base Units" title=" Full Height Base Units " width="100" height="80" class="listingProductImage" /></a></td> <td class="productListing-data"><h3 class="itemTitle"><a href="http://www.mysite.co.uk/index.php?main_page=document_general_info&cPath=10&products_id=1040">Full Height Base Units</a></h3><div class="listingDescription">Full Height Base Units available in different sizes.</div></td> <td class="productListing-data" align="right"><br /><br /><a href="http://www.mysite.co.uk/index.php?main_page=document_general_info&cPath=10&products_id=1040">... more info</a><br /><br /></td> </tr> </span>
So, to do this I can quite easily go and rewrite the PHP that generates the product listing and add the tags I want BUT I'd rather not go rewriting scripts if it's already been done and I just haven't found the zen way.
Further, if it hasn't been done, is it something that others would fine useful? In which case perhaps someone can point me the write way to contributing my alterations back?
Many Thanks
Steve
http://www.kinsbury.co.uk




