Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tim Salter 17 posts 47 karma points
    Jan 20, 2012 @ 05:58
    Tim Salter
    0

    PaypalButton.xlst issue

    I am using the Paypal Button macro, which uses the PaypalButton.xslt file and am having an issue. When I insert the macro into one of my pages, click on it, the page simply refreshes and does not link to Paypal.

    Here is the code in the xslt file:

    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_s-xclick" />
    <input type="hidden" name="hosted_button_id" value="XXXXXXXXXXXXXXXXX" />
    <input type="hidden" name="item_name" value="Donation" />
    <input type="hidden" name="currency_code" value="USD"/>
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" />
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"/>
    </form>

    Any ideas?

    Thank you,
    Tim

  • Rodion Novoselov 694 posts 859 karma points
    Jan 20, 2012 @ 06:04
    Rodion Novoselov
    0

    Hi. Doesn't the "form" tag of your macro happen to end up inside an another higher "form" tag (like a conventional top-level asp.net <form runat="server"> one that usually resides on the master page i.e. an umbraco template)? According to the standards "form" tags cannot be nested and I suppose the behaviour can be unpredictable in such a case.

  • Tim Salter 17 posts 47 karma points
    Jan 22, 2012 @ 01:16
    Tim Salter
    0

    I am using the tempalte that was standard in the starter kit and just changed the Paypal code. 

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jan 22, 2012 @ 10:35
    Jan Skovgaard
    0

    Hi Tim

    What template are you reffering to? I suppose you're running a shop like tea-commerce of uWebshop or something like that? And is the above the only change you have made?

    /Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies