Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Sending a total to Paypal
Last Post 03-16-2010 10:00 AM by Joe Craig. 8 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Joe CraigUser is Offline
going with the flow
going with the flow
Posts:58
Avatar

--
03-15-2010 02:15 PM

     I'm  having trouble creating a total and passing the result to Paypal, or anywhere else.

    Here is the situation:  I have and event, and there are three checkboxes on the form.  What is checked determines the price charged for the event.  I have a hidden field named Total into which I want to put the total amount, and use that for sending the total to Paypal.  I have the initial value set in this field to 389.

    I have the following code:

    function CalcFormTotal() { 

    var n;

    n=389;

    var re = document.getElementById('dnn_ctr498_DynamicForms_Responses_3f55602e-0a71-4482-978d-fc605f12963c');

    var sc = document.getElementById('dnn_ctr498_DynamicForms_Responses_e36d3527-9b60-4071-ad99-4d8ed19dc2ac');

    var st = document.getElementById('dnn_ctr498_DynamicForms_Responses_daa1ef7e-d3cf-4713-b1e6-59fb3a5ebf4b');

    if( sc.checked) n=379;

    if( st.checked) n=359

    var tot = document.getElementById('dnn_ctr498_DynamicForms_Responses_006c46a3-baa1-4ed0-89bd-4b8a9b444151');

                    tot.innerText = n;

             }

     

    This is added as custom javascript.  I also added a call to this routine in the javascript section when the submit button is clicked.

     

    All of this works just fine, except that the total isn't set up correctly.  

     

    Actually, if I view the form in IE, this works correctly.  But, neither Firefox nor Chrome do this correctly.  It appears that these browsers don't support InnerText, or something.

     

    Can someone help?

    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    03-15-2010 02:59 PM

    Hi Joe,

    I did hear that InnerText won't work.  How about you use another hidden field that you call Amount.  You can say something like $(Total) = $(Amount) then use that to pass to PayPal insted?  Let us know how that works for you.  Thanks!

    Candace

     

    Joe CraigUser is Offline
    going with the flow
    going with the flow
    Posts:58
    Avatar

    --
    03-15-2010 03:09 PM
    Thanks, Candace.

    I think that I need a bit more help. How will I get a value into Amount?
    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    03-15-2010 03:55 PM

    Let me point you first to Demo #20 in our Form Demos.  You'll see for the Grand Total,  we have calculations for an innerHTML total but in addition, there is a GrandTotalHidden field which is used to pass the variable to PayPal. Thanks!

    Candace

    Joe CraigUser is Offline
    going with the flow
    going with the flow
    Posts:58
    Avatar

    --
    03-15-2010 05:22 PM
    Thanks, Candace!

    I got past that hurdle, now I have another one. I have three completion events, two emails and one redirection. The redirection works, but the emails are not being sent. It I turn off Paypal, then they do get sent.

    I attached all three events to the successful completion of Paypal.

    Any ideas?
    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    03-16-2010 07:26 AM

    Nice progress, Joe! 

    Now, I'll point you to this blog on Completion Events and PayPal.   Most issues are fixed by one of the pointers here.  If the problem continues, please come back and give us details of your results.  Thanks!

    Candace

    Joe CraigUser is Offline
    going with the flow
    going with the flow
    Posts:58
    Avatar

    --
    03-16-2010 09:12 AM
    Thanks. I can't make the Sandbox work, at least in terms of sending email. But, if I turn off the gateway, the emails get sent.

    So, I was tempted to try the production Paypal, and that does work. The payment went through, and the emails get sent.

    Now I have another problem: I want to edit the emails. I edited one and saved the event. But, the changes don't seem to have been made. Is this an error in Dynamic Forms, or is this something that I am doing?
    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    03-16-2010 09:18 AM

    There must have been some setting on your Sandbox that was causing the IPNs to not get sent.

    Regarding editing emails.  There is a known issue with AJAX and the FCK Editor.  Can you please check in Module Configuration and make sure that AJAX is disabled then edit the email again?   If the changes still don't stick, edit the email event once more, but this time, before you hit update, switch the editor from rich-text to basic.  That should do the trick.  Thanks!

    Candace

    Joe CraigUser is Offline
    going with the flow
    going with the flow
    Posts:58
    Avatar

    --
    03-16-2010 10:00 AM
    Thanks. I think that I'm almost done with this project!
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi