Community Add-Ons
| Maintainers: | trikinuke |
Categories Description
for osCommerce Online Merchant v2.2
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]
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
