ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart Add-on's > Apparel Add-on
  New Posts New Posts RSS Feed - Display Less color swatches in one row
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Display Less color swatches in one row

 Post Reply Post Reply
Author
Message
hhsign View Drop Down
Newbie
Newbie


Joined: 31-October-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote hhsign Quote  Post ReplyReply Direct Link To This Post Topic: Display Less color swatches in one row
    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?

Back to Top
sdalan View Drop Down
Groupie
Groupie
Avatar

Joined: 10-August-2006
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote sdalan Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
hhsign View Drop Down
Newbie
Newbie


Joined: 31-October-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote hhsign Quote  Post ReplyReply Direct Link To This Post Posted: 24-January-2009 at 11:06pm
That worked for us
 
Thanks
Back to Top
sdalan View Drop Down
Groupie
Groupie
Avatar

Joined: 10-August-2006
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote sdalan Quote  Post ReplyReply Direct Link To This Post Posted: 25-January-2009 at 9:14am
You are welcome. Glad it worked.
Back to Top
avalight View Drop Down
Newbie
Newbie


Joined: 21-September-2007
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote avalight Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post 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 shopping cart software
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.