Keyword

Placing Paypal button in extra field

  • Keith Dick
  • Keith Dick's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 1 month ago #101880 by Keith Dick
Placing Paypal button in extra field was created by Keith Dick
I am trying to add a paypal button into an extra field in K2.

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.

More
12 years 1 month ago #101881 by Lefteris
Replied by Lefteris on topic Re: Placing Paypal button in extra field
Hi. Go to Joomla! global configuration and check the text filters settings. You should have no filtering to your group. After that you should probably be able to add the code to textarea extra fields.

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
  • Keith Dick's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 1 month ago #101882 by Keith Dick
Replied by Keith Dick on topic Re: Placing Paypal button in extra field
Thanks for the suggestions Lefteris ,

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.

More
12 years 1 month ago #101883 by Lefteris
Replied by Lefteris on topic Re: Placing Paypal button in extra field
What part of the code is stripped down? You should get not stripping when adding a new one. Note that this is valid only for textareas.

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
  • Keith Dick's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 1 month ago #101884 by Keith Dick
Replied by Keith Dick on topic Re: Placing Paypal button in extra field
Having set up the extra field as a text field paste the code:

<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." /> www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1" />

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.

More
12 years 1 month ago #101885 by Lefteris
Replied by Lefteris on topic Re: Placing Paypal button in extra field
Hi. Did you try to place the code in a textarea field type as i advised you? Use textarea as field type and it should work. Another option would be to write a simple plugin for doing this.

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
  • Keith Dick's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 1 month ago - 12 years 1 month ago #101886 by Keith Dick
Replied by Keith Dick on topic Re: Placing Paypal button in extra field
Thanks for the help Lefteris,

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.

More
12 years 1 month ago #101887 by Lefteris
Replied by Lefteris on topic Re: Placing Paypal button in extra field
OK, just tested under Joomla! 2.5 with no issues. I was able to place the code without issues. Are you using K2 2.5.7? If not update. If yes, try to install the SVN version of K2 at getk2.org/assets/svn/. If you still have the issue then probably you need to check your configuration again.

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
  • Keith Dick's Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 1 month ago #101888 by Keith Dick
Replied by Keith Dick on topic Re: Placing Paypal button in extra field
I'm using Joomla! 2.5.6 and K2 v2.5.7.

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.

More
12 years 1 month ago #101889 by Lefteris
Replied by Lefteris on topic Re: Placing Paypal button in extra field
SVN version is not always safe to use. But currently it contains very minor changes compared to the 2.5.7 so you should have no issues.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum