Solved Problem in combination with User Upgrade Duration

imi-tat0r

Licensed
Licensed
Upgrade Coupons
User Upgrade Duration
Joined
Oct 18, 2021
Messages
3
Reaction score
0
Hey there

The plugin User Upgrade Duration 2.1.2 uses/requires the query parameter duration while Upgrade Coupons 2.1.1 requires the query parameter durations instead.
Due to this mistake no upgrade can be purchased if Upgrade Coupons 2.1.1 is installed.

greetings
imi-tat0r
 
Hello,

Can you make me screenshot of the problem, because I do not understand too much.

Regards, CRUEL-MODZ
 
In User Upgrade Duration 2.1.2 in File "XF\Purchasable\UserUpgrade.php" in Line 19 you do
"$input = $request->filter('duration', 'str');"

In Upgrade Coupons 2.1.1 in File "XF\Purchasable\UserUpgrade.php" in Line 14 you do
"$input = $request->filter(['coupon' => 'str', 'coupon_valid' => 'int', 'durations' => 'str']);"

If I want to buy a subscription and select a duration, I still get the error message Please select an upgrade length because the plugins check for different query parameters.
 
Hello,

yes indeed, I will release a maj for the addon Upgrade Coupons

Regards, CRUEL-MODZ
 
After checking me as it is before it works well (with S)
You're right, the default user upgrade works.

However gifting with "NixFifty Gift" plugin doesn't work if Upgrade Coupons is installed.
As I already mentioned, this can be fixed by renaming all occurences of "durations" to "duration" in Upgrade Coupons.
 
Top Bottom