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

YOU ARE HERE:
Open "View Larger" on product thumbnails w/ cpdig

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Open "View Larger" on product thumbnails w/ cpdig »
Welcome, Guest. Please Login or Register.
12/14/17 at 10:05:58
Home Help Search Login Register
   marty.net message board
   About cpshop
   Tutorials
   Open "View Larger" on product thumbnails w/ cpdig
(Moderator: Marty)
Pages: 1 2 » Reply Notify of replies Send the topic Print 
   Author  Topic: Open "View Larger" on product thumbnails w/ cpdig  (Read 4299 times)
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Open "View Larger" on product thumbnails w/ cpdig
« on: 03/26/07 at 21:48:33 »
Reply with quote Modify message

Hey there all,

By request, here's a tutorial for invoking the "View Larger" popup from the product thumbnail grid. There are some moderately advanced topics and you may need to do some minor PHP code modifications to get the exact look you want. However, I've taken pains to describe every necessary step in succinct detail so most folks should be able to navigate it.

The tutorial's a bit big for this form so I've created a page for it here.  If you have any questions, or experience any difficulties, please post them to this forum topic or send me a PM.

Cheers,

Patrick.
« Last Edit: 11/23/10 at 19:41:04 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: Open "View Larger" on product thumbnails w/ cp
« Reply #1 on: 04/06/07 at 15:55:46 »
Reply with quote Modify message

Hey all,

I figured out how to extract the colorNo values "View Info" needs from the thumbnail URL.  As a result cpdig_zoomthumbs.php will now display the "View Larger" window for the colour you specify in the CP product designer for the product to display.

Yay!

It also simplifies the code: You only need to update the zoomthumbs code when CP introduces a new fabric colour. You don't even have to do that if you don't intend to set the new colour as the default display colour for any of your products.

Nice.

For anyone who's already installed zoomthumbs all you need to do is

1. briefly close your store for maintenance via cpadmin.  (Click "Close Store for Maintenance" and then <save all changes>)

2.  Change the <|getURL:URL|> tag in your thumbnail grid to something like:


Code:
<|geturl:http://www.yourstore.com/pathtozoomthumbs/cpdig_zoomthumbs.php?productno=<[productno]>&thumbsrc=<[thumbsrc]>|>


3. Get the new cpdig_zoomthumbs.txt.  Change its name to cpdig_zoomthumbs.php and upload it to your server.

4. Back in cpadmin unclick "Close Store for Maintenance" then <save all changes> with "Empty Cache Now" checked.


The full tutorial has been updated. As always, comments and queries to this forum.

Cheers,

Patrick.
« Last Edit: 11/23/10 at 19:40:19 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: Open "View Larger" on product thumbnails w/ cp
« Reply #2 on: 04/06/07 at 16:15:05 »
Reply with quote Modify message

Oh, something else.

I should mention that you could just invoke cpdig_zoomthumbs.php via an IFRAME or SSI, if that's your preference.  An IFRAME might look like:


Code:
<IFRAME src="/includes/cpdig_zoomthumbs.php?productno=<[productno]>&thumbsrc=<[thumbsrc]>"
     width="50" height="14"
     scrolling="none" frameborder="0">
</IFRAME>


or something like it.  (Personally, I hate IFRAME.)

p.
« Last Edit: 04/06/07 at 16:15:50 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
keeb
White Dragon
**

Posts: 20



Go Scots!
   

Re: Open "View Larger" on product thumbnails w/ cp
« Reply #3 on: 03/30/08 at 23:42:44 »
Reply with quote Modify message

Hex,

Hello.  I read the line you added that says, "This is a gift, consider that when you ask for support."  So, thanks for putting this Zoom feature together.




Here's my issue:

After I changed


Code:
$hacked = 0;

back to

Code:
$hacked = 1;


I tested "test_store.cgi" and got a 500 Server Error message.

I went ahead and finished the instructions stopping just before the porting steps.

Well, finishing the instructions didn't help at all...so clearly I've got something goin on elsewhere, but I have no clue where to start.

Any thoughts?

if it helps to look at my site:
http://www.stylinbabiesshop.com
http://www.stylinbabiesshop.com/store/test_store.cgi
Logged
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Open "View Larger" on product thumbnails w/ cp
« Reply #4 on: 04/04/08 at 12:37:16 »
Reply with quote Modify message

500 errors are usually caused by one of 2 things

1> misconfigured .htaccess file
2> bad script code


You're probably running into #2

I'll run the tutorial again myself and see what's what.

p.
« Last Edit: 04/04/08 at 12:39:54 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
keeb
White Dragon
**

Posts: 20



Go Scots!
   

Re: Open "View Larger" on product thumbnails w/ cp
« Reply #5 on: 04/04/08 at 13:54:42 »
Reply with quote Modify message

Awesome, thanks!
Logged
keeb
White Dragon
**

Posts: 20



Go Scots!
   

Re: Open "View Larger" on product thumbnails w/ cp
« Reply #6 on: 04/10/08 at 23:20:47 »
Reply with quote Modify message

