-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to add configurable options value using add order WHMCS API? #126
Comments
Yes. Documentation Link : https://developers.whmcs.com/api-reference/addorder/ Check Parameter : configoptions : an array of base64 encoded serialized array of product configurable options values.
check here : 'configoptions' => array(base64_encode(serialize(array("1" => 999))), base64_encode(serialize(array("1" => 999)))), |
Same issue here. Can't make configoptions work. Others have also reported this issue. |
In place of an array and giving base64 encoded string works. |
But I have passed like this and its worked for me : Getting IDs for config options
Config Options Array Merge for multiple config options
Config Options Array Formatted for WHMCS API
Sending to API
MUST Remember : But Correct Output will be only one always, doesn't matter how many arrays you have passed. Correct Output will be : [YToxOntpOjI7aToyO30=] |
That doesnt work for optiontype 4 |
that doesnt work even for option and dropdown |
@Samanw it worked for me I can help you if you want I will tell you you should see HTML code inspect then the number of options then you do it like this
|
VERY important if it's only 1 item, dont place it inside an array |
I want to update the quantity value in the "tblhostingconfigoptions" table by using addorder api. I have tried the config parameter mentioned in the addorder api but it picks the minimum value assigned in the WHMCS config option.
The text was updated successfully, but these errors were encountered: