VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: patrik60 on January 10, 2009, 22:37:06 PM

Title: view of category when only one product
Post by: patrik60 on January 10, 2009, 22:37:06 PM
Hello

In rev 1489 there was made a change in shop.browse.php on line 82

elseif( $num_rows == 1 ) {

was changed into

elseif( $num_rows == 1 && ( !empty($keyword) || !empty($keyword1) ) ) {

After this change it is no more possible to go directly to the flypage if a category has only one product.

The problem was, that subcategories were not shown, when a category had only one product.

May be there should be somewhere in the backend an option to choose whether to go directly to the flypage or to the category. This option should be possible, when a category has only one product.

patrik
Title: Re: view of category when only one product
Post by: aravot on January 10, 2009, 22:55:36 PM
This was changed in SVN
Title: Re: view of category when only one product
Post by: patrik60 on January 10, 2009, 23:00:58 PM
sorry, I think you did misunderstand me.It was changed in rev 1489. But now it is no more possible to go directly to the flypage if a category has only one product. See also this thread (http://forum.virtuemart.net/index.php?topic=50107.msg160993#msg160993).
Title: Re: view of category when only one product
Post by: aravot on January 10, 2009, 23:05:12 PM
Quote from: patbe60 on January 10, 2009, 22:37:06 PM
The problem was, that subcategories were not shown, when a category had only one product.

It was changed due to mentioned reason, the ideal solution would be to have a configuration option however don't hold your hopes high unless someone codes and donates the code.