![]()  | 
 
Display Less color swatches in one row | 
 
    Post Reply  
   | 
  
| Author | |
   
   hhsign  
   
   Newbie  
   Joined: 31-October-2008 Status: Offline Points: 0  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: Display Less color swatches in one rowPosted: 24-January-2009 at 8:22am  | 
 
| 
   
    As it is now, the color swatches display 5 accross before it drops down to a 2nd line. I need to make it display 4 accross so I can use slightly larger images. Can this be done?  | 
 |
![]()  | 
 |
   
   sdalan  
   
   Groupie  
   Joined: 10-August-2006 Status: Offline Points: 0  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 24-January-2009 at 4:42pm | 
 
| 
   
    
   Yes - unless this changed with 3.5 - I am still using 3.1:
 
   
  1. Open app-ViewPrdFuncs.asp in the /store/pc folder for editing (make a backup first of course!) 
2. Search for the sub called ColorSwatches() 
3. Find the line that reads: 
 if Ocount=5 then 
Ocount=0 4. Change 5 to 4 
Hope that works for you. 
Alan 
www.standoutdesigns.com 
 | 
 |
![]()  | 
 |
   
   hhsign  
   
   Newbie  
   Joined: 31-October-2008 Status: Offline Points: 0  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 24-January-2009 at 11:06pm | 
 
| 
   
    
   That worked for us
 
   
  Thanks 
    | 
 |
![]()  | 
 |
   
   sdalan  
   
   Groupie  
   Joined: 10-August-2006 Status: Offline Points: 0  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 25-January-2009 at 9:14am | 
 
| 
   
    
   You are welcome. Glad it worked.
    
   
   | 
 |
![]()  | 
 |
   
   avalight  
   
   Newbie  
   Joined: 21-September-2007 Status: Offline Points: 3  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 31-January-2009 at 8:43pm | 
 
| 
   
    
   What is the suggested image size for the swatches?  And is there ways to control the size?
    
   
   | 
 |
   
      Curt
     | 
 |
![]()  | 
 |
   
   ProductCart  
   
   Admin Group  
   ProductCart Team Joined: 01-October-2003 Status: Offline Points: 135  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 02-February-2009 at 5:00am | 
 
| 
   
    
   There is no hardcoded size, nor the size is set via CSS. The size of the swatch is the size of the image that you associate with that option attribute. Since the system by default shows 5 swatches on one line (see above for instructions on how to change this), the recommended size is the typical width of your product images, divided by 5, and taking into account a bit of padding between them. 
   
  For example, if your typical image witdh is around 200 pixels, then swatches that are 30 pixels wide or less will work well.  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |