ZenPayPal plugin: add View Cart button

I use ZenPhoto version 1.4.1 because it runs well on Windows Server 2008.

If you use the paypal plugin from http://zenphoto.dev.stephane-huc.net/pages/ZenPaypal-Plugin you may like to add a "view cart" button.

In text editor open

After line 472 add:

///add view cart button
$html .= '<p><form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="YOURID@YOURDOMAINNAME.EXT">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="display" value="1">
<input type="image" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_viewcart_LG.gif" alt="PayPal - The safer, easier

way to pay online">
<img alt="" border="0" width="1" height="1" src="https://www.paypal.com/en_US/i/scr/pixel.gif" >
///end add view cart button



  • I certainly hope you are at least using version While the 1.4.1 release may work well with Windows Server 2008 it certainly is vulnerable to a viscious security hack.

    In fact, really, if you are concerned about the security of your site you should figure out a way to upgrade to the more recent and supported versionso of Zenphoto. While not so serious as the hole in releases prior to, there are still security issues that have been closed in the more recent and supported Zenphoto releases.

    Currently we are in Beta test of version 1.4.3 which will probably be official about the middle of June.
  • Thanks for the heads up. I will see how runs on my host.
  • I guess I should mention that I did do an install of the latest version, but with it, thumbnails were not generated. I concluded that it must be incompatible with the PHP version running on the host Windows 2008 server, because when installed, it did throw me a warning about potential conflicts thereof.
  • FYI: I tried a new install of the latest version, and it does thumbnails just fine, so I am very pleased. I think I know what I did this time that makes it work that I didn't do the last time.
Sign In or Register to comment.