for ($count_outlets = 1; $count_outlets <= 3; $count_outlets++) { $linksync_outlets = $apicall->linksync_getOutlets(); if (isset($linksync_outlets) && !empty($linksync_outlets)) { break; } } # Get Registers for ($count_registers = 1; $count_registers <= 3; $count_registers++) { $registers = $apicall->linksync_getRegisters(); if (isset($registers) && !empty($registers)) { break; } } # Get Users for ($count_users = 1; $count_users <= 3; $count_users++) { $users = $apicall->linksync_getUsers(); if (isset($users) && !empty($users)) { break; } } $registerDb = get_option('wc_to_vend_register'); $outletDb = get_option('wc_to_vend_outlet'); $userDb = get_option('wc_to_vend_user'); // echo $registerDb;echo "<br>";echo $outletDb;echo "<br>";echo $userDb; #Check for the Outlets if (isset($linksync_outlets) && !empty($linksync_outlets)) { if (!isset($linksync_outlets['errorCode'])) { if (isset($linksync_outlets['outlets'])) { if (!empty($outletDb)) { ?> <th class="titledesc">Outlets<a href="https://www.linksync.com/help/woocommerce"><img title="If you have multiple Outlets in Vend, use this option to select which Outlet you want orders from WooCommerce to be associated with. If you have multiple registers and users for an outlet, you can also choose which register and/or user you want the orders to be imported against. " style="margin-bottom: -4px;margin-left: 4px;" src="../wp-content/plugins/linksync/img/help.png" height="16" width="16"></a></th> <td class="forminp forminp-checkbox"><?php