Contributions
Categories Description
Categories Description V 1.0 - trikinuke (www.modeltronic.es) - Capturas de pantalla incluidas - Screenshots included
EN ESPAÑOL.
FUNCIÓN Y OBJETIVO: Inserción de código HTML personalizado que sea visible en las categorías. Si los productos pueden tener sus descripciones, ¿por qué no las categorías también?
Esta contribucion añade más dinamismo y amigabilidad a su Comercio, rompiendo la monotonía de ver siempre la misma estructura en las categorías,
[cabecera]
[imágenes de subcategorías / lista de productos]
[módulo de nuevos productos]
De esta forma podemos insertar código HTML para aportar más información en cada categoría, rompiendo con la estructura básica y dando más "colorido" e información a su Web. Otras veces, es necesario en ciertas categorías aportar más información necesaria para el cliente (vea ejemplo http://www.modeltronic.es/baterias-c-58.html)
De esta forma, siempre que en esta categoría haya introducido texto o en general código HTML, quedaría,
[cabecera]
[mi código HTML]
[imágenes de subcategorías / lista de productos]
[módulo de nuevos productos]
______________________________________________________________________________________________________
IN ENGLISH.
FUNCTION & TARGET: The adding of personalized HTML code visible when navigating into categories. If products are allowed to have their own descriptions, why not categories too?
This contribution performs more dinamism and usability to your Commerce, breaking monotony of view always the same categories structure,
[header]
[subcategories images / products list]
[new products modules]
For it, we can add HTML code for provide more information in each category, breaking with the basic structure and giving more colourity and information to your site. Other times, several categories need to be showed with more information, necessary for customers (eg.- http://www.modeltronic.es/baterias-c-58.html)
In this way, if I have inserted text or in general HTML code in the current category, the result would be,
[header]
[my HTML code]
[subcategories images / products list]
[new products modules]
Expand All / Collapse All
In last instructions I needed to made a little change:
========================================
In catalog/index.php:
-Search:
} elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {
LAST INSTRUCTIONS:
And add below:
$category_query = tep_db_query("select cd.categories_name, select cd.categories_description from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
$category = tep_db_fetch_array($category_query);
NEW INSTRUCTIONS:
And add below:
$category_query = tep_db_query("select cd.categories_name, cd.categories_description, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
$category = tep_db_fetch_array($category_query);
========================================
Thanks, it is a very nice contribution
IT IS NOT COMPLETE PACKAGE
17 Noviembre 2008
Cambios por 'Hoheria'. Eso es un contribución excelente por trikinuke aunque he hecho algunas cambios al código par evitar la necesidad a poner código HTML en la ventana de descripciones - ahora utilisamos la informacion puesto en el stylesheet. También hemos elimanado la necesidad para insertar el nombre de la categoria con el texto - ya tenemos esta información en el base de datos y podemos aprovecharlo. Ahora tenemos una sistema mas fácil para ellos que no saben nada de HTML. Comparar el archivo con ellos puestos antes para ver las diferencias. ¡Por favor, desculpiés los errores en la idioma hecho por un pobre britanicó!
17 November 2008
Changes by 'Hoheria'. This is a great contribution by trikinuke but I've made some small code changes to remove the need for html code to appear in the description window by formatting it from the stylesheet and also avoid need for re-entering the category name along with the inserted text - by using the information already stored in the database. This makes it easier for store maintenance for people without html knowledge. Compare with previous posting to see changes.
A small error. Fixed.
This error was found thanks to Tamara from Netherlands, a code line was missing, only in instructions_english.txt and instrucciones_español.txt. Files to upload for fresh installations are ok. See attachment file.
Pequeño error. Arreglado.
Este error fue encontrado gracias Tamara desde Holanda, faltaba una linea del codigo, solamente en instructions_english.txt y instrucciones_español.txt. Los archivos para subir para instalaciones nuevas estan bien. Vea archivo adjunto.
Categories Description V 1.0 - trikinuke (www.modeltronic.es) - Capturas de pantalla incluidas - Screenshots included
EN ESPAÑOL.
FUNCIÓN Y OBJETIVO: Inserción de código HTML personalizado que sea visible en las categorías. Si los productos pueden tener sus descripciones, ¿por qué no las categorías también?
Esta contribucion añade más dinamismo y amigabilidad a su Comercio, rompiendo la monotonía de ver siempre la misma estructura en las categorías,
[cabecera]
[imágenes de subcategorías / lista de productos]
[módulo de nuevos productos]
De esta forma podemos insertar código HTML para aportar más información en cada categoría, rompiendo con la estructura básica y dando más "colorido" e información a su Web. Otras veces, es necesario en ciertas categorías aportar más información necesaria para el cliente (vea ejemplo http://www.modeltronic.es/baterias-c-58.html)
De esta forma, siempre que en esta categoría haya introducido texto o en general código HTML, quedaría,
[cabecera]
[mi código HTML]
[imágenes de subcategorías / lista de productos]
[módulo de nuevos productos]
______________________________________________________________________________________________________
IN ENGLISH.
FUNCTION & TARGET: The adding of personalized HTML code visible when navigating into categories. If products are allowed to have their own descriptions, why not categories too?
This contribution performs more dinamism and usability to your Commerce, breaking monotony of view always the same categories structure,
[header]
[subcategories images / products list]
[new products modules]
For it, we can add HTML code for provide more information in each category, breaking with the basic structure and giving more colourity and information to your site. Other times, several categories need to be showed with more information, necessary for customers (eg.- http://www.modeltronic.es/baterias-c-58.html)
In this way, if I have inserted text or in general HTML code in the current category, the result would be,
[header]
[my HTML code]
[subcategories images / products list]
[new products modules]
Note: Contributions are used at own risk.