zenphoto forums » Installation Support

ZenPayPal plugin: add View Cart button

(5 posts)
  • Started 11 months ago by LilPeck
  • Latest reply from LilPeck
  1. LilPeck

    Member
    Joined: Mar '11
    Posts: 24

    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
    plugins/ZenPayPal/class.zenPayPal.php

    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" >
    </form></p>'."\n";
    ///end add view cart button

    Be SURE to replace YOURID@YOURDOMAINNAME.EXT with YOUR Paypal ID!

    Posted 11 months ago #
  2. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,771

    I certainly hope you are at least using version 1.4.1.6. 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 1.4.1.6, 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.

    Don't forget to read the Forum rules and usage resources
    Posted 11 months ago #
  3. LilPeck

    Member
    Joined: Mar '11
    Posts: 24

    Thanks for the heads up. I will see how 1.4.1.6 runs on my host.

    Posted 11 months ago #
  4. LilPeck

    Member
    Joined: Mar '11
    Posts: 24

    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.

    Posted 11 months ago #
  5. LilPeck

    Member
    Joined: Mar '11
    Posts: 24

    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.

    Posted 11 months ago #

RSS feed for this topic

Reply

You must log in to post.