Search Module Error Experimental Setting

Phoca Cart - complex e-commerce extension
oesch.web@gmail.com
Phoca Member
Phoca Member
Posts: 25
Joined: 06 Jan 2020, 11:35

Search Module Error Experimental Setting

Post by oesch.web@gmail.com »

Hi,
I have set "Remove IDs from URLs" to yes (experimential setting in Main Settings).
If i search in a page other than the shop site, the items are found, but if i click on the product view button, an error ocures: View not found, [Name, Typ, Rräfix] 52item, html, Phocacart view.

Is there a patch for this situation?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Search Module Error Experimental Setting

Post by Jan »

Hi, can I see the site where this occurs, to see the links to detail view?

Jan
If you find Phoca extensions useful, please support the project
oesch.web@gmail.com
Phoca Member
Phoca Member
Posts: 25
Joined: 06 Jan 2020, 11:35

Re: Search Module Error Experimental Setting

Post by oesch.web@gmail.com »

Hi,
Hier is an Example of a Book:
https://clkv.ch/shop/schoepfung-evoluti ... -vom-stein

Searched from Shop with "Creatio":
https://clkv.ch/component/phocacart/ite ... -vom-stein
Error if Searched from Home, then clicked on "Productinfo" :
404 View nicht gefunden [Name, Typ, Präfix]: 8item, html, phocacartView

The same if "Remove IDs from URLs" set to "no":
https://clkv.ch/component/phocacart/ite ... -vom-stein
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Search Module Error Experimental Setting

Post by Jan »

Hi, even one link is working and second not, both are wrong as they don't take the menu link into account - the url with component/phocacart/ ... is not correct.

Did you create a menu link to categories view? How many menu links did you create for Phoca Cart? Try to create only one for categories view (if created, disable all others) and test if something changes.

Which search module do you use? Which version?

Jan
If you find Phoca extensions useful, please support the project
oesch.web@gmail.com
Phoca Member
Phoca Member
Posts: 25
Joined: 06 Jan 2020, 11:35

Re: Search Module Error Experimental Setting

Post by oesch.web@gmail.com »

Hi, i use Phoca Cart Search Module 3.5.5.

The links i posted are created by the search modul, i do not create them myself.
The error does only occure:
1) if i set "Remove IDs from URLs" set to "no" (this means, the numbers in the links are removed)
2) and if i search from home page

The error does not occure:
1) if i search from the shop page (same page as the content)

Appart from this behavior, every thig works perfect. There are abot 700 articles.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Search Module Error Experimental Setting

Post by Jan »

Hi, yes, there is different behaviour for ID or no ID variant. But the question is, if the problem does not occur before using the route method. This is why I ask for the menu links. What happens when only one menu link to categories view exists, etc.?
If you find Phoca extensions useful, please support the project
oesch.web@gmail.com
Phoca Member
Phoca Member
Posts: 25
Joined: 06 Jan 2020, 11:35

Re: Search Module Error Experimental Setting

Post by oesch.web@gmail.com »

Hi,
I have a menu Link "Kategorie Ansicht (Produktliste-Layout)" and in the sidebar a categorie List.
If i change the menu link to a categorie list too, then the error does not occure.
But i want to show just one categorie, not a categorie list. Is this not possible?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Search Module Error Experimental Setting

Post by Jan »

Hi, it is better to have only one main menu link.

So it is done e.g. this way:
- you will create a main manu link to categories view
- then in frontend you will go to the categories view, click on category to see category view and copy the current link
- then in menu link you will create new custom url link and you will paste this link
- then you can hide the main menu link - to categories view.

This is a little bit difficult but you will know, that all the links will have one main format.

Jan
If you find Phoca extensions useful, please support the project
oesch.web@gmail.com
Phoca Member
Phoca Member
Posts: 25
Joined: 06 Jan 2020, 11:35

Re: Search Module Error Experimental Setting

Post by oesch.web@gmail.com »

Hi
The solution did not work for me.
But i put a Rule in the .htaccess:
RewriteRule ^(.*)component/phocacart/item(.*)$ /shop/item$2 [R=301,L]

This did the trick!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47794
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Search Module Error Experimental Setting

Post by Jan »

Ok, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply