Jump to content
xt:Commerce Community Forum

Fehler beim Attribute kopieren - Select wird zu Radio


woldoo

Recommended Posts

Hallo,

ich habe ein großes Problem. Wenn ich Attribute kopiere, dann werden aus den select-Auswahlfeldern Radio-Optionen.

Ich habe die Problematik mit der korrekten Sortierreihenfolge schon durch den umgeschriebenen HTML-Text gefixt. Nun hat sich eben das Problem ergeben.

Hat mir jemand eine Lösung?

Richtig

Richtig.JPG

Falsch

Falsch.JPG


require('includes/application_top.php');
require(DIR_WS_MODULES.'new_attributes_config.php');
require(DIR_FS_INC .'xtc_findTitle.inc.php');
require_once(DIR_FS_INC . 'xtc_format_filesize.inc.php');

if ( isset($cPathID) && $_POST['action'] == 'change') {
include(DIR_WS_MODULES.'new_attributes_change.php');

xtc_redirect( './' . FILENAME_CATEGORIES . '?cPath=' . $cPathID . '&pID=' . $_POST['current_product_id'] );
}

?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['language_charset']; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script type="text/javascript" src="includes/general.js"></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<!-- header //-->
<?php
require(DIR_WS_INCLUDES . 'header.php');
?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr>
<td class="columnLeft2" width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td class="boxCenter" width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<?php
switch($_POST['action']) {
case 'edit':
if ($_POST['copy_product_id'] != 0) {
$attrib_query = xtc_db_query("SELECT products_id, options_id, options_values_id, options_values_price, sortorder, price_prefix, attributes_model, attributes_stock, options_values_weight, weight_prefix FROM ".TABLE_PRODUCTS_ATTRIBUTES." WHERE products_id = " . $_POST['copy_product_id']);
while ($attrib_res = xtc_db_fetch_array($attrib_query)) {
xtc_db_query("INSERT into ".TABLE_PRODUCTS_ATTRIBUTES." (products_id, options_id, options_values_id, options_values_price, sortorder, price_prefix, attributes_model, attributes_stock, options_values_weight, weight_prefix) VALUES ('" . $_POST['current_product_id'] . "', '" . $attrib_res['options_id'] . "', '" . $attrib_res['options_values_id'] . "', '" . $attrib_res['options_values_price'] . "', '" . $attrib_res['price_prefix'] . "', '" . $attrib_res['attributes_model'] . "', '" . $attrib_res['attributes_stock'] . "', '" . $attrib_res['options_values_weight'] . "', '" . $attrib_res['sortorder'] . "', '" . $attrib_res['weight_prefix'] . "')");
}
}
$pageTitle = TITLE_EDIT.': ' . xtc_findTitle($_POST['current_product_id'], $languageFilter);
include(DIR_WS_MODULES.'new_attributes_include.php');
break;

case 'change':
$pageTitle = TITLE_UPDATED;
include(DIR_WS_MODULES.'new_attributes_change.php');
include(DIR_WS_MODULES.'new_attributes_select.php');
break;

default:
$pageTitle = TITLE_EDIT;
include(DIR_WS_MODULES.'new_attributes_select.php');
break;
}
?>
</table></td>
</tr>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>[/PHP]

Vielen vielen Dank vorab

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...