Amount of categories in row

12.07.2013 01:33
#1
hbergold
Joomshopping forum user no avatar
Name: Henning Bergold
31.05.2013
Posts: 23
Quote
Amount of categories in row

I would like to show different amount s of JoomShopping categories per row on different pages, but the JoomShopping system only takes in consideration the Amount of categories in row defined in the Category/Product configuration file. It doesn’t consider overriding this variable in each local Category page. How could I do this?

Thanks

 
24.04.2014 18:13
#2
Onofrei
Joomshopping forum user no avatar
Name: Mihai-Codrut
06.03.2011
Posts: 55
Quote
Aw: Amount of categories in row

I assume you want to display only subcategories in a category list (no products). That was my case. I'm using JS 3.12.3 on J!2.5. For that setup (category with only subcategories and no products) I used the following trick:

Edit \components\com_jshopping\controllers\category.php

Inside function view() - near the end - replace

$view->assign('count_category_to_row', $jshopConfig->count_category_to_row);

with

$view->assign('count_category_to_row', $category->products_row);

That way you can adjust number of (sub)categories to display in a row by editing "Products in row" for that category.
Enjoy!

 


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.