marty.net 1001 Postcards Love Love Love Meep Meep ZenZodiac DailyQuotation Officer Naughty

YOU ARE HERE:
Color Swatches Blowing Out Page

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Color Swatches Blowing Out Page »
Welcome, Guest. Please Login or Register.
10/23/14 at 02:26:34
Home Help Search Login Register
   marty.net message board
   About cpshop
   General cpshop Support
   Color Swatches Blowing Out Page
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Color Swatches Blowing Out Page  (Read 471 times)
flippinsweetgear
Gold Dragon
****

Posts: 171



Go Scots!
   

WWW
Color Swatches Blowing Out Page
« on: 08/05/08 at 12:14:43 »
Reply with quote Modify message

I recently noticed on some (not all) dark shirts the color swatches are staying on one line and blowing out the page width.  

I see it is not only me and saw a few other cpshops having the same problem.  

Was there a change recently that is making this happen?  Any fix?  TIA

http://www.flippinsweetgear.com/shirt/80s_tshirts.flippin_sweet-237088081+vintage-slinky-t-shirt.html
« Last Edit: 08/05/08 at 21:43:06 by flippinsweetgear » Logged

Flippin Sweet Gear | Kids T-shirts | Big Lebowski Shirts
sai
White Dragon
**

Posts: 19



Go Scots!
   

Re: Color Swatches Blowing Out Page
« Reply #1 on: 08/05/08 at 22:22:08 »
Reply with quote Modify message

Hi,


I am in the process of creating my cpshop and came across this issue too, I thought it was just me! Unfortunately because the content area is quite tight the pushed over content is getting lost under the rest of the layout (for some reason it ignores the content width). It does seem somewhat irregular too like above sometimes, so its hard to pinpoint...

I tried looking into the output page source to find where the spacing is coming from and tried adding stuff to correct possible errors in cpshop.cgi.images but nothing worked.

I added:

Code:
*||||<!-- Product Swatches --><table cellpadding="3" cellpadding="5" border="0">||||<!-- Product Swatches --><table cellpadding="3" border="0">

*||||padding "25px"||||


I tried adding a lot of other different things than that actually but those are the ones I remember... My other attempts were mainly at the padding and width settings for the divs/tds. I thought I'd got the swatches going on to 2 lines at one point but found that some of the other dark t-shirt products still had them all on 1 line...

Any help is appreciated!
« Last Edit: 08/05/08 at 22:26:43 by sai » Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Color Swatches Blowing Out Page
« Reply #2 on: 08/05/08 at 22:50:58 »
Reply with quote Modify message

I'd have to look into it further to see the difference.

But for now, you might try something like this in the cpshop.cgi.images file:

*||||height="30" width="30"><div style="width: 30px; height: 30px;">||||height="20" width="20"><div style="width: 20px; height: 20px; overflow:none;">
Logged

--
Regards,
Marty..`..-> marty@marty.net
sai
White Dragon
**

Posts: 19



Go Scots!
   

Re: Color Swatches Blowing Out Page
« Reply #3 on: 08/05/08 at 23:15:31 »
Reply with quote Modify message

Thanks for the reply Marty!

I tried it out and I thought it had worked for a bit but unfortunately the problem still occurred on some Dark T-Shirt pages.

I think the problem is that the output for the dark t-shirt pages keeps changing, strangely enough. So it can't find that line in the page...

I noticed when trying to target the widths etc. that when I viewed source and did a Find for the line, that the line/area that I was trying to replace was somehow different on some dark t-shirt pages than others...  
Logged
sai
White Dragon
**

Posts: 19



Go Scots!
   

Re: Color Swatches Blowing Out Page
« Reply #4 on: 08/10/08 at 21:46:38 »
Reply with quote Modify message

I tried a few different things and the best (as a temporary fix) I could come up with is this (a div that wraps around all the swatch stuff).

In cpshop.cgi.images add the following:


Code:
*||||<!-- Product Swatches --><table width="100%">||||<!-- Product Swatches --><div id="swatches"><table width="100%">

*||||</table><!-- /Product Swatches -->||||</table></div><!-- /Product Swatches -->


Then in your css file add:

#swatches{width:250px;}

This doesn't fix the fact that the swatches don't go on a second line when they should however, so things are still a bit tight. It just keeps things a little more reigned in (not by much but at least my content isn't clipped anymore ), you may have to tweak the width to suit your layout.
« Last Edit: 08/10/08 at 21:47:07 by sai » Logged
techatfirstsite
White Dragon
**

Gender: female
Posts: 19




   

WWW E-Mail
Re: Color Swatches Blowing Out Page
« Reply #5 on: 08/19/08 at 18:58:42 »
Reply with quote Modify message

Since this is happening in many shops (including mine) isn't this something Cafepress should know about and fix? One of my shops isn't set up with cpshop yet and it also has this problem, so I don't think it's a cpshop issue.
Logged

www.techatfirstsite.com/cp
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Color Swatches Blowing Out Page
« Reply #6 on: 08/19/08 at 20:38:05 »
Reply with quote Modify message

It's not a cpshop issue; these are really just workarounds until CP gets it fixed.

And CP is aware of it, and looking to fix it.
Logged

--
Regards,
Marty..`..-> marty@marty.net
techatfirstsite
White Dragon
**

Gender: female
Posts: 19




   

WWW E-Mail
Re: Color Swatches Blowing Out Page
« Reply #7 on: 08/20/08 at 03:58:15 »
Reply with quote Modify message

Good, as long as they know about it!Thanks, Marty.
Logged

www.techatfirstsite.com/cp
Pages: 1 Reply Notify of replies Send the topic Print 
Jump to:


marty.net message board (http://www.marty.net/cgi/marty/board/messageboard)

Powered by YaBB 1 Gold - Release (Yet Another Bulletin Board)
Copyright 2000-2001, X-Null. All Rights Reserved.