Jump to content

ChangePackage Server Module


willk

Recommended Posts

Hi All,

 

Is there a way to prevent a single order running the ChangePackage server module twice?

 

So in modules\servers\myserver\myserver.php I have the ChangePackage function.

 

When a user places an order to modify resources associated with a product (in this case a server and the resources are CPU and RAM) the ChangePackage function is called and works fine.

 

However, if they change both CPU and RAM in the same order the ChangePackage function is called twice. Given that there is no way to pass only what the order actually changed, only to grab the current values, calling it twice it pointless.

 

Thanks,

Will

Link to comment
Share on other sites

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.

×
×
  • 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