by ShopSite Lauren » Thu Aug 25, 2011 11:37 am
I would setup your product DIVs so that the height is the standard height for the tallest product (maybe not THE tallest if the tallest is more of an odd-man-out). What I often do is have each section in a span, a, or another div that I can control. A typical layout is graphic, name, price, description, add, in descending order. So with that setup, I would setup IF/END_IF tags in the template so that if the product more information page is turned on, then the graphic and the name have a hyperlink with a class around them. I can control the height of that hyperlink by making it a block (display: block;) and setting dimensions. that way if a graphic is way too large, or if the product name is way too long, the additional text or image is hidden...it won't go bigger than what I set for the hyperlink. If there is no more information page turned on, then I use a span and give that the same class. I use the resize image feature in ShopSite, so I can expect a certain size image so the image block isn't really a problem. With product names, I typically set it up so that there can be 2 lines of name text, and the rest overflows and is hidden. I do the same for the product description. I put the description in a div or a span, make the text smaller, and only allow 3 - 5 lines depending on the layout. For the product price, I give the span enough space to always have room for the product sale price. That way, if a product with a sale price is next to a product without a sale price, the add to cart buttons will still line up, there will just be an empty line where the sale price would be if the product without a sale price had a sale price.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.