Anleitung Technische Daten mehrsprachig

© 2008 Estelco

(no warranty) released under GPL

1. BACKUP MACHEN!!!

2. Datenbank

database.sql importieren

3. Dateien kopieren

admin/products_parameters.php
admin/products_parameters_edit.php
admin/includes/classes/split_page_results.php
includes/modules/tpt.php
lang/german/admin/products_parameters.php
lang/german/admin/products_parameters_edit.php
templates/xtc4/module/tpt.html

4. Dateien anpassen

admin/includes/application_top.php

ca. Zeile 138

define('FILENAME_XSELL_GROUPS','cross_sell_groups.php');
danach einfügen
define('FILENAME_PRODUCTS_PARAMETERS', 'products_parameters.php');
define('FILENAME_PRODUCTS_PARAMETERS_EDIT', 'products_parameters_edit.php');

ca. Zeile 123

define('TABLE_CAMPAIGNS_IP','campaigns_ip');
danach einfügen
define('TABLE_PRODUCTS_PARAMETERS', 'products_parameters');
define('TABLE_PRODUCTS_PARAMETERS_DESCRIPTION', 'products_parameters_description');
define('TABLE_PRODUCTS_PARAMETERS_GROUPS', 'products_parameters_groups');
define('TABLE_PRODUCTS_PARAMETERS_GROUPS_DESCRIPTION', 'products_parameters_groups_description');

admin/includes/stylesheet.css

am Ende einfügen

.dataTableHeadingContent {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    padding: 5px;
    background-color: #f1f1f1;
    border: 1px solid #CCCCCC;
}

.dataTableHeadingContent2 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: bold;
    padding: 5px;
    background-color: #f1f1f1;
    border-right: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
}

.dataTableHeadingContent3 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    padding: 5px;
    background-color: #f1f1f1;
    border-right: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
}

admin/includes/modules/categories_view.php

ca. Zeile 646

$contents[] = array('align' => 'center', 'text' => '<table><tr><td><a class="button" onClick="this.blur();" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=new_product') . '">' . BUTTON_EDIT . '</a></td><td><form action="' . FILENAME_NEW_ATTRIBUTES . '" name="edit_attributes" method="post"><input type="hidden" name="action" value="edit"><input type="hidden" name="current_product_id" value="' . $pInfo->products_id . '"><input type="hidden" name="cpath" value="' . $cPath . '"><input type="submit" class="button" onClick="this.blur();" value="' . BUTTON_EDIT_ATTRIBUTES . '"></form></td></tr><tr><td colspan="2" style="text-align: center;"><form action="' . FILENAME_CATEGORIES . '" name="edit_crossselling" method="GET"><input type="hidden" name="action" value="edit_crossselling"><input type="hidden" name="current_product_id" value="' . $pInfo->products_id . '"><input type="hidden" name="cpath" value="' . $cPath  . '"><input type="submit" class="button" onClick="this.blur();" value="' . BUTTON_EDIT_CROSS_SELLING . '"></form></td></tr></table>');
ersetzen durch
$contents[] = array('align' => 'center', 'text' => '<table><tr><td><a class="button" onClick="this.blur();" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=new_product') . '">' . BUTTON_EDIT . '</a></td><td><form action="' . FILENAME_NEW_ATTRIBUTES . '" name="edit_attributes" method="post"><input type="hidden" name="action" value="edit"><input type="hidden" name="current_product_id" value="' . $pInfo->products_id . '"><input type="hidden" name="cpath" value="' . $cPath . '"><input type="submit" class="button" onClick="this.blur();" value="' . BUTTON_EDIT_ATTRIBUTES . '"></form></td></tr><tr><td><form action="' . FILENAME_CATEGORIES . '" name="edit_crossselling" method="GET"><input type="hidden" name="action" value="edit_crossselling"><input type="hidden" name="current_product_id" value="' . $pInfo->products_id . '"><input type="hidden" name="cpath" value="' . $cPath  . '"><input type="submit" class="button" onClick="this.blur();" value="' . BUTTON_EDIT_CROSS_SELLING . '"></form></td><td><a class="button" onClick="this.blur();" href="' . xtc_href_link(FILENAME_PRODUCTS_PARAMETERS . '?category_path=' . $cPath . '&products_id=' . $pInfo->products_id) .'">' . BUTTON_EDIT_TPT . '</a></td></tr></table>');

includes/database_tables.php

ca. Zeile 85

  define('TABLE_CAMPAIGNS_IP','campaigns_ip');
danach einfügen
  define('TABLE_PRODUCTS_PARAMETERS', 'products_parameters');
  define('TABLE_PRODUCTS_PARAMETERS_DESCRIPTION', 'products_parameters_description');
  define('TABLE_PRODUCTS_PARAMETERS_GROUPS', 'products_parameters_groups');
  define('TABLE_PRODUCTS_PARAMETERS_GROUPS_DESCRIPTION', 'products_parameters_groups_description');

includes/modules/product_info.php

ca. Zeile 136

include (DIR_WS_MODULES.'product_reviews.php');
danach einfügen
include (DIR_WS_MODULES.'tpt.php');

lang/german/admin/categories.php

ca. Zeile 179

define('BUTTON_EDIT_CROSS_SELLING','Cross Selling');
danach einfügen
define('BUTTON_EDIT_TPT', 'Technische Daten');

lang/english/admin/categories.php

ca. Zeile 179

define('BUTTON_EDIT_CROSS_SELLING','Cross Selling');
danach einfügen
define('BUTTON_EDIT_TPT', 'Technical parameters');

templates/xtc4/module/product_info/product_info_v1.html und alle eventuell noch vorhandenen Vorlagen für Produktinformationen

ca. Zeile 123 auf das {/if} achten, das muss davor bleiben!

{if $MODULE_cross_selling != ''}
davor einfügen
{if $MODULE_tpt != ''}
<table width="100%" border="0">
  <tr>
    <td align="center">{$MODULE_tpt}<br /></td>
  </tr>
</table>
{/if}