Author Topic: How to give Money automatically to people at registration  (Read 2701 times)

Offline Nicole2

How to give Money automatically to people at registration
« on: October 23, 2006, 09:18:16 pm »
I am currently using the previosu version of teh shop but noticed that with the new release users can now be giving a certain amount of credits uppon registration. Could someone please let me know what code I would have to implement in my existing shop files so that I can do this as well?

Thank you,

Nicole

Offline Daniel15

Re: How to give Money automatically to people at registration
« Reply #1 on: October 27, 2006, 06:54:36 pm »
So, you want this feature for SMFShop 2.2? Here's the simple way to implement it:

Open Sources/Register.php (for SMF 1.0), or Sources/Subs-Members.php, (for SMF 1.1), and find:

'ID_POST_GROUP' => 4,

Add after:

	
// Begin SMFShop 2.3 (Build 11) code
	
	
'money' => 100,
	
	
// End SMFShop code
	



Change the '100' to whatever you want. This is similar to how it's implemented in SMFShop 2.3, except that SMFShop 2.3 allows you to change the value in the admin panel.


P.S Why don't you upgrade to SMFShop 2.3?

Offline Nicole2

Re: How to give Money automatically to people at registration
« Reply #2 on: October 30, 2006, 01:25:58 pm »
Thank you Daniel !