ZenphotoCMS Forum
Paypal integration... - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Paypal integration... (/thread-1592.html)

Pages: 1 2


Paypal integration... - Ryan - 2007-08-12

I'm loving Zenphoto, but I'm just wonder. Is it possible to hook up Paypal with Zenphoto to sell prints for example? Has anyone ever done this?

Cheers.




Paypal integration... - penzoto - 2007-08-13

I don't see any major complications that would arise from hard coding a paypal "buy it now" type button.




Paypal integration... - smsu - 2008-03-26

Yes, it can be done very easily, just make sure you have this included in the pay pal code

`




Paypal integration... - Nimbuz - 2008-04-01

Hi,

I'd put the above form in the "Custom Data" field on the album/image edit page, right?

But that has no effect.




Paypal integration... - acrylian - 2008-04-01

Of course not, the field can't hold and execute php code...it's not meant for that. You need to add it to your theme image.php page.




Paypal integration... - Nimbuz - 2008-04-07

I've created a simple Paypal plugin for zenphoto:
http://blog.qelix.com/2008/04/07/paypal-integraion-for-zenphoto-zenpaypal/




Paypal integration... - acrylian - 2008-04-07

Great, but please take a look at the current nightly because we have a real plugin system for custom theme functions now. You might want to modify it to fit into that. It's not really hard to do. That would be great.




Paypal integration... - Nimbuz - 2008-04-07

Sure, I'll take a look later tonight.




Paypal integration... - aitf311 - 2008-04-07

Nimbuz, awesome plugin! This was very much needed.




Paypal integration... - sbillard - 2008-04-14

I have made a plugin version. Added some flexibility with the pricelist. I have not checked it beyond making sure the HTML worked. (I don't have a paypal account.)

Too many versions of this thread. Sorry for the multiple postings.




Paypal integration... - shiatostorm - 2008-04-30

Hi, I've been trying to get paypal to work in a redesign of my site I'm currently working on (here's the gallery section: http://www.lightoverwater.co.uk/example/gallery/), unfortunately I can't seem to get it to work. I have the latest build of ZP installed.
I select the plugin in the admin area and nothing happens...then I checked out the plugin - as linked to above - inserted the code into the page (and some css) as it says to in the read me but then I get horrible error messages about it being unable to find 'paypal.php'...is there something I'm missing??




Paypal integration... - acrylian - 2008-04-30

Do you really use the nightly build and the there included plugin (it has been reworked for the nightly)? The above download won't work with the nightly.




Paypal integration... - shiatostorm - 2008-04-30

yeah I tried both methods...the nightly one first, but didn't add anything to the image.php page as is suggested in the second, is this something that should be done?




Paypal integration... - acrylian - 2008-04-30

Of course you need to add the paypal function to your theme page yourself.




Paypal integration... - shiatostorm - 2008-05-08

right...and each time I do I get errors everywhere...




Paypal integration... - acrylian - 2008-05-08

  1. Activate the plugin on the plugins page in the admin.
  2. Look at the options on the options plugin page and fill in your PayPal account number.
  3. Add the function to your theme's image.php

This should work, but I have no PayPal account to say if it really works.




Paypal integration... - DrSlony - 2008-05-20

I sell photos on my site, however I also sell digital copies (or actually a license).
My paypal price list in zp admin looks like this:
10x15:Matte=20.00 10x15:Glossy=20.00 40x30:Matte=80.00 40x30:Glossy=80 60x40:Matte=120 60x40:Glossy=120

I would like to be able to sell 3 image sizes of 2 different types - glossy and matte. I would also like an option at the bottom to sell "digital & license".

How and what do I modify to be able to do this?




Paypal integration... - sbillard - 2008-05-20

Documentation for zenPaypal is here: http://www.zenphoto.org/documentation-official/zenphoto/_plugins---zenPaypal.php.html

You would have to create the digital & license as elements of your price list.




Paypal integration... - nizuya - 2008-05-30

I have the newest version of zen photo, fresh install. I enabled the zenPayPal plug in and added:

To image.php

Then I added:

BuyNow {


background:#f7f7f7;
border:1px solid #ccc;
text-align:center;
padding:10px;
margin:0 0 10px;

}

BuyNow input.buynow_button {


display:block;
clear:both;
text-align:center;
margin:10px auto 0;

}
to styles/light.css

I keep getting errors that the file zenPaypal.php does not exist in the directory.
So I copied the file to the same directory as image.php, then got the error that variables had already been set (or something like that).
Finally, I deleted the zenPaypal.php from the plugins directory and now I just get an empty box...

Can someone help me!? Did I do something wrong?




Paypal integration... - Vaisak - 2008-05-30

You don't have to require the zenpaypal file, just use

I was wondering if there's a way to show zenpaypal in certain images, while it remains hidden in the rest of the gallery. I've been trying some things, like getting a customized price list from the custom data field and trying to hide zenpaypal if the field was empty. But my php knowledge is... well, almost nonexistant. Any help would be greatly appreciated, even if it just to tell me there's no way right now