/** * @return bool|int false on error, count of the orders on success (can be 0) */ public static function exportOrders() { set_time_limit(0); $data = array('shop_id' => Options::getShopID(), 'shop_secret' => Options::getShopSecret(), 'orders' => self::getOrdersForExport()); if (count($data['orders']) > 0) { self::sendData($data); } return count($data['orders']); }
</div> <div style="margin-top: 40px; display: none;"> <label for="REES46_css"><?= GetMessage('REES_OPTIONS_CSS_FIELD') ?></label> <br/> <textarea id="REES46_css" style="width: 500px; height: 250px;" name="css"><?= strip_tags(\Rees46\Options::getRecommenderCSS()) ?></textarea> </div> <?php $tabControl->BeginNextTab(); ?> <?php if ($export_state === \Rees46\Service\Export::STATUS_NOT_PERFORMED): ?> <p> <?= GetMessage('REES_QUICK_EXPORT_DESC') ?> </p> <?php if(\Rees46\Options::getShopSecret() == ''): ?> <p><strong><?= GetMessage('REES_QUICK_EXPORT_DESC_NO_SECRET') ?></strong></p> <?php else: ?> <div> <input class="adm-btn-save" type="submit" value="<?= GetMessage('REES_QUICK_EXPORT_BUTTON') ?>" name="do_export"> </div> <?php endif ?> <?php elseif ($export_state === \Rees46\Service\Export::STATUS_SUCCESS && $export_count === 0): ?> <div> <?= GetMessage('REES_QUICK_EXPORT_EMPTY') ?> </div> <?php elseif ($export_state === \Rees46\Service\Export::STATUS_SUCCESS && $export_count !== 0): ?> <div> <?= GetMessage('REES_QUICK_EXPORT_SUCCESS') ?> </div>