Modify

Opened 6 years ago

#1722 new Neues Feature

Neue Hooks: /admin/products_attributes.php

Reported by: web-looks Owned by: somebody
Priority: normal Milestone:
Component: Admin Version: 2.0.4.2
Keywords: Cc:
Blocked By: Blocking:

Description

Vorschlag für neue Hookpoints zur Erweiterung der Attributverwaltung im Adminbereich. Angelehnt an die bereits vorhandenen Hookpoints in new_attributes.php und orders.php.

  1. /admin/products_attributes.php

Suchen nach:

$sql_data_array = array('products_options_values_id' => $values_id,
                        'products_options_values_name' => xtc_db_prepare_input($_POST['products_options_values_name'][$languages[$i]['id']]),
                        'language_id' => $languages[$i]['id'],
                        'products_options_values_sortorder' => (int)$_POST['products_options_values_sortorder'],
                        );

DANACH einfügen:

foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/insert_values/','php') as $file) require ($file);

Suchen nach:

$sql_data_array = array('products_options_values_id' => $vID,
                        'products_options_values_name' => xtc_db_prepare_input($_POST['products_options_values_name'][$languages[$i]['id']]),
                        'language_id' => $languages[$i]['id'],
                        'products_options_values_sortorder' => (int)$_POST['products_options_values_sortorder'],
                        );

DANACH einfügen:

foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/save_values/','php') as $file) require ($file);

Suchen nach:

$sql_data_array = array('products_options_id' => $options_id,
                        'products_options_name' => xtc_db_prepare_input($_POST['products_options_name'][$languages[$i]['id']]),
                        'language_id' => $languages[$i]['id'],
                        'products_options_sortorder' => (int)$_POST['products_options_sortorder'],
                        );

DANACH einfügen:

foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/insert_options/','php') as $file) require ($file);

Suchen nach:

$sql_data_array = array('products_options_id' => $oID,
                        'products_options_name' => xtc_db_prepare_input($_POST['products_options_name'][$languages[$i]['id']]),
                        'language_id' => $languages[$i]['id'],
                        'products_options_sortorder' => (int)$_POST['products_options_sortorder'],
                        );

DANACH einfügen:

foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/save_options/','php') as $file) require ($file);

Suchen nach (letzter Eintrag unter switch action):

xtc_redirect(xtc_href_link(FILENAME_PRODUCTS_ATTRIBUTES, xtc_get_all_get_params(array('action', 'oID'))));
break;

DANACH einfügen:

case 'custom':
  foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/action/','php') as $file) require ($file);
  break;

Suchen nach:

  case 'name-desc':
    $option_sort = 'po.products_options_name DESC, po.products_options_sortorder';
    $value_sort  = 'pov.products_options_values_name DESC, pov.products_options_values_sortorder';
    break;  
}

DANACH einfügen:

foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/sorting/','php') as $file) require ($file);

Suchen nach:

<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_OPT_VALUE.xtc_sorting(FILENAME_PRODUCTS_ATTRIBUTES, 'name'); ?></td>

DANACH einfügen:

<?php foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/values_th/','php') as $file) require ($file); ?>

Suchen nach:

<td class="dataTableContent"><?php echo $values['products_options_values_name']; ?></td>

DANACH einfügen:

<?php foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/values_td/','php') as $file) require ($file); ?>

Suchen nach:

<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_OPT_NAME.xtc_sorting(FILENAME_PRODUCTS_ATTRIBUTES, 'name'); ?></td>

DANACH einfügen:

<?php foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/options_th/','php') as $file) require ($file); ?>

Suchen nach:

<td class="dataTableContent"><?php echo '<a href="' . xtc_href_link(FILENAME_PRODUCTS_ATTRIBUTES, xtc_get_all_get_params(array('action', 'oID', 'list')) . 'oID=' . $options['products_options_id'] . '&list=detail') . '">' . xtc_image(DIR_WS_ICONS . 'folder.gif', ICON_FOLDER) . '</a>&nbsp;' . $options['products_options_name']; ?></td>

DANACH einfügen:

<?php foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/options_td/','php') as $file) require ($file); ?>

Suchen nach:

$contents[] = array('text' => '<br />' . TEXT_INFO_VALUE_SORT . '<br />' . xtc_draw_input_field('products_options_values_sortorder'));

DANACH einfügen:

foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/new_value/','php') as $file) require ($file);

Suchen nach:

$contents[] = array('text' => '<br />' . TEXT_INFO_VALUE_SORT . '<br />' . xtc_draw_input_field('products_options_values_sortorder', $vInfo->products_options_values_sortorder));

DANACH einfügen:

foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/edit_value/','php') as $file) require ($file); 

Suchen nach:

$contents[] = array('text' => '<br />' . TEXT_INFO_OPTION_SORT . '<br />' . xtc_draw_input_field('products_options_sortorder'));

DANACH einfügen:

foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/new_option/','php') as $file) require ($file);

Suchen nach:

$contents[] = array('text' => '<br />' . TEXT_INFO_OPTION_SORT . '<br />' . xtc_draw_input_field('products_options_sortorder', $oInfo->products_options_sortorder));

DANACH einfügen:

foreach(auto_include(DIR_FS_ADMIN.'includes/extra/modules/products_attributes/edit_option/','php') as $file) require ($file); 

  1. Neue Ordner erstellen

/admin/includes/extra/modules/products_attributes/insert_values/
/admin/includes/extra/modules/products_attributes/save_values/
/admin/includes/extra/modules/products_attributes/insert_options/
/admin/includes/extra/modules/products_attributes/save_options/
/admin/includes/extra/modules/products_attributes/sorting/
/admin/includes/extra/modules/products_attributes/values_th/
/admin/includes/extra/modules/products_attributes/values_td/
/admin/includes/extra/modules/products_attributes/options_th/
/admin/includes/extra/modules/products_attributes/options_td/
/admin/includes/extra/modules/products_attributes/new_value/
/admin/includes/extra/modules/products_attributes/edit_value/
/admin/includes/extra/modules/products_attributes/new_option/
/admin/includes/extra/modules/products_attributes/edit_option/
/admin/includes/extra/modules/products_attributes/action/

Attachments (0)

Change History (0)

Modify Ticket

Action
as new The owner will remain somebody.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.