Again 1 issue...
sitemap generated but only 24 companies adding 2nd page or total companies not adding .. why ..?
code check pls -
function bpr_generate_sitemap() {
$start_time = microtime(true);
//$count_sellers = ModelBPR::newInstance()->countSellers(1);
//$per_page = (bpr_param('comp_per_page') > 0 ? bpr_param('comp_per_page') : 100);
//$current_page = Params::getParam('iPage');
//$pattern = Params::getParam('bpWord');
//$city = Params::getParam('bpCity');
//$category = Params::getParam('bpCategory');
$categories = ModelBPR::newInstance()->getSearchCategories();
$cities = ModelBPR::newInstance()->getSearchCities();
//$limit = array($per_page, $current_page);
$sellers = ModelBPR::newInstance()->getSellers();
$locales = osc_get_locales();
$filename = osc_base_path() . 'sitemap-companies.xml';
@unlink($filename);
$start_xml = '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL . '<urlset xmlns="
https://www.sitemaps.org/schemas/sitemap/0.9">' . PHP_EOL;
file_put_contents($filename, $start_xml);
// INDEX
bpr_sitemap_add_url(osc_route_url('bpr-list'), date('Y-m-d'), 'always');
// ADD Companies
if(count($sellers) > 0) {
foreach($sellers as $seller) {
bpr_sitemap_add_url(osc_route_url('bpr-seller', array('identifier' => $seller['s_identifier'])), date('Y-m-d'), 'weekly');
}
}