Post by dcorcord » Sun Apr 10, 2011 5:22 am

after my SEO urls, all fine, but there is little problem in their product search

if it is in a "store front", we can be accurate in the search product

but if for example we choose a category, then do a search of a product, then the result into the wrong url

example:
1. is in a "store front"
we're looking product "Aplle", it will come out tag-based product "aple"

2. in conditions that we choose the product category first, then search product, the product that comes out instead of "apple", but instead like a "store front" at first

please help T_T



so for example like this

This link after SEO URLs

- from "Store Front", a direct search, a link like this:
http://www.IIIIIIIIIIIIIIII.c om / index.php / index.php? route = product / best-search & keyword = & category_id = 0

- from the "store front", we select a category (eg category name LAPTOP), then he will return to the menu search Category such as all, then the result of a link like this:
http://www.IIIIIIIIIIIIIIII.c om/c-18-laptop/index.php? route = product / best-search & keyword = & category_id = 18

cause, when the search he was still calling the previous category in select (c-18-laptop)

what's the solution kak

my website: www.bajucoupleonline.com

T_T

New member

Posts

Joined
Fri Mar 18, 2011 4:07 am

Post by Avvici » Sun Apr 10, 2011 9:39 am

My suggestion? Purchase Justin's ZEND SEARCH MODULE. It blows the default out of the water. (DISCLAIMER(obviously the default is there for a reason and if Open Cart was not Open Source Free then the search would be something comperable) :P It's based on APACHE's LUCENE search. Justin has taken the ZEND SEARCH MODULE and integrated it into Open Cart beautifully. http://www.opencart.com/index.php?route ... order=DESC

I have a customized version that will search for 5-6 different parameters. In the administration you have to create the index by clicking a button. The index will build over time.

Lucene never touches the database instead it references a directory outside of the database. This is the index that will be built upon as you go. Compiled if you will.

It's worth the money. I have a store that has well over 4000 items and the payload for hitting a database during a search is costly especially with lots of traffic.

If your store is small then so be it you might not justify purchasing it and fixing your problem instead. I was just letting you know :) O0

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by Avvici » Sun Apr 10, 2011 11:56 am

Contact me via joe@involutionmedia.com or add me on Skype at Involution Media. I can point you in the right direction.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by adriankoooo » Sat Apr 23, 2011 7:22 pm

avvici wrote:Contact me via joe@involutionmedia.com or add me on Skype at Involution Media. I can point you in the right direction.
Same problem here. Is there a simple solution to fix this?

With seo URL I get xy.com/seo-url/index.php... and because of this search not works (because search is: xy.com/index.php...)

Active Member

Posts

Joined
Thu Mar 03, 2011 6:52 am


Post by adriankoooo » Mon Apr 25, 2011 7:02 pm

Here is a fix from me:

find in /catalog/view/theme/YOURTHEMENAME/template/common/header.tpl:

Code: Select all

function moduleSearch() {	
	pathArray = location.pathname.split( '/' );
	
	url = location.protocol + "//" + location.host + "/" + pathArray[1] + '/';
change to:

Code: Select all

function moduleSearch() {	
	pathArray = location.pathname.split( '/' );
	
	url = location.protocol + "//" + location.host + "/";
explanation: pathArray[1] adds unnecessary .com/thisisthepatharray/, we won't need that. Simply remove pathArray[1] + '/' and your url is now good at the search too. Maybe a moderator can confirm my mod? :D

Active Member

Posts

Joined
Thu Mar 03, 2011 6:52 am


Post by fima » Sat Oct 22, 2022 9:39 pm

Avvici wrote:
Sun Apr 10, 2011 9:39 am
My suggestion? Purchase Justin's ZEND SEARCH MODULE. It blows the default out of the water. (DISCLAIMER(obviously the default is there for a reason and if Open Cart was not Open Source Free then the search would be something comperable) :P It's based on APACHE's LUCENE search. Justin has taken the ZEND SEARCH MODULE and integrated it into Open Cart beautifully. http://www.opencart.com/index.php?route ... order=DESC

I have a customized version that will search for 5-6 different parameters. In the administration you have to create the index by clicking a button. The index will build over time.

Lucene never touches the database instead it references a directory outside of the database. This is the index that will be built upon as you go. Compiled if you will.

It's worth the money. I have a store that has well over 4000 items and the payload for hitting a database during a search is costly especially with lots of traffic.

If your store is small then so be it you might not justify purchasing it and fixing your problem instead. I was just letting you know :) O0
@Avvici do you still happen to have the Zend Lucene search module? It's not available anywhere on the web and i would really benefit from improving the search experience in my Opencart 1.5 installation. I would really appreciate your answer. Thanks!

Newbie

Posts

Joined
Sun Nov 14, 2021 8:15 pm
Who is online

Users browsing this forum: No registered users and 119 guests