Zurück   xt:Commerce Webshop Shop Support > xt:Commerce Shopsoftware Community Area > Admininterface

Antwort
 
LinkBack Themen-Optionen Ansicht
  #1 (permalink)  
Alt 17.04.2010, 14:47
Neuer Benutzer
 
Registriert seit: 07.12.2009
Beiträge: 5
Frage Fehler beim Attribute kopieren - Select wird zu Radio

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


Falsch


PHP-Code:
  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'); ?>

Vielen vielen Dank vorab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
attribute, fehler, kopieren, radio, select

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Attribute kopieren MajorRom Admininterface 7 21.07.2008 09:27
Attribute kopieren SonjaSt Shopbereich 1 23.08.2007 14:06
KELKOO - EILT Stefan_w Allgemeine Diskussionen 0 09.12.2005 17:10
Attributverwaltung- Fehler in Bestehende Attribute Paul Litz Installation und Konfiguration 0 30.10.2005 10:26


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:21 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand