Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12356
Latest: how to logo design
New This Month: 7
New This Week: 0
New Today: 0
Stats
Total Posts: 40076
Total Topics: 7055
Most Online Today: 30
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 32
Total: 32

Author Topic: Discovered a critical issue with membergroup purchases  (Read 4185 times)

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 653
    • View Profile
    • Homework Clinic - Your Academic Lifeline
Discovered a critical issue with membergroup purchases
« on: July 28, 2016, 01:02:51 pm »
Currently, if a person renews the *same* product before the first product has expired, it will not add the two durations.

For example, product A expires in 7 days. If I by product A again tomorrow (i.e. a day has gone by), it should update the database by adding the days together, making it 13 days. Instead what it does is give you 7 days again.

So what needs to be done is when smf_store_group_log is being updated after a purchase, look for ID_MEMBER and ID_GROUPTomove columns and instead of adding a new row entry into the table, it adds to the groupexpiredays column the number of days

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15040
    • View Profile
Re: Discovered a critical issue with membergroup purchases
« Reply #1 on: July 28, 2016, 08:46:53 pm »
Posted update which should help

Version 2.5.7
!Fixed if the same membership subscription is bought keep the date to expire as the new date.
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 shuban

  • Hero Member
  • *****
  • Posts: 653
    • View Profile
    • Homework Clinic - Your Academic Lifeline
Re: Discovered a critical issue with membergroup purchases
« Reply #2 on: July 28, 2016, 09:57:17 pm »
So this will sum up the number of days left to expire if the member buys the same membership?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15040
    • View Profile
Re: Discovered a critical issue with membergroup purchases
« Reply #3 on: July 28, 2016, 10:33:07 pm »
It sets the the current date as today for membergroup then sets the expire date as the number of days based on the item ordered.
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 shuban

  • Hero Member
  • *****
  • Posts: 653
    • View Profile
    • Homework Clinic - Your Academic Lifeline
Re: Discovered a critical issue with membergroup purchases
« Reply #4 on: July 28, 2016, 11:31:58 pm »
Does it add another entry into smf_store_group_log or updates it?

Sorry, I'm still not understanding the logic :(

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 15040
    • View Profile
Re: Discovered a critical issue with membergroup purchases
« Reply #5 on: July 28, 2016, 11:45:42 pm »
It updates the existing one it is exists for the same member and group id
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
1 Replies
4405 Views
Last post June 10, 2007, 07:38:35 pm
by SMFHacks
3 Replies
3057 Views
Last post June 27, 2010, 08:53:02 pm
by SMFHacks
3 Replies
2881 Views
Last post May 27, 2012, 06:09:09 pm
by SMFHacks
4 Replies
4194 Views
Last post August 10, 2012, 09:51:49 am
by amwebby
8 Replies
4230 Views
Last post November 17, 2013, 05:14:53 pm
by amwebby

+- Recent Topics

Cannot install Gallery Pro on SMF 2.1 RC2 by Hatshepsut
March 19, 2020, 12:55:00 am

Newbie questions by SMFHacks
March 08, 2020, 09:28:17 am

Update detect mobile mode PHP5 to PHP7 by Plus
March 05, 2020, 11:19:05 am

Just a hello by Plus
March 05, 2020, 11:05:56 am

Enotify Copyright Problem by SMFHacks
March 04, 2020, 09:21:09 pm

Cannot import by shawnb
March 02, 2020, 12:17:00 pm

Error message with latest SMF 2.1 Github build by Hatshepsut
March 01, 2020, 10:06:10 am

[Mod]Avatars Display Integration by SMFHacks
February 15, 2020, 07:30:47 pm

[Mod]BBC Message Boxes 1.0 by SMFHacks
February 15, 2020, 07:26:46 pm

[Mod]Stack Trace by live627 by SMFHacks
February 15, 2020, 07:21:33 pm

Powered by EzPortal