Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
June 19, 2013, 12:18:48 pm

Login with username, password and session length
Members
Total Members: 10807
Latest: GoldDigger1950
Stats
Total Posts: 32559
Total Topics: 5507
Online Today: 58
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 54
Total: 56
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: SMF Store - Move to Another Group Problem  (Read 3918 times)
NeoX
Newsletter Pro Customer
Inline PM Customer
*****
Offline Offline

Posts: 36


View Profile
« on: November 30, 2010, 05:29:13 pm »

Hi SmfHacks.com,
I have a little problem to move an user to another Group.
The store works perfectly, a global mod user for example is moved to a new group (gold member) but does not appear in the profile information.

However In Admin ----> Edit Membergroups this user appears at the same time as global mod and in new group (gold member).
I have Karma based groups mod installed, perhaps this problem does not affect normal users....

Another Problem is a blanck page when I want to give a free product to a user and when I press [Mark Order Completed]...

Thank you very much!  Smiley



  
« Last Edit: November 30, 2010, 06:24:39 pm by NeoX » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11051


View Profile
« Reply #1 on: November 30, 2010, 09:06:58 pm »

How membergroup move works. If the user has no primary group that group they are switched will become the primary group.
If the member already has a primary group then the product membergroup will be added as an additional membergroup for that member.


Quote
Another Problem is a blanck page when I want to give a free product to a user and when I press [Mark Order Completed]...
What SMF version are you running?
Logged
NeoX
Newsletter Pro Customer
Inline PM Customer
*****
Offline Offline

Posts: 36


View Profile
« Reply #2 on: December 01, 2010, 02:44:02 am »

Thank You SMFHacks!

Quote
What SMF version are you running?

Smf Store 1.3.8 on SMF 2RC1.2

Message Error:

Fatal error: Call to undefined function addMembersToGroup() in ...\Sources\Store2.php on line 4102

I can't now upgrade to 2.0RC3 or RC4... is there a way to resolve this problem with Smf Store 1.3.8 on SMF 2RC1.2?
Thank You! Smiley
« Last Edit: December 01, 2010, 07:09:14 am by NeoX » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11051


View Profile
« Reply #3 on: December 01, 2010, 08:32:07 am »

I thought fixed some of those issues with new SMF Store updates. You should be able to use the latest SMF Store on SMF 2 rc1.2
Logged
NeoX
Newsletter Pro Customer
Inline PM Customer
*****
Offline Offline

Posts: 36


View Profile
« Reply #4 on: December 01, 2010, 10:42:22 am »

I thought fixed some of those issues with new SMF Store updates. You should be able to use the latest SMF Store on SMF 2 rc1.2

Yes it is true...
but with last version of your mod Smf gallery, store, downloads etc and with old theme overview from Dzinner studio on SMF2 rc1.2 I have thi problem:

Correct:

http://i52.tinypic.com/6fppx4.jpg

Wrong:

http://i52.tinypic.com/wrf33l.jpg

 Cry

Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11051


View Profile
« Reply #5 on: December 01, 2010, 10:46:08 am »

Hmm, yeah you will probably will have to update to new version SMF at some point 1.2 is pretty old at this point.
Logged
NeoX
Newsletter Pro Customer
Inline PM Customer
*****
Offline Offline

Posts: 36


View Profile
« Reply #6 on: December 01, 2010, 11:20:58 am »

Now the store work perfect I have change this code....is that correct?


