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: 64
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 161
Total: 161

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

0 Members and 1 Guest are viewing this topic.

Offline shuban

  • Hero Member
  • *****
  • Posts: 665
    • View Profile
    • Biology Forums
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: 16436
    • 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: 665
    • View Profile
    • Biology Forums
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: 16436
    • 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: 665
    • View Profile
    • Biology Forums
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: 16436
    • 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
4971 Views
Last post June 10, 2007, 07:38:35 pm
by SMFHacks
3 Replies
3987 Views
Last post June 27, 2010, 08:53:02 pm
by SMFHacks
3 Replies
3737 Views
Last post May 27, 2012, 06:09:09 pm
by SMFHacks
4 Replies
5707 Views
Last post August 10, 2012, 09:51:49 am
by amwebby
8 Replies
5265 Views
Last post November 17, 2013, 05:14:53 pm
by amwebby

+- 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