Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorFisicoUk
    • CommentTimeJul 3rd 2008 edited
     
    I' ve tried doing some Paypal integration.

    The script works fine byitself, but not when it's put into plogger.

    Any idea what I am missing?

    <center><a accesskey="v" href="<?php echo plogger_get_source_picture_url(); ?>"><img class="photos-large" src="<?php echo plogger_get_picture_thumb(THUMB_LARGE); ?>" title="<?php if ($picture_caption != '&nbsp;') { echo ard_truncate($picture_caption, 40); }else{ echo plogger_get_picture_date(); } ?>" alt="<?php if ($picture_caption != '&nbsp;') { echo ard_truncate($picture_caption, 40); }else{ echo plogger_get_picture_date(); } ?>" /></a></center>
    </div>

    <?php if (plogger_print_button() != '') { ?>
    <?php } ?>

    <p id="picture-description"><?php echo plogger_get_picture_description(); ?></p>
    <table border=0 width=400 align=center><tr>
    <tr><td colspan=2 align=center><font style="font-size:9px;color:#eeeeee;">Prints are made on highest quality glossy photo paper on photo printer. Quality is the same, or maybe even better than from photo lab.<br>Prices include transportation.</font><br><br></td></tr>
    <td width=90% colspan="2" align=center>


    <!-- Start of Script -->
    <SCRIPT language=javascript>
    function CalculateOrder(form)
    {

    if (form.os0.value == "JPEG")
    {
    form.amount.value = 5.00;
    form.item_number.value = "COYP-JPEG (<?php echo plogger_get_picture_id(); ?>)";
    form.shipping.value = "0.00";
    }

    if (form.os0.value == "7x5")
    {
    form.amount.value = 4.00;
    form.item_number.value = "COYP-7 x 5 (<?php echo plogger_get_picture_id(); ?>)";
    form.shipping.value = "1.00";
    }

    if (form.os0.value == "9x6")
    {
    form.amount.value = 9.00;
    form.item_number.value = "COYP-9 x 6 (<?php echo plogger_get_picture_id(); ?>)";
    form.shipping.value = "1.00";
    }
    }
    </SCRIPT>
    <!-- End of Script -->



    Running Metal Displays

    <!-- Start of Form -->
    <!-- Note: target=&quot;paypal&quot; was replaced with the variable target=&quot;_self&quot; -->
    <!-- Note: shopping_url also added to code -->
    <!-- These two changes allow better functionality with IE and Firefox -->
    <form target="_selfl" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="on0" value="Size">Select Size:&nbsp;&nbsp;
    <SELECT name="os0">
    <OPTION value="JPEG" selected>Image Only - &#163;5.00</OPTION>
    <OPTION value="7x5">7 x 5 Photogrpah - &#163;4.00</OPTION>
    <OPTION value="9x6">9 x 6 Photograph - &#163;10.00</OPTION>

    </SELECT>

    <INPUT onclick=CalculateOrder(this.form) type="image" alt="Make payments with PayPal - it's fast, free and secure!"
    src="https://www.paypal.com//en_US/i/btn/x-click-but22.gif" border=0 name="submit">
    <input type="hidden" name="add" value="1">
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="business" value="julia@marathonmemoriesnmore.com">
    <input type="hidden" name="item_name" value="Running Metal Display">
    <input type="hidden" name="amount">
    <input type="hidden" name="item_number">
    <input type="hidden" name="no_shipping" value="2">
    <input type="hidden" name="shipping">
    <input type="hidden" name="shopping_url" value="http://www.marathonmemoriesnmore.com/page1/page8/page8.html">
    <input type="hidden" name="return" value="http://marathonmemoriesnmore.com/successorder.html">
    <input name="cancel_return" value="http://marathonmemoriesnmore.com/cancel.html" type="hidden">
    <input type="hidden" name="currency_code" value="USD">
    <input type="hidden" name="lc" value="US">
    <input type="hidden" name="bn" value="PP-ShopCartBF">
    </FORM>

    <!-- End of Form -->



    There are no header and footer, as the pic page is embedded somewhere else.