By Martin on Wednesday, 03 July 2019
Posted in General Issues
Replies 5
Likes 0
Views 649
Votes 0
We have a setup where we sell cupon codes with a amount of time. You can buy 1 year or 3 months. Payment is made with cash at conferences and at a webshop. (This is manual done and we will continue with this.)

I have setup a fixed plan with the price: 0, expiration time: 1 day.

I made a cupon code, type: "Subscription Extension", extend time: 1 year.

When I try to purchase this plan with the cupon code, i get the following error: "Maximum allowed discount crossed, so only allowable discount applied"

The troubles is in the last if statement, because: $existingDiscounts = "0.00" and $allowedAmount = float(0).

public function checkForUpperLimit(&$newModifier, $invoice)
{
$subTotal = $invoice->getSubtotal();
$discountable = $invoice->getDiscountable();
$actualTotal = $subTotal + $discountable;

$maxDiscount = (float) $this->config->get('allowedMaxPercentDiscount');
$allowedAmount = ($maxDiscount * $actualTotal) / 100;

$existingDiscounts = $invoice->getDiscount();

// If existing discount is already greater or equal to max allowed
if ($existingDiscounts >= $allowedAmount) {
return false;
}
[...]


Discount is set to 100% in the global settings.

Is my approach wrong or could we make a fix?

Thanks in advance!
Hello Martin,

Currently Payplans do not allow to apply a discount of any type on a free plan.

As you mentioned that you have setup a free plan with an expiration time of one day and you want to extent this plan for a year with a discount code.

But, You have to understand that a user can always re-subscribe to a free plan everyday after it is expired.

Maybe you can create a 3 month and a 1 year plan with a price that you want to sell it for at your conferences and create a discount code of same amount as your plan.

For Example (create a three month plan for $30 and create a discount coupon for $30 also and give that discount code to your user in exchange of cash.)

Let me know if you have any other query or correct me if i misunderstood.
·
Wednesday, 03 July 2019 19:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, I know they could re-subscribe everyday.

We have this Setup:
* 1 year subscription - renew every year - with 1 month of trial

* 3 month subscription (only used with coupon codes is the idea), trial 3 month with a price which the cupon refund, recurring 1 year

Is it possible to move the subscription from "3. month plan" to the "One year" plan after the 3. month trial period?

We want to have different email to the cupon receivers the first 3 months or first year.

Thanks in advance!
·
Wednesday, 03 July 2019 22:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Martin,

Unfortunately currently there is no way to move from one plan to another plan once user subscribed that plan on the site.

Is it possible to move the subscription from "3. month plan" to the "One year" plan after the 3. month trial period?

Yes, it is possible to achieve this, perhaps you can try my following suggestion and see if this can help much you here?

For example :
Create a Recurring + 1 trial plan
- set Trial 1 time to 3 Months
- set expiration time to 1 Year
- set Number of recurrence to how many times you want it to reoccur.

Please refer to this document to understand better:
https://stackideas.com/docs/payplans/administrators/plans/plan-creation

We want to have different email to the cupon receivers the first 3 months or first year.


I have a little bit lost here, can you check my following explanation and see whether I understand correctly with your last question ?

based on what i understand of your last question is :

1. When these coupon receiver subscribe a plan (first 3 month), then you want the site send to subscriber Email template A.

2. When these coupon receiver subscribe a plan (first 1 year), then you want the site send to subscriber Email template B.

Let me know if i understand this correctly or correct me if i misunderstood.
·
Thursday, 04 July 2019 14:12
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry for my explanations.

I have tried some different setup and I think this is the only way we can archive to have different "trial" lengths on 3 different plans.

We have 3 different: 1 year (most people have), 6 months (giftcard), 3 months (giftcard).

It is because people gives discount codes as gifts to family members. On signup they should get the amount of time from the giftcard. When this amount of time is ends the recurring 1 year payment should be captured

It means, that they enter their creditcard information on signup, but the recurring payment is captured after 3 months (or 6. months depending on the giftcard).

1. year subscription
- (This is where most subscriptions is)
- Recurring + 1 trial
- Trial 1 time to 1 Months (all )
- expiration time to 1 Year
- Number of recurrence: 0 (recurring until cancelled)
- Email template A

3. months- giftcard
- Recurring 1 year, trial 3 months
- First 3 months is paid with a discount code
- After 3 months of trial we want the subscription to renew every year, like in the first plan.
- First 3 months they should receive template B - afterward they should receive Template A.

6. months - giftcard
- Recurring 1 year, trial 6 months
- First 6 months is paid with a discount code
- After 6 months of trial we want the subscription to renew every year, like in the first plan.
- First 6 months they should receive template B - afterward they should receive Template A.


The best setup would be to make a discount code where we could choose the length of the trial period and only have one plan. But as I can see is that not possible.
·
Thursday, 04 July 2019 15:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Martin,

To achieve this you can create three different plans with different trial period and can create different discount coupons equivalent to the plan trial price.

So when user will apply those discount code on the plan it will make the initial amount of subscription to 0 and when user will subscribe to this plan the credit card information will gets stored with plan as user have to enter the details before subscription and when the trial period ends the user will be charged as per your plan price.

You can setup multiple emailer app instances as per your plan so for that particular plan you can choose the template you want to send your email with.
So, you can setup multiple app instance for your plans (for example for your 1 year plan you can setup Template A and for your 3 month and 6 month plan you can setup Template b)
But, once the trial period gets over you have to change the template for your plans.

To setup emailer app instance go to Payplan backend>>Notifications>>Notifications Create a new app instance here.
You can refer to this document to understand better:https://stackideas.com/docs/payplans/administrators/notifications/notification-rules

The best setup would be to make a discount code where we could choose the length of the trial period and only have one plan. But as I can see is that not possible.


Unfortunately currently there is no way to do that.

Let me know if you have any other query or correct me if i misunderstood.
·
Thursday, 04 July 2019 17:46
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post