Jump to content

Disable Billing Cycle Change Upon Product Upgrade


artaweb

Recommended Posts

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? 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by artaweb
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated