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

YOU ARE HERE:
Zoom link

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Zoom link »
Welcome, Guest. Please Login or Register.
12/14/17 at 04:23:44
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   Zoom link
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Zoom link  (Read 1028 times)
mayur
Silver Dragon
***

Gender: male
Posts: 31




   

WWW E-Mail
Zoom link
« on: 03/22/07 at 11:28:29 »
Reply with quote Modify message

I thought it would be neat for a customer to zoom in a product from the product thumbnail page.  This would allow them to see the product up close without actually going to each product page.

It works great for seeing the product itself up close.  However, if a customer wanted to zoom in on the artwork via the "zoom in on image" link, all they get is a blank box.  If they actually go to the product page and click "view larger" though it works fine.

I suspect it has something to do with the color variable being passed to CafePress.

I've seen this on Hectic's site and the same issue is there as well.

Anyone know a workaround?
« Last Edit: 03/22/07 at 11:29:19 by mayur » Logged

http://desirage.com/
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Zoom link
« Reply #1 on: 03/22/07 at 18:38:16 »
Reply with quote Modify message

Hmmm. Hadn't noticed that.

Yep. For products with colours you need to add colorNo=[color number] to the launchHelp() query string. And it has to be a valid color number for that product. EG: for a black t-shirt:


Code:
javascript:launchHelp('http://www.cafepress.com/cp/moredetails.aspx?
tid=criticalgraphic&showBleed=false&ProductNo=<[productno]>&pr=F&colorNo=6','height=650,width=650,scrollbars=1')


Will display a View Larger window featuring a black t-shirt and it will zoom to a black backgrounded image.

For single color products (including green and yellow t-shirts) the colorNo parameter appears to be ignored so colorNo=6 works for them too.

However, for light tees, ringer tees and other products with multiple colors but no black, you'll get the same behaviour you've already noticed.

Looks like a feature request is in order:

<[colorNo]> :: The color number of the current product.

p.
« Last Edit: 03/25/07 at 15:16:08 by Hex Angel - Patrick » Logged

CPSHOP
www.PeaceAndLoveShop.com Namaste
BLOG
www.TheNomadicSpirit.com Inspired by travel
www.GodBeautyPerfectionLove.com Inspired by spirit
www.MyMuseMoviesMusicAndBooks.com Inspired by the arts
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Zoom link
« Reply #2 on: 03/25/07 at 15:13:33 »
Reply with quote Modify message

I've got this problem licked. Well, mostly.  See it at work on http://www.criticalgraphics.com/peace_signs/criticalgraphic/2747579
just click the zoom links on products with color options.

The colours displayed in the pop-up are set to a default value, not necessarily the one shown on the thumbnail. [edit: actually, it now displays the default colour you selected for the product in CP.]

If anyone's interested, I can post a tutorial. Advance warning:
  • Your cpshop templates must use a .php extension.
  • Your server must support PHP
  • There's some PHP code involved.
  • We'll add some CGI code to Marty's cpshop.cgi file
    -- but not the lib files where the core cpshop code lives. When Marty next updates cpshop, it's very unlikely to affect our changes, and vice-versa.


This code has been running on my sites for months and through a couple significant cpshop upgrades with no issues.

Finally, the code comes with the swappable images you'll see on thumbnails of 2-sided products on my sites (just hover the mouse over one). If you don't want them, they're easy to take out.

Cheers,

p.
« Last Edit: 04/17/07 at 15:48:45 by Hex Angel - Patrick » Logged

CPSHOP
www.PeaceAndLoveShop.com Namaste
BLOG
www.TheNomadicSpirit.com Inspired by travel
www.GodBeautyPerfectionLove.com Inspired by spirit
www.MyMuseMoviesMusicAndBooks.com Inspired by the arts
mayur
Silver Dragon
***

Gender: male
Posts: 31




   

WWW E-Mail
Re: Zoom link
« Reply #3 on: 03/26/07 at 03:04:45 »
Reply with quote Modify message

By all means, do tell!
Logged

http://desirage.com/
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Zoom link
« Reply #4 on: 03/26/07 at 22:29:08 »
Reply with quote Modify message

Okay, I've got the tutorial up in the Tutorials forum in this post

NOTE:  I removed the swappable thumbs bit to simplify the tutorial.

hth

p.
« Last Edit: 03/26/07 at 22:29:35 by Hex Angel - Patrick » Logged

CPSHOP
www.PeaceAndLoveShop.com Namaste
BLOG
www.TheNomadicSpirit.com Inspired by travel
www.GodBeautyPerfectionLove.com Inspired by spirit
www.MyMuseMoviesMusicAndBooks.com Inspired by the arts
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.