CrimsonGT Posted June 18, 2009 Share Posted June 18, 2009 So ive determined WHMCS cant really do what I need it to, which is multiply the values of two drop down boxes to get a total price. So I figure I will have to create a custom order form for this. The API page seems to be a bit lacking though. http://wiki.whmcs.com/API:Add_Order Im trying to figure out if I can use 'configoptions' to do what I need, and if so how. Basically I need to have one drop down box (right now its a configoption) with two prices, and a second drop down box with another group of config options. Then multiply whatever value is selected from both together to get the total price. Is this going to be doable with configoptions, and if so does anyone have any examples of them in use? The API page is a bit lacking. 0 Quote Link to comment Share on other sites More sharing options...
CrimsonGT Posted June 21, 2009 Author Share Posted June 21, 2009 Anyone ever used this? 0 Quote Link to comment Share on other sites More sharing options...
bigideaguy Posted June 21, 2009 Share Posted June 21, 2009 what file are you looking at? what is the code? 0 Quote Link to comment Share on other sites More sharing options...
CrimsonGT Posted June 21, 2009 Author Share Posted June 21, 2009 I want to make a remote order page using the API, and on that API link I sent for Add Order it has 'configoptions' as one of the attributes, but no example as to how to use them. 0 Quote Link to comment Share on other sites More sharing options...
CrimsonGT Posted June 24, 2009 Author Share Posted June 24, 2009 still cant find anything on it, anyone have any idea? 0 Quote Link to comment Share on other sites More sharing options...
Zorro67 Posted June 24, 2009 Share Posted June 24, 2009 There's an add-on called Quickbuy that might get you what you need. It might be possible to poplate the variables in that string based on some calculations from the variables you are collecting. I've found it useful. 0 Quote Link to comment Share on other sites More sharing options...
RomanV Posted June 18, 2010 Share Posted June 18, 2010 ok i spent some time today fighting with that issue.. and also did not found any examples of using config options in api..so posting it here..migh tbe help to other guys ok wil be short..suppose we have a line $postfields["configoptions"] = base64_encode(serialize(array("78"=>"221","77"=>"219","76"=>"217"))); here 78 - id from the tblproductconfigoptions table and 221 is id of the value you need of that option form the tblproductconfigoptionssub table where configid=78.. the 77 and 76 defining similar.. hope that will help someone and save the time guessing Thanks 0 Quote Link to comment Share on other sites More sharing options...
Varka Posted October 15, 2010 Share Posted October 15, 2010 Saved me a ton of time - thanks 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.