Advertisement:

Author Topic: How to charge for registration?  (Read 2802 times)

365local

  • Newbie
  • *
  • Posts: 8
How to charge for registration?
« on: April 12, 2014, 09:21:39 pm »
I currently charge users to register for 12 months.   I have disable registration on os class, requiring every new user to pay and register separately, is there a way to enable registration but direct new users to a payment page before aces is granted?

current registration page =http://www.365local.co.uk/register.html   
This then redirects the user after payment to an account setup page that informs admin to set up a new user, however this is a manual routine...is there a better way to achieve this?

Main osclass site = http://www.mikes-web.biz/Local365/

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How to charge for registration?
« Reply #1 on: April 14, 2014, 10:41:11 am »
@365local
No option for this now, but you would need to create plugin that allow it and:
- create account - disabled (inactive)
- redirect to payment page - in order to activate account, user needs to pay
- when payment successful, redirect to user profile and activate account

This should work pretty well :)

365local

  • Newbie
  • *
  • Posts: 8
Re: How to charge for registration?
« Reply #2 on: April 14, 2014, 12:16:23 pm »
Thanks for the response, pretty much what I've done....but outside of OSclass see www.365local.co.uk
is there a way on completion payment to redirect to the OSclass user profile page directly? to avoid having to setup a user, then tell them to go to profile page to complete their details?

Thanks

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How to charge for registration?
« Reply #3 on: April 14, 2014, 12:46:38 pm »
@365local
Actually it is user choice, you can only add text that would lead them to fill user details. It is not in registration field because it is not mandatory to post new listing...

365local

  • Newbie
  • *
  • Posts: 8
Re: How to charge for registration?
« Reply #4 on: April 16, 2014, 05:47:55 pm »
Thanks frosticek,

is there a way of redirecting to a registration page.
I tried http://www.MYSITE.co.uk/oc-content/themes/bender/user-register.php but that obviously didn't work.

Could I hide the registration link from the main page (Same text colour to background colour?), then user registration could be enabled, but only accessible through a link I could redirect to?

I may possibly be talking out of my rear of course!
Mike

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How to charge for registration?
« Reply #5 on: April 17, 2014, 11:06:00 am »
@365local
Work like pro and use build-in functions ;)

Code: [Select]
<?php echo osc_register_account_url(); ?>

365local

  • Newbie
  • *
  • Posts: 8
Re: How to charge for registration?
« Reply #6 on: April 17, 2014, 11:50:10 am »
Thanks Frosticek,
But I have no idea what to do with your code? could you explain what this will do and how to implement?   Sorry apart from following exact instructions, I have no coding experience.
Thanks again

Mike

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How to charge for registration?
« Reply #7 on: April 17, 2014, 11:55:43 am »
@365local

Quote
I tried http://www.MYSITE.co.uk/oc-content/themes/bender/user-register.php but that obviously didn't work.

Use this url:
Code: [Select]
<?php echo osc_register_account_url(); ?>

365local

  • Newbie
  • *
  • Posts: 8
Re: How to charge for registration?
« Reply #8 on: April 17, 2014, 02:34:45 pm »
Sorry, use it where?   my site url is : www.mikes-web.biz/Local365/ do I add this bit to the address osc_register_account_url ?


frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How to charge for registration?
« Reply #9 on: April 17, 2014, 04:14:55 pm »
@365local
You can find more info about helpers functions here:
http://doc.osclass.org/HDefines.php

365local

  • Newbie
  • *
  • Posts: 8
Re: How to charge for registration?
« Reply #10 on: April 17, 2014, 04:40:28 pm »
I appreciate your time & help, but I do need a bit of instruction, I know nothing about PHP, so do I put the helper code into another file?   
is this the Hdefines file, do I just copy and paste into the file.

Do I need to add anything to the code, then how do I use the register_account URL

I cant see anywhere on DOCUMENTATION that explains how to use helpers


frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: How to charge for registration?
« Reply #11 on: April 18, 2014, 03:12:50 pm »
@365local
If you do not know php basics, you will not be able create working plugin, that is 100% truth.

Usually helper functions that returns any value are called as <?php echo osc_helper_function(); ?>