VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: AG on August 08, 2013, 22:13:46 PM

Title: Picking a product from the search result page alters product URL
Post by: AG on August 08, 2013, 22:13:46 PM
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.
Title: Re: Picking a product from the search result page alters product URL
Post by: Maxim Pishnyak on August 08, 2013, 23:41:04 PM
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?
Title: Re: Picking a product from the search result page alters product URL
Post by: AG on August 09, 2013, 08:54:18 AM
Correct, Maxim, you get the Azul. With Granite I meant the category.

I edited my post and inserted URLs to clarify.
Title: Re: Picking a product from the search result page alters product URL
Post by: Maxim Pishnyak on August 09, 2013, 22:21:20 PM
PM access?
Title: Re: Picking a product from the search result page alters product URL
Post by: AG on August 10, 2013, 11:55:09 AM
Sorry, what do you mean?
Title: Re: Picking a product from the search result page alters product URL
Post by: jenkinhill on August 10, 2013, 11:55:29 AM
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.
Title: Re: Picking a product from the search result page alters product URL
Post by: Maxim Pishnyak on August 10, 2013, 12:19:42 PM
Oops, I was blind when I wrote my posts in this thread.
Title: Re: Picking a product from the search result page alters product URL
Post by: AG on August 11, 2013, 21:39:23 PM
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.
Title: Re: Picking a product from the search result page alters product URL
Post by: jenkinhill on August 11, 2013, 23:30:13 PM
See http://forum.virtuemart.net/index.php?topic=117768