- Posts: 25
COMMUNITY FORUM
Placing Paypal button in extra field
- Keith Dick
-
Topic Author
- Offline
- Junior Member
When I do this the button appears in the field but when clicked it reloads the page.
I have looked at the generated code and it appears to have stripped out the url.
If I add the code directly into the content area it works as expected.
Is there a way I can get this to work within an extra field?
Thanks.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Keith Dick
-
Topic Author
- Offline
- Junior Member
- Posts: 25
I have checked in the Joomla global cofiguration and Super Users and Administrator are both set to 'no filtering'.
I have also checked the 'Content Cleanup' setting in K2 nad they are all set to either 'no' or 'disabled'.
It accepts some of the code as when viewing the article the button is shown however when clicked it just refreshes the page instead of taking you to the paypal site.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Keith Dick
-
Topic Author
- Offline
- Junior Member
- Posts: 25
<form action="www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="GV49BAUW4EJAQ">
<input type="image" src="www.paypalobjects.com/en_GB/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online.">
<img alt="" border="0" src="www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
All that displays in the front end is "form method="
Using the text area it shows the "Buy Now" button as it shoul but when clicked it refreshes the page instead of going to the PayPal site.
When looking at the code in the text field it has been altered to:
<form method="post"> <input type="hidden" name="cmd" value="_s-xclick" /> <input type="hidden" name="hosted_button_id" value="GV49BAUW4EJAQ" /> <input type="image" src="www.paypalobjects.com/en_GB/i/btn/btn_buynow_SM.gif" border="" name="submit" alt="PayPal — The safer, easier way to pay online." />
I have tried pasting this into the basic editor and using the HTML button and still get the same results.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Keith Dick
-
Topic Author
- Offline
- Junior Member
- Posts: 25
I have tried both 'text field' and 'textarea field' neither work.
Another option would be to write a simple plugin for doing this
The words 'write a plugin' and 'simple' don't go together for me :unsure: .........I wouldn't know where to start.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Keith Dick
-
Topic Author
- Offline
- Junior Member
- Posts: 25
I will try the SVN on a trial site first to see what happens.
Is the SVN stable enough for a live site?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Keith Dick
-
Topic Author
- Offline
- Junior Member
- Posts: 25
I will try it on the live site now.
Thanks for your help.
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.