Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: 1 2 [3] 4 5 6 7 ... 20   Go Down

Author Topic: add a Paypal shopping basket to your gallery.  (Read 315529 times)

0 Members and 1 Guest are viewing this topic.

catch22

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 16
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #40 on: August 12, 2004, 10:51:43 am »

Screenshots of example of pic needing title before cart shows:

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fscientificsound.com%2F01.gif&hash=27063021d8c798fea5e03180b3437ec9d7f1307f)

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fscientificsound.com%2F02.gif&hash=c258e1d3a04a88e8013b336172dc91cce901d5e8)

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fscientificsound.com%2F03.gif&hash=aa3edd3171697b89f451bb3ca932261a28bbb5de)
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #41 on: August 12, 2004, 11:28:05 am »

Yes, I accepted and agreed it needed a title.  The selection boxes will not show.  But even if they did, the paypal form would have no info on what was being ordered, as it uses the title.

But you originally said it would not work without a description, not title.  This was a problem with the first version of the hack, but should not be happening now.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JakobG

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #42 on: August 12, 2004, 05:23:13 pm »

Is it possible to do this for more than one account on one site? So say you have two users that both have paypal accounts and are using the same website to show their photos?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #43 on: August 12, 2004, 05:28:44 pm »

Yes, you can have as many installs of coppermine (and that includes ones with this hack) on one website.  You can even have them all use the same database.

What you need to do, is create each install within its own directory, then during install, specify a unique table prefix for each install.  I suggest changing the cookie names as well.

Then each install is totally seperate.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JakobG

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #44 on: August 12, 2004, 05:37:50 pm »

Fantastic, thanks for that!

I've just noticed that I cant batch add any files... the page comes up and shows select the directory and thats it... no actual selection possible! Any ideas?
Should i have created an album and batch added before adding the shop mod?
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #45 on: August 12, 2004, 05:42:03 pm »

This is probably because you added them to the 'userpics' directory.  They must not be in there, but in new folders you create in the albums directory.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

JakobG

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #46 on: August 12, 2004, 05:58:01 pm »

Yep... you got me! Thanks for all the help casper!
Logged

Detonate

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #47 on: August 19, 2004, 07:07:15 pm »

This is an excellent hack!

And to think I was very close to dropping $399 on LightBox Photo Gallery!

There are a couple of things I was thinking about changing, and was wondering if anyone was interested in helping.

One thing I thought that might be useful would be setting the Prices/Options in the Properties of an Album Menu instead of the Global config.

Also, thinking that passing the filename of the image along with the Title would be very helpful.  If I have 100 pictures name "Red Flower" for example, it would be nice to know exactly which one I need to have printed and ship to the customer!

Has anyone else already worked up something similar before I start code diving?

I've never used Coppermine before, so it'll probably take me a long time to familize myself with the code.
Logged

Detonate

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #48 on: August 19, 2004, 09:00:57 pm »

Well I got the item name stuff to work.

I'm far from a coder, so use with caution.

In displayimage.php I ADDED:
Code: [Select]
       '{FILENAME}' => $CURRENT_PIC_DATA['filename'],AFTER
Code: [Select]
       '{CAPTION}' => bb_decode($CURRENT_PIC_DATA['caption']),
in every theme.php I REPLACED ALL:
Code: [Select]
name="item_name" value="{TITLE}, size '{$CONFIG['sizeWITH
Code: [Select]
name="item_name" value="{TITLE}, Filename: {FILENAME}, Size: '{$CONFIG['size
So now my Item name looks like Rhino, Filename: zoo_01.jpg, Size: '12x14'

I suppose I could have included the path, but the filename will always be unique for me.
Logged

Detonate

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #49 on: August 19, 2004, 10:03:22 pm »

Ok, well I did a bit more research and found some info on PayPal Carts and changed some more stuff that may be of interest to others....

Basically I replaced the line having to do with the Item Name with the following lines...
Code: [Select]
<input type="hidden" name="item_name" value="Photograph Name: {TITLE}">
<input type="hidden" name="item_number" value="{FILENAME}">
<input type="hidden" name="on1" value="Print Size">
<input type="hidden" name="os1" value="{$CONFIG['size1']}">

Now I get the Photo's Title, Image Name, Print Size, and Print Paper all in visually seperate areas.  I think this makes for the least confusing display for the average customer checking out.

Here is what the Cart Looks like...
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.redreefscuba.com%2Fforum%2Fcart.jpg&hash=8081d452a3a1e403e942ff0330c0a7c52670593b)
Logged

adriano

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
    • http://www.wackernah.net
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #50 on: August 22, 2004, 01:35:47 pm »

Hello Capsar,
I just read about this wonderful mod and I think, I can use this on a new site I plan. This will give coppermine a big step foward to a shopping site. As I could see, all I can sell is only prints from my photographs. Is there a way to use the paypal account for downloading some pictures after the customer paid?
Logged
[size=10]Fotos von Norddeutschland und der Nordseeküste
Photos of Northern Germany and the North Sea Coast:
http://www.wackernah.net[/size]

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #51 on: August 22, 2004, 09:44:24 pm »

@Detonate, I think the changes you have done are a great improvement, and will incorporate them in the downloads soon.  ;)

The setting the prices by album would need a complete rework, but if anyone can do it, would make having differnt prices much easier than the present method.

