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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

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: 10015
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: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to OCS Technical Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest