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

YOU ARE HERE:
Change thumbnail?

HOME

CPSHOP|

|

|

EMAIL MARTY
  marty.net message board
  « Change thumbnail? »
Welcome, Guest. Please Login or Register.
12/13/17 at 16:56:53
Home Help Search Login Register
   marty.net message board
   About cpshop
   Customization Help
   Change thumbnail?
(Moderator: Marty)
Pages: 1 Reply Notify of replies Send the topic Print 
   Author  Topic: Change thumbnail?  (Read 871 times)
hazeleyes7
Gold Dragon
****

Gender: female
Posts: 212



Labs Rock!
   

WWW E-Mail
Change thumbnail?
« on: 10/21/07 at 13:55:41 »
Reply with quote Modify message

Right now I have each of my sections set up with the cpfilter_literal filter so it is pulling in the design thumbnail to display each of the subsections.

However, I would like to know if it is possible to have it choose one specific product thumbnail for each subsection instead.

For example, take: http://www.8pawsup.com/cgi-bin/store/cpshop.cgi/dogquotes

This is the full section in my Admin with the cpfilter_literal. I would like it to display the white t-shirt from each section as the section thumbnail instead of the cpfilter_literal (design thumbnail). So, when a person views this page, they will see each of the designs on a white t-shirt and then click that to see all the products with the same design that is on the t-shirt (just like it does now).

Can that be done? If so, how?
Logged

https://shannonksteffen.com
http://www.dogwiregifts.com
http://www.8pawsup.com
http://www.angelcove.us
http://www.catwiregifts.com
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Change thumbnail?
« Reply #1 on: 10/21/07 at 20:32:31 »
Reply with quote Modify message

You can use the cpshop.cgi.images file to search and replace the offending images. Add something like


Code:
*||||http://logo.cafepress.com/7/3784716.2958227.JPG||||http://images.cafepress.com/product/131762991v9_150x150_Front.jpg


which should replace your default section image for All About Labs with the white t-shirt inside that section. Just repeat for each image you want to replace.
« Last Edit: 10/21/07 at 20:33:58 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
hazeleyes7
Gold Dragon
****

Gender: female
Posts: 212



Labs Rock!
   

WWW E-Mail
Re: Change thumbnail?
« Reply #2 on: 10/22/07 at 06:25:21 »
Reply with quote Modify message

So, let me see if I understand this. I would need to go into each section, pull the URL for the offending image and replace it with the shirt image in that file for each of the product sections I have. So, say I have 100 sections that contain products, and are currently displaying the design image for the section, I would need to add a line for each of the 100 sections.

Is that correct?
Logged

https://shannonksteffen.com
http://www.dogwiregifts.com
http://www.8pawsup.com
http://www.angelcove.us
http://www.catwiregifts.com
Hex Angel - Patrick
Gold Dragon
****

Posts: 500



Our nature lies in movement; complete calm is death.
   

WWW
Re: Change thumbnail?
« Reply #3 on: 10/22/07 at 17:36:54 »
Reply with quote Modify message

Yep.

Not pretty (and the 100 image search and replaces performed by the cpshop.cgi.images file is a not entirely insignificant hit on execution time).

But I can't see a way to do it otherwise, even by hacking cpshop, without making additional calls to the CP API for every section thumbnail.

Your other option is to save a local copy of every white t-shirt image on your server then,  in the CP product/section editor, upload these as the default section images.  That's more work, but it would have the advantage of making your CP shop look more like your cpshop, and take a small load off cpshop.

Cheers,

p.
« Last Edit: 10/22/07 at 17:41:07 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
flippinsweetgear
Gold Dragon
****

Posts: 171



Go Scots!
   

WWW
Re: Change thumbnail?
« Reply #4 on: 10/29/07 at 12:39:02 »
Reply with quote Modify message

Well I might be the only idiot in here that didn't know about the API issue and cleared my cache last night and am completely down.  I'm assuming it is the API causing this.  Anyone else make the same the mistake? The sky is falling.  Shoot me now.  

-update... was something so stupid but yet so hard to figure out.  Apparently a shop I affiliated with was deleted last night and caused the whole shop to not connect to cp at all.  Oh well.. all is good for me now. whew  
« Last Edit: 10/29/07 at 23:03:34 by flippinsweetgear » Logged

Flippin Sweet Gear | Kids T-shirts | Big Lebowski Shirts
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.