BlueVM Posted September 25, 2012 Share Posted September 25, 2012 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. 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted September 27, 2012 Share Posted September 27, 2012 If you use the AfterShoppingCartCheckout hook you can chance values in the database before the create script is ran. 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.