By RRobert on Tuesday, 04 June 2019
Posted in General Issues
Replies 9
Likes 0
Views 549
Votes 0
Hi, i ned some help to configure sql query, i don't know how to reset values every time plans are renewed.

Description :
I use this app in order to add credits on a table rsdirectory_users in order to sell points that allow my users to edit content on a dedicated menu.

So in these following case it work well :
- when users are suscribing to a dedicated plan (Platine, Full) : it add 50 or 150 points on the table as expected
- when user subscription has expired : it remove credits left as waiting

But the problem is when plans are renewing automatically it does'nt resetting the table and give expected points to my users (50 ,150).
Example :
1. users has 12 points left before plan are to renewing
2. after the renewal has done, it does'nt removing the 12 points and give it 50 points instead of!!!

Here my config :

- When plan (platine) are activated :
insert into #__rsdirectory_users (user_id,credits,unlimited_credits,enable_contact_form) values ([[USER_USER_ID]] , 50 , 0 , 1)

- When plan are expired :

delete from #__rsdirectory_users where user_id = ([[USER_USER_ID]])

But i don't see know how reset the table in case of plans are renewed!
I thought that every time plans are renewing automatically this mean that in the first time it expire, then it's activated again, but it seem not to be the case.

Regards
Hey RRobert,

I've checked your site and Mysql query app configuration also which is used to assign points.
You have applied this app for recurring plan, so whenever renewal done it will extend the subscription date , will not expire the subscription and activate it again.

In case of recurring payment auto renewal , subscription will be extended as per expiration time period. So the query which will deduct the point will not execute in that case.

This is the current behavior of this app working. Points will be removed only if subscription will get expired.
In case of auto renewal will not deduct the point as plan not expired , it's remain in active state , only expiration period will extend.

Let me know if you have any query or correct me if i misunderstood.

Thank you for understanding !
·
Tuesday, 04 June 2019 18:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha, iam starting to be disappointed with this software, it's obvious that a renewal case is a missing scenario in payplans, there is even no case how to configure an update query in the case of a renewal!

In my case, users get 50 credits when they are buying plans, but at mid life if they have consumed 3 credits (so it left 47 credits) i don't see how to add the 48 credits lefts to the 50 due to a renewal

If we add this topic to this old one about geoip and VAT, which is staying unsolved : https://stackideas.com/forums/eu-vat
iam starting to have some doubt about the relevance of this software to help me. Comparing payplans with similar software (J2store) are many lack in payplans that we can't found in J2store (it deal perfectly with geoip to manage taxes in example, which is already a great difference)
Regards
·
Wednesday, 05 June 2019 14:33
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey RRobert,

I am really sorry for delayed response as it's public holiday for us here.

Renewal case of recurring payment is not available in current system. I'll add it into our issue tracker and will see how we can include it.

For now, i'll see if any workaround to resolve your issue.
Let me confirm following
1. When user purchase the recurring plan , 50 points added which is fine.
2. after some time if user consumed 3 point then 47 point are left.
3. so when next recurring payment done then 50+47 point should assigned to user.

Is it the correct scenario ? Confirm me so i'll check this possibility and correct me if i misunderstood.

Thank you for understanding !
·
Wednesday, 05 June 2019 21:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Manisha,
No at the next recurring payment every point should be resetting : so if it left 43 points, when the recurring is done, user should retreive 50 points (it's not combinable)
Regards
·
Thursday, 06 June 2019 14:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey RRobert,

I am sorry for the delayed response due to our public holidays.
Thank for updating with the response. I'll check it and will get back to you.

Thank you for understanding !
·
Friday, 07 June 2019 10:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey RRoebert,

Sorry for the delayed response.

I've done some modification in MySql query app to consider your renewal case.
Please find attached kit of mysql query app. Install it and check this this, how it goes.

Please test on your development/test site first.
Update me if any issue persist.

Thank you for understanding !
·
Saturday, 08 June 2019 15:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok thank you Manisha. But can you tell me if this modification will be included in payplans or should i make modification on every upgrade?
·
Monday, 17 June 2019 16:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey RRobert,

I've added this into our issue tracker and we will see how we can include that.
For now you need to take backup of this file and need to update on upgrade.

Thank you for understanding !
·
Monday, 17 June 2019 16:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post