Jump to content

bulk upgrades


snake

Recommended Posts

We are discontinuing one of our products, and need to bulk upgrade all customers who are using it to a different product.
I got a reply from support telling me this will require custom code, see below. Can anyone do this for me ?

Quote

 

There is no way to achieve this directly in the admin UI since upgrades are really intended to be triggered directly by customers, but I can see how this would be helpful in this scenario.

If this is a feature that you would like to be implemented, please consider submitting a feature request here - that way, our other clients can vote on your suggestion. We also find this useful to ensure that every suggestion is reviewed thoroughly by our team.

In the meantime, you could achieve this by writing a PHP script that finds all instances of the product that you are sunsetting and upgrades them to the new product by utilising our API:

As this would be considered making a third-party customisation to WHMCS, I am afraid that implementing this is not something that we can assist you with (though we are of course happy to answer specific questions). However, our wonderful community of third-party developers in the Developer Corner on WHMCS.Community can surely help:
https://whmcs.community/community/41-developer-corner/

 

 

Link to comment
Share on other sites

Hey 

yes correct, there are 2 ways

1. if old product and new product have same price then just update pid in Database directly and it will work for you 
2. but if old product and new product price is not same then better run the upgrade API call 

write simple script on root or under cron folder

Link to comment
Share on other sites

  • 3 weeks 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