Print Page | Close Window

lining up products

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=1844
Printed Date: 23-April-2025 at 7:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: lining up products
Posted By: alltp
Subject: lining up products
Date Posted: 23-July-2008 at 10:08am
our products have different description lengths and in the store they are center justified vertically.  How can I set them to be "top justified" so that products line up more neatly?
 
Here is an example: http://www.alltp.com/shop/pc/viewCategories.asp?idCategory=62 - http://www.alltp.com/shop/pc/viewCategories.asp?idCategory=62
 
Because the first product has a two line description, everything is misaligned.
 
John
http://www.alltp.com - www.alltp.com
http://www.tabletpcbuzz.com - www.tabletpcbuzz.com
 


-------------
John Hill
www.alltp.com



Replies:
Posted By: Planetlava_com
Date Posted: 28-July-2008 at 6:26pm
Around Line 816 in pc/viewcategories.asp
 
find the following...
 
' FIRST STYLE - Show products horizontally, with images
       if pcPageStyle = "h" then %>
        <td>
         <!--#include file="pcShowProductH.asp" -->
        </td>
 
Replace with...
 
' FIRST STYLE - Show products horizontally, with images
       if pcPageStyle = "h" then %>
        <td valign="top">
         <!--#include file="pcShowProductH.asp" -->
        </td>
 
Always remember to back up your files before tinkering...
 
Regards,
Tbone
 


Posted By: Planetlava_com
Date Posted: 28-July-2008 at 6:41pm
If you want to tidy up the search results also...
 
around line 789 in pc/showsearchresults.asp
 
Look For
' FIRST STYLE - Show products horizontally, with images
      if pcPageStyle = "h" then %>
       <td>
        <!--#include file="pcShowProductH.asp" -->
       </td><% i=i + 1
 
Replace with...
' FIRST STYLE - Show products horizontally, with images
      if pcPageStyle = "h" then %>
       <td valign="top">
        <!--#include file="pcShowProductH.asp" -->
       </td><% i=i + 1
 
Remeber to backup...
 
Regards,
Tbone
 


Posted By: alltp
Date Posted: 29-July-2008 at 3:04am
Thanks, that worked great.  I thought it would make everything align to the top, but it aligned by the text.  What I mean is that if the picture was shorter than a standard image, it would not start at the top.  All in all a nice improvement.


-------------
John Hill
www.alltp.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net