Contributions
Category Drop Down List
Replace the file catalog/includes/boxes/catagories.php in your store with this one and you will have a drop down category list.
Expand All / Collapse All
En muchos casos - náutica, por ejemplo - las listas de subcategorias son enormes, y el usuario se pierde en ellas.
Mi aportacion consiste en quitar el array aquellas categorias cuyo parent_id != 0
Las lineas 28 y 29 deben ser anuladas
// $categories_array[] = array('id' => $path . $parent_id . '_' .$categories['categories_id'],
// 'text' => $indent . $categories['categories_name']);
De esta manera en el drop solo aparecen las categorias principales, y las subcategorias aparecen en la pagina central al pinchar la categoria madre.
Help ¡¡¡¡
Ahora pediría ayuda para que me dijeran como limitar el numero de subcategorias en la página.
Esto es que se pudiera limitar un numero de filas por pagina.
Gracias pos vuestras aportaciones.
Adjunto el file categories.php corregido
Saludos Luis Balada
Version 4 still didn't set the cpath correctly.
Version 3 did not set the cpath correctly
A dropdown list replacement for the categories box.
Changes: it would loose the session id on cookie-less browsers. Fixed now.
A categories box replacement that displays a drop down list of categories.
A substitute for the categories box in the catalog.
This is a bug fix from the good original contributed by David Garcia Watkins.
Replace the file catalog/includes/boxes/catagories.php in your store with this one and you will have a drop down category list.
Note: Contributions are used at own risk.