Hi, I need help with editing code for my products xml feed. I have alreday posted sm simillar post to this long time ago but it is still unanswered. There is function I made to get URL:
PHP Code:
function zen_seo_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {
global $request_type, $session_started, $http_domain, $https_domain;
global $ssu;
if(is_object($ssu) && ($link = $ssu->ssu_link($page, $parameters, $connection, $add_session_id, $search_engine_safe, $static, $use_dir_ws_catalog))!= false) return $link;
}
and its for link itself:
PHP Code:
$link = zen_seo_href_link(zen_get_info_page($products->fields['products_id']), 'products_id=' . $products->fields['products_id'], 'NONSSL', false);
I am not very familiar with PHP and this cause that url is blank. I will be very happy for every assist. There is code which works with Ultimate Seo URLs:
PHP Code:
function zen_seo_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $static = false, $use_dir_ws_catalog = true) {
if (defined('SEO_ENABLED') && SEO_ENABLED == 'true') {
if (!isset($GLOBALS['seo_urls']) && !is_object($GLOBALS['seo_urls'])) {
include_once('../' . DIR_WS_CLASSES . 'seo.url.php');
$GLOBALS['seo_urls'] = &new SEO_URL($_SESSION['languages_id']);
}
return $GLOBALS['seo_urls']->href_link($page, $parameters, $connection, $add_session_id, $static, $use_dir_ws_catalog);
} else {
return zen_href_link($page, $parameters, $connection, $add_session_id);
}
}
Bookmarks