OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



How to get user_id on the Registration Payment page?

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
What to do if you have a technical problem with OCS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved. Please note that this FAQ is OJS-centric, but most issues are applicable to both platforms.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OCS Conference Support and Discussion subforum; if you have a development question, try the OCS Development subforum.

How to get user_id on the Registration Payment page?

Postby GennadyK » Tue Nov 13, 2007 2:16 pm

Hi,

We need to get registration_id to redirect user from Registration Payment page to external shopping cart. Below some more explanations.
Registration Payment page:
http://www.geriatricsjournals.ca/ocs/in ... f/register
Pls point us where we can find php code to make required modifications.

Thank you,
Gennady

We would like to set up payments the way OCS(in Manual payment mode) will pass registration_id to external shopping cart(online store) that will (in case of successful payment) update payments directly in the OCS database.
Something like
http://www.our_domain.ca/store/Shopping ... tion_id=33
Could you please help us with what needs to be updated in the OCS database when payment is done.

The only changes we found - in registrations table, `date_registered`,`date_paid`

(5,2,8,1,'2007-11-08',NULL,NULL,NULL,NULL,NULL)
(5,2,8,1,'2007-11-13','2007-11-13',NULL,NULL,NULL,NULL)

Is that about right?
Last edited by GennadyK on Wed Jan 16, 2008 12:38 pm, edited 1 time in total.
GennadyK
 
Posts: 19
Joined: Tue Apr 24, 2007 9:16 am

Re: How to get user_id on the Registration Payment page?

Postby asmecher » Tue Nov 13, 2007 2:24 pm

Hi Gennady,

Yes, that's correct -- an entry needs to be made in the registrations table.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9214
Joined: Wed Aug 10, 2005 12:56 pm

Re: How to get user_id on the Registration Payment page?

Postby GennadyK » Tue Nov 13, 2007 2:32 pm

Thank you, Alec

I thought it will be easy to do this, but it's not.
Anyway we did it! Hooray!

Gennady
Last edited by GennadyK on Fri Nov 16, 2007 10:25 am, edited 3 times in total.
GennadyK
 
Posts: 19
Joined: Tue Apr 24, 2007 9:16 am

Re: How to get user_id on the Registration Payment page?

Postby asmecher » Tue Nov 13, 2007 2:35 pm

Hi Gennady,

That page is implemented in classes/registration/form/UserRegistrationForm.inc.php.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9214
Joined: Wed Aug 10, 2005 12:56 pm


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest