stickyn1 Posted September 19, 2016 Share Posted September 19, 2016 Having a problem with custom query links in new updated WHMCS not BETA! Ultimately the site needs to send a query to the custom field named "Theme", choices so far are: divi, extra, theme3 a user shops images of themes that he/she will have setup through automation. Once the user selects a theme, and hits the START TODAY button the link has a query built in it. http://demo.whmcs.com/cart.php?a=add&pid=5&cf_Theme=extra this query should auto populate the "Drop Down" box with the value "extra". it does not.. Now the user is faced with the Domain picker, and after that will be the Configuration page. ----MAYBE THE DOMAIN PICKER IS THE PROBLEM?---"I tried it without domain picker, don't work" On the configuration page is the DROP DOWN box with three choices. (divi, extra, theme3) the query was supposed to fill in the drop down box. This is where the link changes on me above in the address bar. EVEN if i disable the domain option on checkout I still get the new URL below: https://www.blahblah.com/clients/cart.php?a=confproduct&i=30 I am trying to figure out what i did wrong with the query link. There is a possibility that it could be another field name. I looked at the source, and tried the following:cf_customfield29 https://www.blahblah.com/clients/cart.php?a=add&pid=2&cf_customfield29=extra ---THIS WAY DID NOT WORK EITHER--- SOURCE CODE OF CUSTOM FIELD: <select class="form-control" id="customfield29" name="customfield[29]"><option value="divi">divi</option><option value=" extra"> extra</option><option value=" theme3"> theme3</option></select> PLEASE: post example working codes. Maybe thinking of writting another hook, or function to populate. Not sure what to do. SIDE NOTE: this style of linking works fine: http://demo.whmcs.com/cart.php?a=add&pid=1&configoption[1]=100 However i have a custom hook that ties into the "customfields", and i do not know how to code my hook to use configurable option instead of custom fields. You may have a look at what code i am referring too here: https://forum.whmcs.com/showthread.php?118434-WHMCS-automation-using-installatron-code-kinda-works 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.