@adriano, this could probably be done, associating the zip downloads with the payment, but would also require a lot of changes.  It will probably be easier in version 1.4, which will have server side favourites, nstead of the current, client side favourites.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #52 on: August 24, 2004, 12:10:03 am »

I have updated the hack to include Detonates changes.  The files are all available to download from my shop demo.
They are not yet available from the downloads section on this site.

@ Gaugau, will email files to you.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

wprowe

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 32
    • Music, Travel, Outdoor, Nature and Wildlife Photography
Re: add a Paypal shopping basket to your gallery.
« Reply #53 on: August 27, 2004, 07:44:29 pm »

Hi. I am a professional photographer and am interested in incorporating your PayPal hacks into my coppermine gallery. I applied the shop-update and the theme I like (igames). I noticed that each image size I configured shows up as a separate line. Could it be made into a drop-down menu selection (pick-list) so it doesn't take up so much real estate? It might take a little coding to determine the menu selection chosen before making the cgi-bin call to paypal to update the shopping cart. Is this possible? I saw one demo that shows something like this for paper types. That type of selection for print sizes would be great. Also, I have about 10 print sizes I offer. How hard would it be to expand it from 6 to 10 possible sizes?

Thanks much!
Logged
Walter Rowe
Music, Travel, Outdoor, Nature and Wildlife Photography

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Hack[1.3x] add a Paypal shopping basket to your gallery.
« Reply #54 on: August 29, 2004, 01:05:40 pm »

@ Gaugau, will email files to you.
Got the email, sorry for the delay.

[off topic]
The medium "email" get's increasingly unusable for me, with the amount of spam and virus-infected mails sky-rocketing to over 800 unwanted emails a day. I'm still experimenting on spam filtering systems, but I either get a lot of false positives, or the filter is unusable completely for me because most spam passses through it.
[/off topic]

I changed the package names on the server, here are the new download links:
shop hack with all themes: http://prdownloads.sourceforge.net/coppermine/cpg1.3.x_mod_shop_all_themes.zip?download
shop hack with classic theme only (recommeded for usage with custom theme): http://prdownloads.sourceforge.net/coppermine/cpg1.3.x_mod_shop_classic.zip?download

@Casper: have you made up your mind yet to add the paypal hack to the coppermine core (admin settable of course) for cpg1.4.0? Maybe we need to discuss this on the dev board, as I must confess I haven't looked into the hack too deeply, so I'm not sure on the impact of adding the mod to the core would have.

Joachim
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: add a Paypal shopping basket to your gallery.
« Reply #55 on: August 30, 2004, 11:44:20 pm »

sorry for the delay in answering, I'm just back from 5 days motorcyle rally on the continent, and just catching up. 

@wprowe,

In answer to your question, if you do not offer choice of paper type, just sizes, then this would be easy to modify.  If you want to offer both, that would not have worked with my original hack, but I have done several changes, and it may be possible.  I will look into it tomorrow.


@GauGau,

I doubt it would fit well in the core code, and would be best as an add on, but as you suggested, I will bring it up on the dev board.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

jayos

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • Jaypix
Re: add a Paypal shopping basket to your gallery.
« Reply #56 on: August 31, 2004, 10:51:30 am »

This mod is just what I have wanted to do great work Casper ;)

I want to tweek a couple of things, I would like to have standard coppermine albums so friends and family can upload pics leave comments etc.
also the functionality of this mod so I can sell pictures in certain galleries

Why do we have to lose voting and comments is it possible to keep these functions?

I want to add a number of size options for my photos with different prices for each option how could I do this so it works in the same way as the link below
   
http://about.reuters.com/pictures/prints/galleries/preview.aspx?gallery=This%20Week&story=631934490331836250&picture=X002550020040822e08m0002t.jpg

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: add a Paypal shopping basket to your gallery.
« Reply #57 on: August 31, 2004, 11:35:31 am »

Why do we have to lose voting and comments is it possible to keep these functions?

The latest version available from the downloads section, or my demo, does not lose these functions.


I want to add a number of size options for my photos with different prices for each option how could I do this so it works in the same way as the link below
   
http://about.reuters.com/pictures/prints/galleries/preview.aspx?gallery=This%20Week&story=631934490331836250&picture=X002550020040822e08m0002t.jpg

It is easy to add extra size/price fields, but getting them in a dropdown box, on one paypal line, I would have to look into.  You are not the first to ask for this, and I agree it would be good if all choices could be done this way.  But I have a lot to learn when it comes to paypal baskets etc.

I am looking into this.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

jayos

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
    • Jaypix
Re: add a Paypal shopping basket to your gallery.
« Reply #58 on: August 31, 2004, 04:54:43 pm »

Thanks Casper

I want to use the smf theme is the code I will need to change the same as described in complexshop.txt ?

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: add a Paypal shopping basket to your gallery.
« Reply #59 on: August 31, 2004, 05:11:58 pm »

Hi Jayos,

what are you wanting to do.  Do you want to have different prices available in different albums/categories.  The hack for the standard shop has changed a lot since then, but I can take you through it if you tell me what you want.

Although the smf theme is not included in the downloads, it is easy to add any 1.3 theme to the standard hack.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: 1 2 [3] 4 5 6 7 ... 20   Go Up
 

Page created in 0.029 seconds with 19 queries.