I've created a simple Paypal plugin for zenphoto:
http://blog.qelix.com/2008/04/07/paypal-integraion-for-zenphoto-zenpaypal/
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??
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?
right...and each time I do I get errors everywhere...
This should work, but I have no PayPal account to say if it really works.
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?
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.
I have the newest version of zen photo, fresh install. I enabled the zenPayPal plug in and added:
To image.php
Then I added:
background:#f7f7f7;
border:1px solid #ccc;
text-align:center;
padding:10px;
margin:0 0 10px;
}
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?
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