Menu type: Products / Random

16.07.2012 18:19
#1
cooperation
Joomshopping forum user no avatar
Name: Mcp
28.06.2012
Posts: 19
Quote
Menu type: Products / Random

Hello,

Please can anyone explain me the functionality of the menu type for "Products / Random".

If it only desplays all products out of your shop or a category, in a random order, that it does not make a lot of sense.

Is there any way to limit the amount of products displayed?

Thanks in advance

 
16.07.2012 20:48
#2
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16518
Quote
Aw: Menu type: Products / Random

amount - see configuration shop

 
17.07.2012 15:07
#3
cooperation
Joomshopping forum user no avatar
Name: Mcp
28.06.2012
Posts: 19
Quote
Aw: Menu type: Products / Random

The amounts are configured for the full website and it makes a lot of sense to have abotu 12 products on a category page.

But the same value for a random product page does not make a lot of sense.

Wouldn't it be possible to add a configurable option in the menu where you can choose the amount of displayed items if random is choosen?

Thanks!

 
17.07.2012 16:36
#4
webdesigner
(Support Team)
User webdesigner
Name: Admin
05.08.2010
Posts: 16518
Quote
Aw: Menu type: Products / Random

Change file

components\com_jshopping\controllers\products.php

row
$rows = $product->getRandProducts($jshopConfig->count_products_to_page);

change to (example 5)
$rows = $product->getRandProducts(5);


 
20.07.2012 02:21
#5
cooperation
Joomshopping forum user no avatar
Name: Mcp
28.06.2012
Posts: 19
Quote
Aw: Menu type: Products / Random

Thank you very much!

 
Copyrights MAXXmarketing GmbH. All Rights Reserved