I would like to list hidden products in sitemap.xml however I wasn't able to get fn_get_products in app/addons/google_sitemap/func.php cooperate with me.
I tested $params['status'] = "A,H" and couple of other variations but I'm not getting anywhere.
$original_auth = $_SESSION['auth'];
$_SESSION['auth'] = fn_fill_auth(array(), array(), false, 'C');
fn_set_progress('step_scale', db_get_field("SELECT COUNT(*) FROM ?:products WHERE status = 'A'"));
while ($params['pid'] = db_get_fields("SELECT product_id FROM ?:products WHERE status = 'A' ORDER BY product_id ASC LIMIT $i, $total")) {
$original_auth = $_SESSION['auth'];
$_SESSION['auth'] = fn_fill_auth(array(), array(), false, 'C');
fn_set_progress('step_scale', db_get_field("SELECT COUNT(*) FROM ?:products WHERE (status = 'A' || status = 'H')"));
while ($params['pid'] = db_get_fields("SELECT product_id FROM ?:products WHERE (status = 'A' || status = 'H') ORDER BY product_id ASC LIMIT $i, $total")) {