Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 205
Total: 205

Author Topic: SMF Store - Move to Another Group Problem  (Read 15348 times)

0 Members and 1 Guest are viewing this topic.

Offline NeoX

  • Member
  • *
  • Posts: 36
    • View Profile
SMF Store - Move to Another Group Problem
« 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!  :)



  
« Last Edit: November 30, 2010, 06:24:39 pm by NeoX »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: SMF Store - Move to Another Group Problem
« 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?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline NeoX

  • Member
  • *
  • Posts: 36
    • View Profile
Re: SMF Store - Move to Another Group Problem
« 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! :)
« Last Edit: December 01, 2010, 07:09:14 am by NeoX »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: SMF Store - Move to Another Group Problem
« 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
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline NeoX

  • Member
  • *
  • Posts: 36
    • View Profile
Re: SMF Store - Move to Another Group Problem
« 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

 :'(


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: SMF Store - Move to Another Group Problem
« 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.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline NeoX

  • Member
  • *
  • Posts: 36
    • View Profile
Re: SMF Store - Move to Another Group Problem
« Reply #6 on: December 01, 2010, 11:20:58 am »
Now the store work perfect I have change this code....is that correct?


Code: [Select]
// 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: [Select]
// 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  :)



Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: SMF Store - Move to Another Group Problem
« Reply #7 on: December 01, 2010, 01:35:51 pm »
Yeah
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Xtreme4U2NV

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: SMF Store - Move to Another Group Problem
« 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?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: SMF Store - Move to Another Group Problem
« Reply #9 on: July 06, 2011, 08:44:41 pm »
Is the purchase marked as completed?
Also attach your Subs-Members.php
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Xtreme4U2NV

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: SMF Store - Move to Another Group Problem
« 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.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: SMF Store - Move to Another Group Problem
« Reply #11 on: July 06, 2011, 09:08:37 pm »
Hmm do you have anything in this mysql table
smf_store_group_log
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Xtreme4U2NV

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: SMF Store - Move to Another Group Problem
« 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.

Offline Xtreme4U2NV

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: SMF Store - Move to Another Group Problem
« 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 »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: SMF Store - Move to Another Group Problem
« 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
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
4774 Views
Last post March 06, 2007, 03:30:09 pm
by Xtreme4U2NV
1 Replies
4476 Views
Last post December 30, 2007, 09:53:01 pm
by SMFHacks
0 Replies
3843 Views
Last post February 06, 2008, 10:03:14 am
by syntax
3 Replies
4970 Views
Last post December 22, 2008, 07:44:41 pm
by SMFHacks
1 Replies
6438 Views
Last post April 16, 2011, 12:28:54 pm
by frustrated

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal