artaweb Posted March 18, 2020 Share Posted March 18, 2020 Hello, Is it possible to disable the Billing Cycle Selecting in upgrade page? For example, if a customer wishes to upgrade/downgrade their product/service, they can only upgrade/downgrade it with the same billing cycle it currently is. Without the option of choosing other cycles. Is this possible? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 18, 2020 Share Posted March 18, 2020 15 minutes ago, artaweb said: Is it possible to disable the Billing Cycle Selecting in upgrade page? not from settings. 16 minutes ago, artaweb said: For example, if a customer wishes to upgrade/downgrade their product/service, they can only upgrade/downgrade it with the same billing cycle it currently is. Without the option of choosing other cycles. I suspect that would require a hook that gets the current billing cycle of the base product, and for each of the upgrade products, removes any billing cycles that don't match the base product cycle... and if that leaves an upgrade product with no cycles, removes it entirely. 1 Quote Link to comment Share on other sites More sharing options...
artaweb Posted March 18, 2020 Author Share Posted March 18, 2020 (edited) is it standard to remove the codes from upgrade.tpl ? -=-=-=- NOPE -=-=-=- It just messed things up. I guess it has to be a hook to work correctly. Edited March 18, 2020 by artaweb 0 Quote Link to comment Share on other sites More sharing options...
artaweb Posted March 18, 2020 Author Share Posted March 18, 2020 (edited) Tried a few ways using the documentation to make a hook. I think I am going in the wrong direction. Can please guide me where to begin for creating a hook like this? I need to show the current billing cycle without any other options for changing the cycle upon upgrade or downgrade. Edited March 18, 2020 by artaweb 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 19, 2020 Share Posted March 19, 2020 18 hours ago, artaweb said: is it standard to remove the codes from upgrade.tpl ? yes... it's just customisation and that comes in many forms, e.g., editing the templates, changing the css, using hooks etc. 18 hours ago, artaweb said: It just messed things up. I guess it has to be a hook to work correctly. i'd have to double-check the page to be sure, but from memory, I don't think it has access to the billing cycle on the current base product... and if that's the case, then there would be little you could effectively do editing the template.... if the page does know the current cycle, then this could theoretically be done in the template, though i'd still suggest using a hook as you're just manipulating an array based on certain conditions, e.g the current billing cycle. 17 hours ago, artaweb said: Tried a few ways using the documentation to make a hook. I think I am going in the wrong direction. you are if you read the documentation. 😜 19 hours ago, artaweb said: Can please guide me where to begin for creating a hook like this? I need to show the current billing cycle without any other options for changing the cycle upon upgrade or downgrade. I see that you've created a commercial thread on this, so feel free to send me a PM - I can't PM you as you don't have the option enabled. 1 Quote Link to comment Share on other sites More sharing options...
natanet Posted February 19 Share Posted February 19 i am looking this feature as well do we have in the latest version? or any other solution? 0 Quote Link to comment Share on other sites More sharing options...
hkhasankhan5 Posted June 22 Share Posted June 22 On 3/19/2020 at 7:58 PM, brian! said: yes... it's just customisation and that comes in many forms, e.g., editing the templates, changing the css, using hooks etc. i'd have to double-check the page to be sure, but from memory, I don't think it has access to the billing cycle on the current base product... and if that's the case, then there would be little you could effectively do editing the template.... if the page does know the current cycle, then this could theoretically be done in the template, though i'd still suggest using a hook as you're just manipulating an array based on certain conditions, e.g the current billing cycle. you are if you read the documentation. 😜 I see that you've created a commercial thread on this, so feel free to send me a PM - I can't PM you as you don't have the option enabled. Dear brain 🧠, Do you have any existing hook for it? If possible please share with us. It can help us. 0 Quote Link to comment Share on other sites More sharing options...
hkhasankhan5 Posted July 6 Share Posted July 6 On 6/22/2024 at 8:59 PM, hkhasankhan5 said: Dear brain 🧠, Do you have any existing hook for it? If possible please share with us. It can help us. @brian! Are you alive? if yes, please let me know how we can get client's current product billing cycle in upgrade.tpl Or Do you have any existing hook for it? If possible please share with us. It can help us. 0 Quote Link to comment Share on other sites More sharing options...
Evolve Web Hosting Posted July 6 Share Posted July 6 @hkhasankhan5 Brian has been gone for a few years now 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.