Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12374
Latest: LevelLord
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 40212
Total Topics: 7082
Most Online Today: 81
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 49
Total: 49

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

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 657
    • 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: 15106
    • 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: 657
    • 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: 15106
    • 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: 657
    • 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: 15106
    • 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
4435 Views
Last post June 10, 2007, 07:38:35 pm
by SMFHacks
3 Replies
3109 Views
Last post June 27, 2010, 08:53:02 pm
by SMFHacks
3 Replies
2938 Views
Last post May 27, 2012, 06:09:09 pm
by SMFHacks
4 Replies
4238 Views
Last post August 10, 2012, 09:51:49 am
by amwebby
8 Replies
4254 Views
Last post November 17, 2013, 05:14:53 pm
by amwebby

+- Recent Topics

Download System Lite by Rock Lee
June 03, 2020, 07:34:24 pm

Font question by SMFHacks
May 27, 2020, 08:15:26 am

Error message with latest SMF 2.1 Github build by Hatshepsut
May 25, 2020, 01:43:26 am

smfblog not working on 2.0.17 by tech9
May 20, 2020, 01:44:34 pm

Copyright removal by stbc
May 18, 2020, 01:27:57 am

Mod Verified User i can't square the image by Rock Lee
May 07, 2020, 07:56:10 pm

SMF4Mobile 2.0 released for SMF 2.0.x by SMFHacks
May 06, 2020, 12:13:14 pm

SMF Social Login Pro - Discontinued? by Nicole
May 02, 2020, 05:47:04 pm

Likes by SMFHacks
April 30, 2020, 09:50:35 pm

Upgrade Issue - by SMFHacks
April 28, 2020, 12:40:13 pm

Powered by EzPortal