Jump to content

Help With Hook PreModuleCreate


BlueVM

Recommended Posts

I'm attempting to create a hook that will allow the user to select what server they want to be on during the checkout process. This hook asks the user to select a server under the Configurable Options on the cart. The hook takes that information and updates the Module Settings for the product so that the server the user selected is the server on the settings.

 

The only problem is WHMCS does not re-pull the settings from the database before creating the product (which means the next user who goes through product setup gets this user's choice). Is there a way to have WHMCS reload the product/module settings or is there a way to stop the creation script and restart it from the beginning inside of a hook?

 

http://pastie.org/4799456

 

 

FYI: This module is for hypervm since WHMCS does not support user selection of services on this plugin.

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.

  • 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