Print Page | Close Window

Display Less color swatches in one row

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart Add-on's
Forum Name: Apparel Add-on
Forum Description: All topics concerning the use of the Apparel Add-on
URL: https://forum.productcart.com/forum_posts.asp?TID=2385
Printed Date: 24-November-2024 at 12:22am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Display Less color swatches in one row
Posted By: hhsign
Subject: Display Less color swatches in one row
Date Posted: 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?




Replies:
Posted By: sdalan
Date 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
 


Posted By: hhsign
Date Posted: 24-January-2009 at 11:06pm
That worked for us
 
Thanks


Posted By: sdalan
Date Posted: 25-January-2009 at 9:14am
You are welcome. Glad it worked.


Posted By: avalight
Date 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


Posted By: ProductCart
Date 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.


-------------
The ProductCart Team

Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software



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