News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Picking a product from the search result page alters product URL

Started by AG, August 08, 2013, 22:13:46 PM

Previous topic - Next topic

AG

Joomla! 2.5.3
VirtueMart 2.0.2
site:www.ag-natursteinwerke.de
or in english: www.ag-natursteinwerke.de/en (very slow, sorry!)

This is quite hard to describe so I'll describe the procedure to trigger the error for you to follow.

1) On the front page pick a category of your choice (left side), let's say "Marble"
Current URL: http://ag-natursteinwerke.de/en/catalogue/marble

2) On the result page you realize that you want to check out a certain stone, let's say it's the Granite "Azul Imperial", so you type "azul" in the search field and send the form.
Current URL after sending the form: http://ag-natursteinwerke.de/en/catalogue/marble/search?keyword=azul&limitstart=0&option=com_virtuemart&view=category

3) The result page shows all stones containing "Azul" in the title, so far so good. Select the Azul Imperial.
Current URL: http://ag-natursteinwerke.de/en/catalogue/marble/azul-imperial.htm

You've just selected a Granite, but the URL says you're still in the marble category! Somehow, VirtueMart does not change to the real product page, but keeps the URL of the previously visited category.
The URL after selecting the Azul Imperial from the result page should be:
http://ag-natursteinwerke.de/en/catalogue/granite/azul-imperial.htm

Now something even more confusing:

1) While on the Azul Imperial detail page, type "bizanti" into the search form
URL after sending the search form: http://ag-natursteinwerke.de/en/catalogue/marble/search?keyword=bizanti&limitstart=0&option=com_virtuemart&view=category

2) Select either result
URL after selecting "Gold Bizanti": http://ag-natursteinwerke.de/en/catalogue/golden-line/gold-bizanti?virtuemart_product_id=403&virtuemart_category_id=2

3) You are on the detail page and in the correct category "Golden Line". There are parameters attached to the URL, but this isn't too much of a problem.

Here's what I've found out: "Golden Line" is the only category you can get "in" when you search for respective products and "out" when you search for different products (e.g. a marble or granite).
All other categories carry their URLs over to the new product you select from the search result page. What's different between the categories, I have not the slightest idea.

Help is greatly appreciated, since customers already got confused by this error.

Maxim Pishnyak

Quote from: AG on August 08, 2013, 22:13:46 PM
3) The result page shows all stones containing "Azul" in the title, so far so good. Select the Azul Imperial.

You've just selected a Granite, but have a look at the URL and the breadcrumb! Somehow, VirtueMart does not change to the real product page, but keeps the URL of the previously visited category.
Here I'd stopped. I'd got Azul Imp, not Granite.

Could you illustrate your post with urls that you'd got? You're saying that you have issue with urls. So why not show/post them first of all?
You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

AG

Correct, Maxim, you get the Azul. With Granite I meant the category.

I edited my post and inserted URLs to clarify.

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart


jenkinhill

Quote from: AG on August 08, 2013, 22:13:46 PM
Joomla! 2.5.3
VirtueMart 2.0.2

I hope you are not really using those old versions. Both are known to have actual security issues.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart

AG

I tried both current versions, but now I can only search within one category, not in the shop as whole.
Couldn't find any option to enable search within every category as well.

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum