i've writing a new version of zenpaypal plugin.
- add new options default to setting html background of paypal page web, to test it with sandbox paypal, and others options to using with paypal cart.
- modify php code
it's run as cart (panel) ... also, it's possible to adding few objects in the cart before billing.
To install it, please read the install.txt in the archive zip
The archive is downloadable here :
http://dev.stephane-huc.net/share/zenphoto/zenpaypal.zip
Comments
- implement all currencies supported by Paypal
- function zenPaypalToJS : delete variables in appel
- function zenPaypal :
-> inverse order of variable $pricelistlink and $pricelist in appel
-> 'localize' url for buttons ;-)
-> a lot of bits to modified. @micheall : ty.
New archive : http://dev.stephane-huc.net/share/zenphoto/zenpaypal.zip
Edit: not seeing any errors in the cgi log, so not sure...
It would be great if you could make a small project page for that plugin with changelog and download that we can link to from our plugins section. Thanks!
now is zenPaypal(true) to activate pricelist in code html !
@acrylian : oki ... in few hours
is my current call to it.
Edit:
Ahh, I see you changed the structure so all it needs is zenpaypal(true). Do the rest of the variables that were there not get parsed now and need to be changed in the hardcode itself?
@micheall: dl the archive ;-)
Update done and you made it to our news section as well..;-)
By the way, the instructions refer to"plugins" as "extensions". Should be updated.
http://www.zenphoto.org/2008/06/zenphoto-plugins/
[quote]
Optional plugins need to be placed within the zp-core/plugins folder.
Note: In the coming 1.2.7 release they will need to be place within the plugins folder within the root of your Zenphoto installation. Included standard plugins are located in zp-core/zp-extensions.
[/quote]
Edit: One thing that might be worth adding as an option is to include the Album name for paypal as well. I know my images are normally the camera-named images and seeing Image: DSCN123124.jpg and having to sort through might be a pain.
Something like:
`$zenPaypalHTML .= "\t"."\t"."\t".'form_paypal.item_name.value = "'.gettext('Album: ').getBareAlbumTitle().gettext(' - Photo: ').getImageTitle().gettext(' - Size: ').$itemparts0.gettext(' - Media: ').$itemparts1.'";'."\n";`
New archive :
- http://zenphoto.dev.stephane-huc.net/news/ZenPaypal-Plugin-1.1.3-EN
- http://zenphoto.dev.stephane-huc.net/news/ZenPaypal-Plugin-1.1.3-FR
I have a question, is there a way to disable this plugin for some pictures ?
Laurent
Use the custom image field to enter for example "nopaypal" and then check on the theme page with a simple "if" statement if the paypal function should be shown.
http://zenphoto.dev.stephane-huc.net/news/ZenPaypal-Plugin-1.1.4-EN
http://zenphoto.dev.stephane-huc.net/news/ZenPaypal-Plugin-1.1.4-FR
@acrilian: if you explain me, simply that, please ;-)
I would suggest not to include this check within the plugin.
Your comments on the zenpaypal page under the tips should read:
<?php
if(function_exists('zenPaypal')) {
if(getImageCustomData() != 'nopaypal') { zenPaypal(); }
}
?>
You're missing the {} and a ;
Keep up the great work on the plugin though, it's nice to have it supported again!
I just spotted that this is missing on our developer guidelines so I will add it.
@acrylian: ok, if i understand you, that's better than rename function 'zenPayPalDisplayPaypalLogo' to 'printPayPalLogoforZenPaypal', isnt-it ?!
(not necessary to update your version, just to be compliant with our guideline ;-) )
http://zenphoto.dev.stephane-huc.net/pages/ZenPaypal-Plugin-EN
http://zenphoto.dev.stephane-huc.net/pages/ZenPaypal-Plugin-FR
you are great, i ask for a option yesterday and today i saw a new version, thank you very much to you.
@hucste : i saw your french web page, it's better for me ;-)
I will try it this week-end, to much work now.
Laurent