Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12388
Latest: Rands
New This Month: 5
New This Week: 0
New Today: 0
Stats
Total Posts: 40314
Total Topics: 7100
Most Online Today: 97
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 46
Total: 46

Author Topic: Discovered a critical issue with membergroup purchases  (Read 4300 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: 15151
    • 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: 15151
    • 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: 15151
    • 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
4464 Views
Last post June 10, 2007, 07:38:35 pm
by SMFHacks
3 Replies
3137 Views
Last post June 27, 2010, 08:53:02 pm
by SMFHacks
3 Replies
2966 Views
Last post May 27, 2012, 06:09:09 pm
by SMFHacks
4 Replies
4278 Views
Last post August 10, 2012, 09:51:49 am
by amwebby
8 Replies
4291 Views
Last post November 17, 2013, 05:14:53 pm
by amwebby

+- Recent Topics

Quality of images after import by SMFHacks
September 05, 2020, 10:21:44 am

How do I download gallery images? by CWVRV
August 30, 2020, 11:50:07 pm

Deleting Empty Galleries by SMFHacks
August 30, 2020, 11:43:32 am

PHP error by davejo
August 25, 2020, 07:35:13 am

Permissions to list ads and buy items by CWVRV
August 21, 2020, 05:19:45 pm

Doubt with download permissions. by Rock Lee
August 20, 2020, 08:23:24 pm

Attachment images Upsidedown or Sideways by SMFHacks
August 18, 2020, 05:41:07 pm

[Mod]Avatars Display Integration by Hatshepsut
August 17, 2020, 11:39:54 pm

Simple Portal Block - Classifieds by SMFHacks
August 16, 2020, 09:56:48 am

SMF Links by SMFHacks
August 16, 2020, 08:03:42 am

Powered by EzPortal