Code:
// Update the User's Group if there is a group
if ($row['ID_GROUPToMove'] != 0 && $memid != 0)
{
$groupid = $row['ID_GROUPToMove'];
$groupexpiredays = $row['groupexpiredays'];


require_once($sourcedir . '/Subs-Members.php');
addMembersToGroup($memid, $groupid, 'auto');

$currentdate = time();

With this:

Code:
// Update the User's Group if there is a group
if ($row['ID_GROUPToMove'] != 0 && $memid != 0)
{
$groupid = $row['ID_GROUPToMove'];
$groupexpiredays = $row['groupexpiredays'];


require_once($sourcedir . '/Subs-Members.php');
require_once($sourcedir . '/Subs-Membergroups.php');
addMembersToGroup($memid, $groupid, 'auto', true);

$currentdate = time();

Thank you  Smiley


Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11051


View Profile
« Reply #7 on: December 01, 2010, 01:35:51 pm »

Yeah
Logged
Xtreme4U2NV
SMF Store Customer
Jr. Member
*****
Offline Offline

Posts: 67


View Profile
« Reply #8 on: July 06, 2011, 08:11:02 pm »

How membergroup move works. If the user has no primary group that group they are switched will become the primary group.
If the member already has a primary group then the product membergroup will be added as an additional membergroup for that member.


Quote
Another Problem is a blanck page when I want to give a free product to a user and when I press [Mark Order Completed]...
What SMF version are you running?

SMF 2.0 RC5
SMF Store version 1.4

My problem is this; when people make a purchase, they are not moved/added in to the chosen group that I selected in the item setup.

Yes, they already have a primary group, and I understand they should at least be in the group in the secondary section, but they aren't even in that.

They aren't moved one way or another.

Thoughts?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11051


View Profile
« Reply #9 on: July 06, 2011, 08:44:41 pm »

Is the purchase marked as completed?
Also attach your Subs-Members.php
Logged
Xtreme4U2NV
SMF Store Customer
Jr. Member
*****
Offline Offline

Posts: 67


View Profile
« Reply #10 on: July 06, 2011, 09:01:18 pm »

Is the purchase marked as completed?
Also attach your Subs-Members.php

When I look at their transaction, there is "[Mark Order NOT Completed]" so I am assuming it is complete.

Subs-Members.php attached.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11051


View Profile
« Reply #11 on: July 06, 2011, 09:08:37 pm »

Hmm do you have anything in this mysql table
smf_store_group_log
Logged
Xtreme4U2NV
SMF Store Customer
Jr. Member
*****
Offline Offline

Posts: 67


View Profile
« Reply #12 on: July 06, 2011, 09:13:39 pm »

Hmm do you have anything in this mysql table
smf_store_group_log

One entry, see attached pic.
Logged
Xtreme4U2NV
SMF Store Customer
Jr. Member
*****
Offline Offline

Posts: 67


View Profile
« Reply #13 on: July 12, 2011, 08:08:32 pm »

Have had a few more purchases lately.  SMF Store is still not moving the people over.  Even if they do or do not already have a main membergroup.

Screenshot of smf_store_group_log attached.

EDIT:  Just wanted to bring something up, don't know if it has an effect on this or not.  My forum was originally under a different name, and before installing the store, I moved my forum to the new domain, using SMF's database correction thins to the new domain would work with the db.  I have no idea if that would effect things.

EDIT Again:  And if they aren't automatically moved to the selected membergroup, and I do it myself, does that mean the time I set for them to be in that group will also not work?
« Last Edit: July 12, 2011, 08:12:06 pm by Xtreme4U2NV » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11051


View Profile
« Reply #14 on: July 13, 2011, 09:37:34 pm »

Will recheck it soon just remind me. I need to figure out what part is failing might be the SMF add group code will need to do some testing.
Seems like it gets to point to add the group since it is logged in db in group_log
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 03:45:00 am]

[June 18, 2013, 07:27:33 am]

[June 18, 2013, 06:10:04 am]

[June 17, 2013, 12:27:50 pm]

[June 16, 2013, 08:17:21 pm]

[June 16, 2013, 07:29:04 am]

[June 15, 2013, 08:34:38 pm]

[June 14, 2013, 10:28:18 pm]

[June 13, 2013, 11:00:52 pm]

[June 12, 2013, 03:37:47 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.196 seconds with 20 queries.