-- HikaShop version -- : 4.6.1
-- HikaSerial version -- : 4.0.1
-- Joomla version -- : 4.1.5
-- PHP version -- : 8.0
Hi
When a recurring subscription is renewed with Hikaserial Subscription, it looks like it uses the first subscription as a "master" and copies the data from that. I have a special case where users are discounted if they have more than one active subscription. I can control the price using joomla user groups and create special prises for those groups in Hikashop. However, I have issues with renewal when they no longer meet the requirements for discount.
My case looks like this:
User buys first subscription. They are added to the "tier 1" user group.
First subscription is now active. The recurring price remains the same.
User buys second subscription. User now have 2 active subscriptions. As the user is in "tier 1" user group, the user is discounted for the price of the second subscription. Second subscription is now active and recurring price is the discounted price.
Until now, everything is fine and works as intended.
My challenge is: User cancel the first subscription. User now have 1 active subscription and so remain in "tier 1" user group. But with only one active subscription, the price of the second subscription should no longer be discounted. But because user was discounted in the beginning, and that this subscription is used as a "master" for renewals, the price remains discounted.
I'm considering my options here.
E.g. could we have a toggle in Hikaserial subscription configuration to use plan price on every renewal instead of price of plan on purchase? Then the price of the subscription would always match the current plan and the prices set for the user groups. That would be best case scenario. Is this something you would consider?
Else, can I use onBeforeSubscriptionUpdate hook to modify the price?
Thanks