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.
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.
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?
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
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.
I am using the tempalte that was standard in the starter kit and just changed the Paypal code.
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
is working on a reply...