Just wondering if you've had time to figure it out yet.

Logged
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Open "View Larger" on product thumbnails w/ cp
« Reply #7 on: 04/10/08 at 23:43:00 »
Reply with quote Modify message

Honestly, only had time for a quick run through. Nothing obvious at this point.


I'm in the middle of some big stuff. It may take a couple or few weeks to have a closer look.

Sorry 'bout that.

p.
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
VetPetRescue
Green Dragon
*

Posts: 5



Go Scots!
   

E-Mail
Re: Open "View Larger" on product thumbnails w/ cp
« Reply #8 on: 06/15/08 at 22:01:46 »
Reply with quote Modify message

I've run into a snag. I tried changing my template to a .php file, but I receive a message when I go to my cpshop.cgi file telling me it's trying to find my template file in html format. I tried changing all the references in cpshop config file from cptemplate.html to cptemplate.php. Everything loaded, but nothing was functional.

I know you're very busy now, but any help would be appreciated. Thanks.
Logged
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Open "View Larger" on product thumbnails w/ cp
« Reply #9 on: 06/17/08 at 10:21:47 »
Reply with quote Modify message

If you're using php, you have to reference the template as a URL, like:

http://www.whatever.com/mytemplate.php
Logged

--
Regards,
Marty..`..-> marty@marty.net
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Open "View Larger" on product thumbnails w/ cp
« Reply #10 on: 06/17/08 at 11:39:39 »
Reply with quote Modify message

Hey Marty,

I think on some servers it's better to reference the URL as /mytemplate.php

I believe Apache servers use up more resources when deref'ing the full http path than a relative path.

Could be wrong...



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
Marty
Administrator Dragon
*****

Gender: male
Posts: a whole lot



That's me. :)
   

WWW E-Mail
Re: Open "View Larger" on product thumbnails w/ cp
« Reply #11 on: 06/17/08 at 11:41:33 »
Reply with quote Modify message

Except that as a relative path, cpshop will reference a php file as a file, and prevent the php engine from preprocessing the page (how's that for alliteration?).
Logged

--
Regards,
Marty..`..-> marty@marty.net
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Open "View Larger" on product thumbnails w/ cp
« Reply #12 on: 06/17/08 at 12:04:00 »
Reply with quote Modify message

Ahhh, right. Dang!

Is that a programmatic thing in cpshop?  That is, can cpshop workaround this in a future version? It's a matter of calling the right get...() routine, correct?

« Last Edit: 06/17/08 at 12:05:29 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
tigaruk
Gold Dragon
****

Posts: 58



www.carboncloth ing.net
   

WWW E-Mail
Re: Open "View Larger" on product thumbnails w/ cp
« Reply #13 on: 03/11/10 at 09:47:14 »
Reply with quote Modify message

Im having trouble getting this to work. Copied the instructions word for word and this is what happens.

The link for the zoom button looks like this - http://www.mystore.com/store/url.php####%20%20%20cpdig_zoomthumbs.php%20%20%20ver.%201.1####%20%20%20Swaps%20product%20thumbnail%20images%20from%20back%20to%20front/front%20to%20back%20##%20%20%20on%20mouseover/mouseout%20##%20%20%20Invoked%20by%20cpdig%20tag%20%20in%20cpadmin%20thumbnail%20grids####%20%20%20cpdig_swapthumbs.php%20is%20free%20software%20distributed%20under%20the%20##%20%20%20GNU%20General%20Public%20License%20(http://www.gnu.org/licenses/licenses.html#GPL)##%20%20%20%20%20See%20also%20http://www.gnu.org/philosophy/free-sw.html####%20%20%20%C2%A9%20patrick%20jennings%20##%20%20%20January,%202007##%20%20%20http://www.criticalgraphics.com/cpdig####%20%20%20%20%20%20%20This%20is%20free%20software.%20It%27s%20a%20gift.%20Consider%20this%20when%20requesting%20support.####%20%20%20Change%20History##Ver%201.0%20%20March,%202007%20--%20initial%20release##%20%20%20%20%20%20Ver%201.1%20%20April%206,%202007%20--%20Now%20pulls%20color%20information%20from%20the%20thumbnail%20linkjavascript:launchHelp(%27http://www.cafepress.com/cp/moredetails.aspx?showBleed=false&ProductNo=414339664&pr=F&colorNo=1%27,%27height=650,width=650,scrollbars=1%27)

Why is it displaying the code in the link? The image as you can guess does not display because of this. Javascript is turned on and host is godaddy.
Logged
cyrusshepard
Green Dragon
*

Posts: 1



Go Scots!
   

E-Mail
Re: Open "View Larger" on product thumbnails w/ cp
« Reply #14 on: 10/31/10 at 00:05:41 »
Reply with quote Modify message

The link for instructions given above no longer works.  It redirects to the homepage of the Peace and Love Shop.  Can the instructions be found anywhere else?
Logged
Pages: 1 2 » 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.