Forums

Registration

Click here to register. Registration is required if you want to post to the forums.

If you register, we can also contact you with news on new module versions, and upgrades to new modules as we make them available. 

Use of your registration information is subject to our privacy policy.

Inventua Forums

Subject: Pay Pal Module
Prev Next
Topic is locked

Author Messages
David Sullivan
Posts:8

23 Feb 2006 5:52 AM  

Is it possible to have multiple instances of the same module on the same page?  I have a page set up this way and have been testing in PayPal Sandbox and no matter which Buy Now button I click it always pulls over the amount from the last instance on the page.

Anthony Glenwright
Posts:11258

23 Feb 2006 4:30 PM  
I've just done a review of the code - and it turns out that you can't have two instances of the PayPal module on the same page because of the way information is posted to PayPal in combination with the way ASP.NET works.

In ASP.NET (and DNN), a single "FORM" element is rendered. In the PayPal module, we include specific INPUT fields which are submitted to PayPal which tell it what to do. When you put two instances of the PayPal module on a page, they are both in the same form element that gets submitted to PayPal, and the values get truncated.
David Sullivan
Posts:8

24 Feb 2006 6:23 AM  

Thank you very much for the prompt reply.  Though this isn't what I would have liked to hear, it is nice to know it isn't some goofy configuration issue on my end. 

Thanks again.

Anthony Glenwright
Posts:11258

24 Feb 2006 9:45 AM  

It isn't what I wanted to hear, either )-:  No promises, but we will be looking to find a way to address this issue, probably some client-side scripting to "copy" the relevant instance's data to the PayPal form fields instead of just rendering them at the server side.  This will take a while, to research and get done, though - and of course, there's always our other commitments (for example, I am currently spending a fair bit of time working on the new core documents module).

Keep an eye out for a new release, either by watching for a new version at http://www.inventua.com/dnn-paypal.content or by using DNNUpdate.

Anthony Glenwright
Posts:11258

24 Feb 2006 9:46 AM  
FYI: I've moved your post to the enhancements forum because this is where we track enhancement requests (and making the PayPal module work with multiple instances on a page will be an enhancement).
Anthony Glenwright
Posts:11258

17 Feb 2007 10:25 AM  
FYI: The current version of PayPal now supports multiple paypal modules on a single page.
Topic is locked



ActiveForums 3.7