Random out of a specifc category?

19.02.2013 12:15
#1
cooperation
Joomshopping forum user no avatar
Name: Mcp
28.06.2012
Posts: 19
Quote
Random out of a specifc category?

Hello,

please how can I show random products only of one category?

Thank you very much

 
19.02.2013 14:42
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25854
Quote
Aw: Random out of a specifc category?

http://www.webdesigner-profi.de/joomla-webdesign/shop/modules/module-random-product.html

 
19.02.2013 15:17
#3
cooperation
Joomshopping forum user no avatar
Name: Mcp
28.06.2012
Posts: 19
Quote
Aw: Random out of a specifc category?

Hello,

Thank you, but I was not refering to a module.
I was refering to the menu point to show the random products page.

Below there are options to put in the category id, but on the random product the category id is ignored.

Is there a way to make this happen?

Thank you

 
19.02.2013 16:26
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25854
Quote
Aw: Random out of a specifc category?

No.

or
change
components\com_jshopping\controllers\products.php

function random
...
$rows = $product->getRandProducts($jshopConfig->count_products_to_page_random, null, $filters);

change to

$rows = $product->getRandProducts($jshopConfig->count_products_to_page_random, array(1,2), $filters);


array(1,2) - list id category

 
19.02.2013 16:55
#5
cooperation
Joomshopping forum user no avatar
Name: Mcp
28.06.2012
Posts: 19
Quote
Aw: Random out of a specifc category?

Thank you for your fast reply.

I tried to combine now to have 4 random products out of one specific category.

Than it should look like this:
$rows = $product->getRandProducts(4, array(1,2), $filters);

And the category id shall be defined in the Backend where you define the Menu introducing the ID of the category in the category id field?
Or should the array(1,2) be modified to show for example category id=7 --> array(1,7)?

 
19.02.2013 20:23
#6
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25854
Quote
Aw: Random out of a specifc category?

array(7) - for category 7

 
21.02.2013 16:50
#7
cooperation
Joomshopping forum user no avatar
Name: Mcp
28.06.2012
Posts: 19
Quote
[SOLVED] Aw: Random out of a specifc category?

Thank you very much!

Top support!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.