sharmainfoway Posted November 23, 2007 Share Posted November 23, 2007 Hi I have integrated store with oscommerce and Ultimate SEO contribution by chemo. I have used the latest version of SEO contribution. Everything works perfect except the paging. If th product page has more products, it shows page links at the bottom see here http://www.theramedic.co.uk/rise-recline-chairs-c-29.html Try to click on Page links or next page link at the bottom, it just refreshes the page but never goes to other page. Please help. Quote Thanks Mahendra Sharma Sharma Infoway Link to comment Share on other sites More sharing options...
alexwebbing Posted November 23, 2007 Share Posted November 23, 2007 The solution is in this topic: http://www.oscommerce.com/forums/index.php?sho...999&st=1480 The file is... uhm... seo.class.php ? Is necessary to modify only one line: "return $current_page" to "return $return" This is the explanation: Well I don't know much about php but when I changed line 1073 from return current page to return return the same as the other lines below everything seems to be working.Maybe somebody knows if this will mess something else up. line : 1064 to1073 function requested_page() { $protocol = ((int) $_SERVER['SERVER_PORT'] === 443)? 'https://' : 'http://'; $current_page = $protocol . $_SERVER['HTTP_HOST'] . ((!empty($_SERVER['REQUEST_URI']))? $_SERVER['REQUEST_URI'] : ''); $current_page = substr($current_page, strlen(HTTP_SERVER)); if (($pos = strpos($current_page, "?osCsid")) !== FALSE) $current_page = substr($current_page, 0, $pos).'<br>'; if ($current_page[0] == "/") $current_page = substr($current_page, 1); Changed commented out // return $current_page; Now return $return; Enjoy. Quote Link to comment Share on other sites More sharing options...
sharmainfoway Posted December 5, 2007 Author Share Posted December 5, 2007 The solution is in this topic: http://www.oscommerce.com/forums/index.php?sho...999&st=1480 The file is... uhm... seo.class.php ? Is necessary to modify only one line: "return $current_page" to "return $return" This is the explanation: Well I don't know much about php but when I changed line 1073 from return current page to return return the same as the other lines below everything seems to be working.Maybe somebody knows if this will mess something else up. line : 1064 to1073 function requested_page() { $protocol = ((int) $_SERVER['SERVER_PORT'] === 443)? 'https://' : 'http://'; $current_page = $protocol . $_SERVER['HTTP_HOST'] . ((!empty($_SERVER['REQUEST_URI']))? $_SERVER['REQUEST_URI'] : ''); $current_page = substr($current_page, strlen(HTTP_SERVER)); if (($pos = strpos($current_page, "?osCsid")) !== FALSE) $current_page = substr($current_page, 0, $pos).'<br>'; if ($current_page[0] == "/") $current_page = substr($current_page, 1); Changed commented out // return $current_page; Now return $return; Enjoy. Thanks buddy, the solution rocks. Thanks a lot. Quote Thanks Mahendra Sharma Sharma Infoway Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.