Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

If You've Quick-Searched For Listings, It Redirects To Advanced Search Page Instead Of Search Results


ali_razorback

Recommended Posts

Posted

Afternoon!

 

Am in the testing stages of my site, and have this very annoying problem.

 

"Display Cart After Adding Product" is set to FALSE, and this works fine when looking through 'categories' - you click 'Buy Now' or 'Add To Cart' from a product page and you're redirected to the page you were originally on.

 

BUT!!!

 

When I use the 'Quick Search' option or go to 'Advanced Search', and the search results are displayed, clicking on 'Buy Now' redirects to the 'Advanced Search' page instead of the search results page (titled 'Products Meeting Your Search Criteria') or whatever. It's annoying and looks very unprofessional!

 

I have looked through the forums and found a similar problem that someone had here:

 

http://www.oscommerce.com/forums/index.php?sho...Adding++Product

 

So it seems like this jumping problem might be related to includes/application_top.php, but I have no idea about coding php. Even after spending a year working on modding my oscommerce site haha.

 

Thanks in advance for your help, hopefully I've included enough key words so that anyone else with this problem can find this page if/when the problem gets solved!

 

Kind regards,

 

 

Alice

Posted

the search results page requires the form parameters each time is used. So if you really want to do this you have to pass the search parameters somehow. Now the buy-now buttons in listing are by default with a link. And not with a form. So you convert the listings to forms with post method (so the application_top.php can still work), then you process the search arguments with the listing form (you include them if you come from a search) and in application_top you re-convert them from the post to the get array so then the advanced search results page when the redirect takes place can work.

Posted

Thanks for your reply!

 

Unfortunately I don't really understand what you mean, I sort of do, but I don't know if you think it's do-able or not? Like I said, I really have zilch knowledge of php! Would it be a long process if someone could do it?

 

This must be a problem for everyone who sets "Display Cart After Adding Product" to false, I wonder why no one has sorted this before? Do you think there is someone who would be able to do this for me and everyone else who uses oscommerce? It just looks so unprofessional and would be confusing for customers. It's quite big concern for me!

 

Thanks again,

 

 

Alice

Posted

It's doable. It's just the oscommerce doesn't accommodate for it by default. And I haven't seen a contribution that does that. However there are contributions that convert the product listing pages to forms so at least you're half way there.

Posted

Hehe well I'll keep an eye out for it, I'll post a message in the contributions suggestions area!

 

Last question: until that time, is it possible to redirect the page to anything other than the advanced search page? Even the index.php page would be great, just anything other than what it does now! If you have any suggestions for the code then that would be great, I wouldn't know where to start writing my own.

 

Cheers, I really appreciate all your help!

 

 

Alice

Posted

you still need to do change the application_top.php but I do not want to recommend a hack. Because it will cause other side effects with your store.

 

My advise is to gradually improve your store and use your efforts accordingly. Because this is really a detail unless you got an email from a customer who tried to buy something from your store and he couldn't find it. I see lots of details with the default oscommerce that I would like to change, but the key is to generate sales first. You're still testing so this is a new store. Check the next steps/marketing forum one of the first things to consider is how to market your products/services (seo stuff like that).

Posted

Hehe yes you're right, I'm very much a perfectionist you see! It's actually the only problem I've come across that I can't fix, which is incredibly irritating for me but I will have to get over it!

 

I'll head over to those forums you recommended, thanks ever so much once again!

 

Best regards,

 

 

Alice

Archived

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

×
×
  • Create New...