Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...All Other Forge...All Other Forge...Coding Help Needed:  Paypal Button with Drop Down Menu selection - creation with Java ScriptCoding Help Needed: Paypal Button with Drop Down Menu selection - creation with Java Script
Previous
 
Next
New Post
5/25/2014 12:55 AM
 

Hi,

I am not sure if this the right place to post this as I have never been here before.  Sorry if it is not in the right location.

I am trying to use the Web HTML code provided by PayPal when you create a button.  Mine all have drop down menu's, this one I am working on only has one item.  I have spent hours trying to figure out what I am missing.  Coding is not a strength of mine at least not to this degree.

i have encountered two problems 1) in the preview I can see the button and the dropdown menu.  when i save it (publish) it, it does not match the preview.  it has a buy it now button; however no menu items.  just the menu header.  and 2) the buy it now button does not go to the paypal page, it stays on the website.

i can only use java script and not iframe.  i know that DNN does not like the 'form' so i took that out.

here is the coding i am trying to get work...


Add onClick=”this.form.action=’https://www.paypal.com/cgi-bin/webscr’; this.form.submit(); action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="MTACHULPDV294">
<table>
<tr><td><input type="hidden" name="on0" value="Cat Tails">Cat Tails</td></tr><tr><td><select name="os0">
    <option value="Cat Tails - Single (One)">Cat Tails - Single (One) $5.00 USD</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.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">

-------------------------------------------------------
and here is the original code...

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="MTACHULPDV294">
<table>
<tr><td><input type="hidden" name="on0" value="Cat Tails">Cat Tails</td></tr><tr><td><select name="os0">
    <option value="Cat Tails - Single (One)">Cat Tails - Single (One) $5.00 USD</option>
</select> </td></tr>
</table>
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.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 help would be appreciated, as i have client who is waiting on this to be repaired.  thank you.

 

 
New Post
5/25/2014 3:33 AM
 
you cannot insert scripts in the body of HTML module, it will get filtered out.
You should be able though to insert it in module header or footer text box in module settings.

Cheers from Germany,
Sebastian Leupold (Microsoft MVP)

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/1/2014 1:10 PM
 

Hi Sebastian,

Thank you for your response.  I am not sure what you mean as I am not that familiar with the DNN platform.  I have been using FrontPage and I am now attempting to learn the DNN platform.

From what I can understand the you can not use a drop down menu in DNN unless you have a module and this is not a option.

I am not sure what to do at this point.  I need to move forward with this and I will have to ask my client to settle for single paypal buttons that I can set up using HTML.

Thank you for your help.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...All Other Forge...All Other Forge...Coding Help Needed:  Paypal Button with Drop Down Menu selection - creation with Java ScriptCoding Help Needed: Paypal Button with Drop Down Menu selection - creation with Java Script


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out