Marcus Posted March 18, 2015 Share Posted March 18, 2015 Hi there, just dealing with the api and did not see the error Only the first productAddon is shown, but not the second and the third. Any idea? Salute ;-) Marcus case 'getAddons': $a = $sys->getAddons($_REQUEST['pid']); $products = $a->products->product[0]; if(isset($products->configoptions->configoption[0])) { $configoptions = $products->configoptions->configoption[0]->options->option; //print_r($configoptions); $html = ''; foreach($configoptions AS $options) { $id = $options->id; $price = $options->pricing->EUR->msetupfee; $name = $options->name; $html .= '<tr class="addonChecks"> <td class="checkboxContainer"><input class="addonCheckbox" name="addons['.$id.']" id="'.$id.'" rel="'.$price.'" type="checkbox"></td> <td><label for="'.$id.'">'.$name.'</label></td> <td style="text-align: right"><label for="'.$id.'">$'.$price.'</label></td> </tr>'; } echo $html; } else { $configoptions = '<center>No Addons exist for this package!</center>'; echo $configoptions; } break; 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.