Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can't get to page two of products


Guest

Recommended Posts

Posted

Hello,

 

I've been working on this site for a few weeks now and up until now I have managed to sort most things using the search option or documents, but cant find an answer to this one.

 

The site is now being populated with stock and have just added enough items in one section and OSC has created another page for me, but the link isn't working!

 

Any ideas on how I could get this link to work?

The page with the link is on: http://jewellery-2-u.co.uk/shop/sets-c-27.html

 

Thanks,

 

Craig.

Posted

Still have the problem but found a way round it for now, I have increased the maximum number of products in the admin page. So I can now view all the products without having to go to another page.

 

Im still looking for a fix on this as I would rather limit to 20 items per page and have the link working to save on loading time and scrolling.

Posted
Still have the problem but found a way round it for now, I have increased the maximum number of products in the admin page. So I can now view all the products without having to go to another page.

 

Im still looking for a fix on this as I would rather limit to 20 items per page and have the link working to save on loading time and scrolling.

 

Have you found anything yet? I am having the same problem and am desperate for an answer. I'm not sure why I can't get to page 2, but the problem started when I added a bunch of products and attributes. I have SEO URLS installed... but not sure if this is it or how to troubleshoot this. Please any help greatly appreciated!

Posted

I don't know what the answer is - but the problem is probably with includes/classes/split_page_results.php

 

Vger

Posted

osCommerce 2.2-MS2

PHP Version 4.4.7

I have SEO URLS installed as well but pretty sure I didnt have to change "split_page_results.php" where the problem could be.

Posted

Your previous and next links on products_new.php so I would have to say split_page_results.php is not the problem.

Maybe you edited the index.php or catalog/includes/modules/product_listing.php

Posted

I think it is rather a problem with the SEO URLs in combination with the split_page_results.php .

If you take a look at how the page URLs for next / previous in the "new products" page is generated, you can see that this link is not a search engine friendly url. I had this problem before in another shop, and as far as I remember, we simply modified all calls of the tep_href_link function in split_page_results.php so as to disable SEO URLs for the page navigation links.

If you want to give it a try,

simply go to your includes/split_page_results.php and

1. BACKUP!

2. look for occurrences (probably 5) of

$request_type)

,

replace with

$request_type, true, false)

the first parameter after request_type sets $add_session_id to true (which is default anyway, I believe) and the second one sets $search_engine_safe for this link to false.

 

I'm not a native speaker, still hope you get what I am trying to say.;)

 

Hope that helps,

10_little_orcs

Posted

Thanks for the replies,

 

I've done the first part replacing the $request_type) --> $request_type, true, false) on the file includes\classes\split_page_results.php

but not sure on what to do about the second part?

 

the first parameter after request_type sets $add_session_id to true (which is default anyway, I believe) and the second one sets $search_engine_safe for this link to false.

 

I'm not a native speaker, still hope you get what I am trying to say.

 

Hope that helps,

10_little_orcs

 

I've searched for the following in the split_page_results.php code but can't find them:

$add_session_id

$search_engine_safe

Do I need to add these to my includes\classes\split_page_results.php? Any suggestions?

Posted
Thanks for the replies,

 

I've done the first part replacing the $request_type) --> $request_type, true, false) on the file includes\classes\split_page_results.php

but not sure on what to do about the second part?

I've searched for the following in the split_page_results.php code but can't find them:

$add_session_id

$search_engine_safe

Do I need to add these to my includes\classes\split_page_results.php? Any suggestions?

 

 

Oh, I'm sorry, that's my fault (forgot to mention what these parameters are) - You don't have to do anything about them at all!:)

 

This is just what actually happens if you replace the code as mentioned:

The function tep_href_link itself, which is used to generate links, has these two parameters, that means, inside of the function they are called $add_session_id and $search_engine_safe. The code of the function is in a different file.

 

If you add the the ", true, false)" part behind $request_type, that simply means that you set the parameters above to these values (namely true for the first one and false for the last one), whenever the function call occurs inside of split_page_results.php

 

So, if you call tep_href_link('somefile.php', 'someparameters=xy', $request_type, true, false) then these last two words will do everything for you - adding the session ID will be handled as usual, but the search engine safe URL generation will be turned off for the according link.

 

 

Again - I'm sorry and hope it is clearer now! :)

 

Does it work?

Posted

Here are a couple of useful links.

 

Attributes on prod maint page

 

http://addons.oscommerce.com/info/1538

 

Next page not working

 

http://www.oscommerce.com/forums/index.php?sho...;hl=zonjee+page

 

There is also a fix in the patches for various releases, look for -20, if I remember correctly.

 

http://www.oscommerce.com/ext/update-20060817.txt

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

geoffreywalton: Thanks, the link to "Next page not working" post number 7 did the trick, a simple comment out of one line.

 

Thanks,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...