Jump to content
xt:Commerce Community Forum

AudiV8

Members
  • Content Count

    39
  • Joined

  • Last visited

  1. Sieht Klasse aus. Das sch?nste finde ich, die detailreichen Abbildungen, oft bei solchen Produkten vernachl?ssigt. Mfg aus DD
  2. Hi, Ich habe w?hrend des "bastelns" denb Cache und allen anderen Karm ausgehabt. Ich habe heute erst den Cache mal eingestellt. das hatte nichts gebracht. Ich habe ebenfalls, das komplett originale Template benutzt und es geht auch net - das wundert mich ja so. Nein, deshalb hatte ich ja oben die Bilder von der Hersteller Verwaltung drin, und die Box manufactuer_info sollte ja genau diesen Link wieder geben. Der aus der Produktbeschreibung funzt ja auch. Fehlt das im original auch? habe mir gerade mal eine orig. Box aufgerufen da steht davon nix drin: <table width="100%" border="0" cellpadding="2" cellspacing="0"> <tr> <td class="infoBoxHeading_right"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="infoBoxHeading_right">{#heading_manufacturers_info#} </td> <td width="10"></td> </tr> </table></td> </tr> <tr> <td class="infoBox_right" align="right"><table width="95%" border="0" cellpadding="2" cellspacing="0"> <tr> <td class="boxText">{if $IMAGE}<center><img src="{$IMAGE}"><br></center>{/if} {$NAME}<br> {$LINK_MORE}</td> </tr> </table></td> </tr> </table> Das ist die Box so wie ich Sie runtergeladen habe...
  3. Ja ich w?hle Hersteller aus Ja ist in der Index Datei Habe eben auf das Standart Template umgestellt, wo alle Datein original sind, ohne Ergebnis. Habe eben angeschaltet, geht auch nicht. Was ist mit dieser? Verwunderlich das es selbst mit allen orignai Datein nicht geht...
  4. Hi, Trotz der http: Angabe vor dem Hersteller Link, siehe Bild: wird im Shop nix angezeigt: Hat jemand ne Idee was es sein kann? Habe in der Box selber nix ge?ndert, nur die Texteintr?ge in den language Datein angepasst. Habe auch, um sicher zu gehen, die Box Man_Info original noch mal in den Shop geladen, auch keine Anzeige. Nun dachte ich das es daran l?ge, das ich die Links sp?ter hinzu gef?gt habe, aber das war es auch nicht, nach Neuanlage eines Datensatzes mit gleichzeitiger Link angabe, kam auch nix... Hab ich nur mal wieder Tomaten auf den Augen? Mfg aus DoppelD
  5. Hallo, Ich m?chte die {$box_MANUFACTURERS_INFO} in die Productinfo einf?gen. In der Index Seite, also links oder rechts wird die Box angezeigt. Wenn ich dagegen die Variable in die Prduct Info einf?ge wird schlicht und ergreifend nix angezeigt. hier mal ein Link darauf: feste dr?cken :-) In dem hellgr?nen Feld unter Lieferzeit da wo "info" steht, habe ich die {$box_MANUFACTURERS_INFO} eingef?gt, allerdings wird nix angezeigt. Hat jemand ne Idee? Mfg aus DoppelD
  6. Hallo, Bekomme im Internetexplorer eine Fehlermeldung beim Aufruf "neues Produkt" " Es ist ein Laufzeitfehler aufgetreten soll der Debugmodus gestartet werden? Zeile:35 Fehler: 'document.all.products_3 NULL oder kein Objekt" Kann mir einer berichten was der Anlass dieser Fehlermeldung ist? Im Opera oder im Mozilla kommt der Fehler nicht. Hintergrund der Geschichte, ich bruach zum Katalog bef?llen die "Auto vervollst?ndigen" Funktion, welche ich in den anderen Browsern nicht aufgefunden habe. Beim Aufruf der Funktion "neues Produkt" kommt wie gesagt diese Fehlermeldung und er springt gleich runter zu dem Fenster wo die Produkt beschreibung rein kommt. Der Cursor springt ins Feld Kurzbeschreibung. Hat einer ne Idee was ich da wieder verzapft habe? Hier der Aufruf des Scriptes aus der "new_product" <link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css"> <script language="JavaScript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script> <script language="javascript"> var dateAvailable = new ctlSpiffyCalendarBox("dateAvailable", "new_product", "products_date_available","btnDate1","<?php echo $pInfo->products_date_available; ?>",scBTNMODE_CUSTOMBLUE); </script> <script language="JavaScript" type="text/JavaScript"> document.all.products_description_3.focus(); </script> Hier noch der Code aus meiner "new_product" im gesamten: <?php /* -------------------------------------------------------------- $Id: new_product.php,v 1.12 2004/03/16 15:01:16 fanta2k Exp $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce -------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(categories.php,v 1.140 2003/03/24); [url]www.oscommerce.com[/url] (c) 2003 nextcommerce (categories.php,v 1.37 2003/08/18); [url]www.nextcommerce.org[/url] Released under the GNU General Public License -------------------------------------------------------------- Third Party contribution: Enable_Disable_Categories 1.3 Autor: Mikel Williams | [email]mikel@ladykatcostumes.com[/email] New Attribute Manager v4b Autor: Mike G | [email]mp3man@internetwork.net[/email] | http://downloads.ephing.com Category Descriptions (Version: 1.5 MS2) Original Author: Brian Lowe <blowe@wpcusrgrp.org> | Editor: Lord Illicious <shaolin-venoms@illicious.net> Customers Status v3.x (c) 2002-2003 Copyright Elari [email]elari@free.fr[/email] | [url]www.unlockgsm.com/dload-osc/[/url] | CVS : http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/elari/?sortby=date#dirlist Released under the GNU General Public License --------------------------------------------------------------*/ if ( ($_GET['pID']) && (!$_POST) ) { $product_query = xtc_db_query("select p.products_fsk18, p.product_template, p.options_template, pd.products_name, pd.products_car_manu, pd.products_car_model, pd.products_car_typ, pd.products_car_aufbau, pd.products_car_halast, pd.products_car_valast, pd.products_car_motor, pd.products_car_abbj, pd.products_car_bisbj, pd.products_car_specific, pd.products_fw_uvp, pd.products_fw_manu, pd.products_fw_tlrate, pd.products_fw_comment, pd.products_fw_abe, pd.products_fw_notes, pd.products_description, pd.products_short_description, pd.products_meta_title, pd.products_meta_description, pd.products_meta_keywords, pd.products_url, p.products_id, p.group_ids, p.products_sort, p.products_shippingtime, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_discount_allowed, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int)$_GET['pID'] . "' and p.products_id = pd.products_id and pd.language_id = '" . $_SESSION['languages_id'] . "'"); $product = xtc_db_fetch_array($product_query); $pInfo = new objectInfo($product); } elseif ($_POST) { $pInfo = new objectInfo($_POST); $products_name = $_POST['products_name']; $products_car_manu = $_POST['products_car_manu']; $products_car_model = $_POST['products_car_model']; $products_car_typ = $_POST['products_car_typ']; $products_car_aufbau = $_POST['products_car_aufbau']; $products_car_halast = $_POST['products_car_halast']; $products_car_valast = $_POST['products_car_valast']; $products_car_motor = $_POST['products_car_motor']; $products_car_abbj = $_POST['products_car_abbj']; $products_car_bisbj = $_POST['products_car_bisbj']; $products_car_specific = $_POST['products_car_specific']; $products_fw_uvp = $_POST['products_fw_uvp']; $products_fw_manu = $_POST['products_fw_manu']; $products_fw_tlrate = $_POST['products_fw_tlrate']; $products_fw_comment = $_POST['products_fw_comment']; $products_fw_abe = $_POST['products_fw_abe']; $products_fw_notes = $_POST['products_fw_notes']; $products_description = $_POST['products_description']; $products_short_description = $_POST['products_short_description']; $products_meta_title = $_POST['products_meta_title']; $products_meta_description = $_POST['products_meta_description']; $products_meta_keywords = $_POST['products_meta_keywords']; $products_url = $_POST['products_url']; } else { $pInfo = new objectInfo(array()); } $manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE)); $manufacturers_query = xtc_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); while ($manufacturers = xtc_db_fetch_array($manufacturers_query)) { $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers['manufacturers_name']); } $tax_class_array = array(array('id' => '0', 'text' => TEXT_NONE)); $tax_class_query = xtc_db_query("select tax_class_id, tax_class_title from " . TABLE_TAX_CLASS . " order by tax_class_title"); while ($tax_class = xtc_db_fetch_array($tax_class_query)) { $tax_class_array[] = array('id' => $tax_class['tax_class_id'], 'text' => $tax_class['tax_class_title']); } $shipping_statuses = array(); $shipping_statuses=xtc_get_shipping_status(); $languages = xtc_get_languages(); switch ($pInfo->products_status) { case '0': $status = false; $out_status = true; break; case '1': default: $status = true; $out_status = false; } ?> <link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css"> <script language="JavaScript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script> <script language="javascript"> var dateAvailable = new ctlSpiffyCalendarBox("dateAvailable", "new_product", "products_date_available","btnDate1","<?php echo $pInfo->products_date_available; ?>",scBTNMODE_CUSTOMBLUE); </script> <script language="JavaScript" type="text/JavaScript"> document.all.products_description_3.focus(); </script> <tr><td> <?php $form_action = ($_GET['pID']) ? 'update_product' : 'insert_product'; ?> <?php $fsk18_array=array(array('id'=>0,'text'=>NO),array('id'=>1,'text'=>YES)); ?> <?php echo xtc_draw_form('new_product', FILENAME_CATEGORIES, 'cPath=' . $_GET['cPath'] . '&pID=' . $_GET['pID'] . '&action='.$form_action, 'post', 'enctype="multipart/form-data"'); ?> <span class="pageHeading"><?php echo sprintf(TEXT_NEW_PRODUCT, xtc_output_generated_category_path($current_category_id)); ?></span><br> <table width="100%" border="0"> <tr> <td><span class="main"><?php echo TEXT_PRODUCTS_STATUS; ?> <?php echo xtc_draw_separator('pixel_trans.gif', '24', '15') . '' . xtc_draw_radio_field('products_status', '1', $status) . '' . TEXT_PRODUCT_AVAILABLE . '' . xtc_draw_radio_field('products_status', '0', $out_status) . '' . TEXT_PRODUCT_NOT_AVAILABLE; ?><br> </span> <table width="100%" border="0"> <tr> <td class="main" width="127"><?php echo TEXT_PRODUCTS_DATE_AVAILABLE; ?><br> <small>(YYYY-MM-DD)</small></td> <td class="main"><?php echo xtc_draw_separator('pixel_trans.gif', '24', '15') . ''; ?> <script language="javascript">dateAvailable.writeControl(); dateAvailable.dateFormat="yyyy-MM-dd";</script></td> </tr> </table> <span class="main"> <br> </span></td> <td><table bgcolor="f3f3f3" style="border: 1px solid; border-color: #cccccc;" "width="100%" border="0"> <tr> <td><span class="main"><?php echo TEXT_PRODUCTS_SORT; ?></span></td> <td><span class="main"><?php echo xtc_draw_input_field('products_sort', $pInfo->products_sort); ?></span></td> </tr> <tr> <td><span class="main"><?php echo TEXT_PRODUCTS_MODEL; ?></span></td> <td><span class="main"><?php echo xtc_draw_input_field('products_model', $pInfo->products_model); ?></span></td> </tr> <tr> <td><span class="main"><?php echo TEXT_PRODUCTS_MANUFACTURER; ?></span></td> <td><span class="main"><?php echo xtc_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id); ?></span></td> </tr> <tr> <td><span class="main"><?php echo TEXT_FSK18; ?></span></td> <td><span class="main"><?php echo xtc_draw_pull_down_menu('fsk18', $fsk18_array, $pInfo->products_fsk18); ?></span></td> </tr> <tr> <?php if (ACTIVATE_SHIPPING_STATUS=='true') { ?> <td><span class="main"><?php echo BOX_SHIPPING_STATUS.':'; ?></span></td> <td><span class="main"><?php echo xtc_draw_pull_down_menu('shipping_status', $shipping_statuses, $pInfo->products_shippingtime); ?></span></td> </tr> <?php } ?> <tr> <?php $files=array(); if ($dir= opendir(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_info/')){ while (($file = readdir($dir)) !==false) { if (is_file( DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_info/'.$file) and ($file !="index.html")){ $files[]=array( 'id' => $file, 'text' => $file); }//if } // while closedir($dir); } $default_array=array(); // set default value in dropdown! if ($content['content_file']=='') { $default_array[]=array('id' => 'default','text' => TEXT_SELECT); $default_value=$pInfo->product_template; $files=array_merge($default_array,$files); } else { $default_array[]=array('id' => 'default','text' => TEXT_NO_FILE); $default_value=$pInfo->product_template; $files=array_merge($default_array,$files); } echo '<td class="main">'.TEXT_CHOOSE_INFO_TEMPLATE.':</td>'; echo '<td><span class="main">'.xtc_draw_pull_down_menu('info_template',$files,$default_value); ?> </span></td> </tr> <tr> <?php $files=array(); if ($dir= opendir(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_options/')){ while (($file = readdir($dir)) !==false) { if (is_file( DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_options/'.$file) and ($file !="index.html")){ $files[]=array( 'id' => $file, 'text' => $file); }//if } // while closedir($dir); } // set default value in dropdown! $default_array=array(); if ($content['content_file']=='') { $default_array[]=array('id' => 'default','text' => TEXT_SELECT); $default_value=$pInfo->options_template; $files=array_merge($default_array,$files); } else { $default_array[]=array('id' => 'default','text' => TEXT_NO_FILE); $default_value=$pInfo->options_template; $files=array_merge($default_array,$files); } echo '<td class="main">'.TEXT_CHOOSE_OPTIONS_TEMPLATE.':'.'</td>'; echo '<td><span class="main">'.xtc_draw_pull_down_menu('options_template',$files,$default_value); ?> </span></td> </tr> </table></td> </tr> </table> <br><br> <?php for ($i = 0, $n = sizeof($languages); $i < $n; $i++) { ?> <table width="100%" border="0"> <tr> <td bgcolor="#FBFBFB" width="100" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_MANU; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_manu[' . $languages[$i]['id'] . ']', (($products_car_manu[$languages[$i]['id']]) ? stripslashes($products_car_manu[$languages[$i]['id']]) : xtc_get_products_car_manu($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_MODEL; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_model[' . $languages[$i]['id'] . ']', (($products_car_model[$languages[$i]['id']]) ? stripslashes($products_car_model[$languages[$i]['id']]) : xtc_get_products_car_model($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_TYP; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_typ[' . $languages[$i]['id'] . ']', (($products_car_typ[$languages[$i]['id']]) ? stripslashes($products_car_typ[$languages[$i]['id']]) : xtc_get_products_car_typ($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_AUFBAU; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_aufbau[' . $languages[$i]['id'] . ']', (($products_car_aufbau[$languages[$i]['id']]) ? stripslashes($products_car_aufbau[$languages[$i]['id']]) : xtc_get_products_car_aufbau($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_HALAST; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_halast[' . $languages[$i]['id'] . ']', (($products_car_halast[$languages[$i]['id']]) ? stripslashes($products_car_halast[$languages[$i]['id']]) : xtc_get_products_car_halast($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_VALAST; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_valast[' . $languages[$i]['id'] . ']', (($products_car_valast[$languages[$i]['id']]) ? stripslashes($products_car_valast[$languages[$i]['id']]) : xtc_get_products_car_halast($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_MOTOR; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_motor[' . $languages[$i]['id'] . ']', (($products_car_motor[$languages[$i]['id']]) ? stripslashes($products_car_motor[$languages[$i]['id']]) : xtc_get_products_car_motor($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_ABBJ; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_abbj[' . $languages[$i]['id'] . ']', (($products_car_abbj[$languages[$i]['id']]) ? stripslashes($products_car_abbj[$languages[$i]['id']]) : xtc_get_products_car_abbj($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_BISBJ; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_bisbj[' . $languages[$i]['id'] . ']', (($products_car_bisbj[$languages[$i]['id']]) ? stripslashes($products_car_bisbj[$languages[$i]['id']]) : xtc_get_products_car_bisbj($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_CAR_SPECIFIC; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_car_specific[' . $languages[$i]['id'] . ']', (($products_car_specific[$languages[$i]['id']]) ? stripslashes($products_car_specific[$languages[$i]['id']]) : xtc_get_products_car_specific($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td></tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_UVP; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_uvp[' . $languages[$i]['id'] . ']', (($products_fw_uvp[$languages[$i]['id']]) ? stripslashes($products_fw_uvp[$languages[$i]['id']]) : xtc_get_products_fw_uvp($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" width="10" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_MANU; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_manu[' . $languages[$i]['id'] . ']', (($products_fw_manu[$languages[$i]['id']]) ? stripslashes($products_fw_manu[$languages[$i]['id']]) : xtc_get_products_fw_manu($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_TLRATE; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_tlrate[' . $languages[$i]['id'] . ']', (($products_fw_tlrate[$languages[$i]['id']]) ? stripslashes($products_fw_tlrate[$languages[$i]['id']]) : xtc_get_products_fw_tlrate($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_COMMENT; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_comment[' . $languages[$i]['id'] . ']', (($products_fw_comment[$languages[$i]['id']]) ? stripslashes($products_fw_comment[$languages[$i]['id']]) : xtc_get_products_fw_comment($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_ABE; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_abe[' . $languages[$i]['id'] . ']', (($products_fw_abe[$languages[$i]['id']]) ? stripslashes($products_fw_abe[$languages[$i]['id']]) : xtc_get_products_fw_abe($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FBFBFB" valign="top" class="main"><?php echo TEXT_PRODUCTS_FW_NOTES; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_fw_notes[' . $languages[$i]['id'] . ']', (($products_fw_notes[$languages[$i]['id']]) ? stripslashes($products_fw_notes[$languages[$i]['id']]) : xtc_get_products_fw_notes($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> <tr> <td bgcolor="#FFCC33" valign="top" class="main"><?php echo TEXT_PRODUCTS_NAME; ?></td><td bgcolor="#CCCCCC"><?php echo xtc_draw_input_field('products_name[' . $languages[$i]['id'] . ']', (($products_name[$languages[$i]['id']]) ? stripslashes($products_name[$languages[$i]['id']]) : xtc_get_products_name($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> </table> <table> <tr> <td class="main"><?php echo TEXT_PRODUCTS_URL . '<small>' . TEXT_PRODUCTS_URL_WITHOUT_HTTP . '</small>'; ?><?php echo xtc_draw_input_field('products_url[' . $languages[$i]['id'] . ']', (($products_url[$languages[$i]['id']]) ? stripslashes($products_url[$languages[$i]['id']]) : xtc_get_products_url($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> </table> <table width="100%" border="0"> <tr> <td class="main" colspan="2"><b><?php echo TEXT_PRODUCTS_DESCRIPTION; ?></b><br> <?php if (USE_SPAW=='true') { $sw = new SPAW_Wysiwyg( $control_name='products_description_'.$languages[$i]['id'] , // control's name $value= (($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : xtc_get_products_description($pInfo->products_id, $languages[$i]['id'])), // initial value $lang='', // language $mode = 'full', // toolbar mode $theme='default', // theme (skin) $width='100%', // width $height='400px', // height $css_stylesheet='', // css stylesheet file for content $dropdown_data='' // data for dropdowns (style, font, etc.) ); $sw->show(); } else { echo xtc_draw_textarea_field('products_description_' . $languages[$i]['id'], 'soft', '150', '15', (($products_description[$languages[$i]['id']]) ? stripslashes($products_description[$languages[$i]['id']]) : xtc_get_products_description($pInfo->products_id, $languages[$i]['id']))); } ?> </td> </tr> <tr> <td class="main" width="60%" rowspan="2" valign="top"><b><?php echo TEXT_PRODUCTS_SHORT_DESCRIPTION; ?></b><br> <?php if (USE_SPAW=='true') { $sw = new SPAW_Wysiwyg( $control_name='products_short_description_' . $languages[$i]['id'] , // control's name $value= (($products_short_description[$languages[$i]['id']]) ? stripslashes($products_short_description[$languages[$i]['id']]) : xtc_get_products_short_description($pInfo->products_id, $languages[$i]['id'])), // initial value $lang='', // language $mode = '', // toolbar mode $theme='default', // theme (skin) $width='100%', // width $height='150px', // height $css_stylesheet='', // css stylesheet file for content $dropdown_data='' // data for dropdowns (style, font, etc.) ); $sw->show(); } else { echo xtc_draw_textarea_field('products_short_description_' . $languages[$i]['id'], 'soft', '60', '8', (($products_short_description[$languages[$i]['id']]) ? stripslashes($products_short_description[$languages[$i]['id']]) : xtc_get_products_short_description($pInfo->products_id, $languages[$i]['id']))); } ?></td> <td class="main"><?php echo TEXT_META_TITLE; ?><br> <?php echo xtc_draw_textarea_field('products_meta_title[' . $languages[$i]['id'] . ']', 'soft', '60', '1', (($products_meta_title[$languages[$i]['id']]) ? stripslashes($products_meta_title[$languages[$i]['id']]) : xtc_get_products_meta_title($pInfo->products_id, $languages[$i]['id']))); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_META_DESCRIPTION; ?><br> <?php echo xtc_draw_textarea_field('products_meta_description[' . $languages[$i]['id'] . ']', 'soft', '60', '3', (($products_meta_description[$languages[$i]['id']]) ? stripslashes($products_meta_description[$languages[$i]['id']]) : xtc_get_products_meta_description($pInfo->products_id, $languages[$i]['id']))); ?><br> <?php echo TEXT_META_KEYWORDS; ?><br> <?php echo xtc_draw_textarea_field('products_meta_keywords[' . $languages[$i]['id'] . ']', 'soft', '60', '3', (($products_meta_keywords[$languages[$i]['id']]) ? stripslashes($products_meta_keywords[$languages[$i]['id']]) : xtc_get_products_meta_keywords($pInfo->products_id, $languages[$i]['id']))); ?> </td> </tr> </table> <?php } ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr><?php echo HEADING_PRODUCT_OPTIONS; ?></tr> <tr><td> <table width="100%" border="0" bgcolor="f3f3f3" style="border: 1px solid; border-color: #cccccc;"> <tr> <td class="main"><?php echo TEXT_PRODUCTS_QUANTITY; ?><br><?php echo xtc_draw_input_field('products_quantity', $pInfo->products_quantity); ?></td> </tr> <tr><td colspan="4"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td></tr> <tr> <td class="main"><?php echo TEXT_PRODUCTS_WEIGHT; ?><br><?php echo xtc_draw_input_field('products_weight', $pInfo->products_weight); ?><?php echo TEXT_PRODUCTS_WEIGHT_INFO; ?></td> </tr> <tr><td colspan="4"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td></tr> <td class="main"><?php echo TEXT_PRODUCTS_IMAGE; ?><br><?php echo xtc_draw_file_field('products_image') . '<br>' . xtc_draw_separator('pixel_trans.gif', '24', '15') . '' . $pInfo->products_image . xtc_draw_hidden_field('products_previous_image', $pInfo->products_image); ?></td> </tr> <tr><td colspan="4"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td></tr> <?php if (GROUP_CHECK=='true') { $customers_statuses_array = xtc_get_customers_statuses(); $customers_statuses_array=array_merge(array(array('id'=>'all','text'=>TXT_ALL)),$customers_statuses_array); ?> <tr> <td style="border-top: 1px solid; border-color: #ff0000;" valign="top" class="main" ><?php echo ENTRY_CUSTOMERS_STATUS; ?></td> <td style="border-top: 1px solid; border-left: 1px solid; border-color: #ff0000;" bgcolor="#FFCC33" class="main"> <?php for ($i=0;$n=sizeof($customers_statuses_array),$i<$n;$i++) { if (strstr($pInfo->group_ids,'c_'.$customers_statuses_array[$i]['id'].'_group')) { $checked='checked '; } else { $checked=''; } echo '<input type="checkbox" name="groups[]" value="'.$customers_statuses_array[$i]['id'].'"'.$checked.'> '.$customers_statuses_array[$i]['text'].'<br>'; } ?> </td> </tr> <?php } ?> </table> </td></tr> <tr><td> <table width="100%" border="0"> <tr> <td colspan="4"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> <tr> <td colspan="4"><?php include(DIR_WS_MODULES.'group_prices.php'); ?></td> </tr> <tr> <td colspan="4"><?php echo xtc_draw_separator('pixel_trans.gif', '1', '10'); ?></td> </tr> </table> </td></tr> <tr> <td class="main" align="right"><?php echo xtc_draw_hidden_field('products_date_added', (($pInfo->products_date_added) ? $pInfo->products_date_added : date('Y-m-d'))) . xtc_image_submit('button_save.gif', IMAGE_SAVE,'style="cursor:hand" onClick="return confirm(\''.SAVE_ENTRY.'\')"') . '<a href="' . xtc_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $_GET['pID']) . '">' . xtc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>'; ?></td> </tr></form>
  7. Hallo, Na Klasse, in der default hab ich gar net nachgesehen, jetzt geht es, DANKE! :z: :pst:
  8. Hallo noch mal, Hat nicht jemand vielleicht noch ne Idee? Ich komm nicht so recht weiter. Wie gesagt, in der product_Info funktioniert alles. Nur in der Productlisting komme ich nicht weiter. Hier noch mal die ?nderungen die ich durchgef?hrt habe: product_listing.php : ca. ab Zeile 56 rum 'PRODUCTS_CAR_MANU'=>$listing['products_car_manu'], 'PRODUCTS_CAR_MODEL'=>$listing['products_car_model'], 'PRODUCTS_CAR_TYP'=>$listing['products_car_typ'], 'PRODUCTS_FW_TLRATE'=>$listing['products_fw_tlrate'], Habe also meine neuen Felder dieser Datei zugef?gt- Dann habe ich im Ordner Tamplates/module/productlistung/prodcutlistiungv1.php meine neuen Datens?tze eingetragen: <td class="main" width="0" nowrap><strong><a href="{$module_data.PRODUCTS_LINK}"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">{$module_data.PRODUCTS_CAR_MANU}</font></a> </strong></td> Darauf hin wird aber nix angezeigt. Den Tip befolgend, im inc Ordner nachzusehen, habe ich eine neue datei namens xtc_get_products_meinneuesfeld.inc.php kreiert und zwar so: <?php /* ----------------------------------------------------------------------------------------- $Id: xtc_get_products_meinneuesfeld.inc.php,v 1.1 2003/09/06 21:47:50 fanta2k Exp $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright (c) 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: (c) 2000-2001 The Exchange Project (earlier name of osCommerce) (c) 2002-2003 osCommerce(general.php,v 1.225 2003/05/29); [url]www.oscommerce.com[/url] (c) 2003 nextcommerce (xtc_get_products_name.inc.php,v 1.3 2003/08/13); [url]www.nextcommerce.org[/url] Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ function xtc_get_products_meinneuesfeld($product_id, $language = '') { if (empty($language)) $language = $_SESSION['languages_id']; $product_query = xtc_db_query("select products_meinneuesfeld from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $product_id . "' and language_id = '" . $language . "'"); $product = xtc_db_fetch_array($product_query); return $product['products_meinneuesfeld']; } ?> Auch darauf hin wird nach wie vor nix angezeigt. Wer kann mir den entscheidenden Tip geben? Mfg
  9. Ich m?chte meine neuen Datenbankfelder in der Productlisting mit anzeigen lassen, komm da aber nicht so recht weiter. Habe in der ProductListing meine neuen Eintr?ge hinzugef?gt, aber anzeigen tut er nix. $module_content[]=array( 'PRODUCTS_CAR_MANU'=>$listing['products_car_manu'], 'PRODUCTS_CAR_MODEL'=>$listing['products_car_model'], 'PRODUCTS_CAR_TYP'=>$listing['products_car_typ'], 'PRODUCTS_FW_TLRATE'=>$listing['products_fw_tlrate'], 'PRODUCTS_NAME'=>$listing['products_name'], 'PRODUCTS_MODEL'=>$listing['products_model'], 'PRODUCTS_SHORT_DESCRIPTION'=>$listing['products_short_description'], 'PRODUCTS_IMAGE'=>$image, 'PRODUCTS_PRICE'=>$price, 'PRODUCTS_LINK' =>xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']), 'BUTTON_BUY_NOW'=>$buy_now, 'PRODUCTS_FSK18' => $fsk18, 'SHIPPING_NAME'=>$shipping_status_name, 'SHIPPING_IMAGE'=>$shipping_status_image, 'PRODUCTS_ID'=>$listing['products_id']); Muss ich f?r jedes neue Datenbankfeld eine Datei in der Art wie xtc_get_products_name.inc anlegen? Die Daten aus den neuen Feldern werden in der Product_info schon agezeigt, das funktioniert schon... Nur in der Product_listing nicht...
  10. Hallo, Woher bezieht die template/product_listing/product_listing_v1.htm diesen Eintrag? {$module_data.PRODUCTS_NAME} Wo wird das, bzw. aus welcher Datei kommt diese Angabe? ...
  11. Dann h?ng ich mal meine n?chste Frage hier noch mit dran: Nun m?ssen ja die Felder im Shop auch angezeigt werden. Zuerst in der Auflistung der Artikel, Da ja "mein" products_name nun aus 4 verschiedenen Feldern besteht. Habe mir die modules/product_listing.php schon mal vorgenommen, und ?berall da wo der urspr?ngliche Eintrag "Products_name" drin ist um meine neuen Felder erweitert. Hier im Einzelnen: if ($listing['products_fsk18']=='0') $buy_now='<a href="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('action')) . 'action=buy_now&BUYproducts_id=' . $listing['products_id'], 'NONSSL') . '">' . xtc_image_button('button_buy_now.gif', TEXT_BUY . $listing['products_car_manu'] .$listing['products_car_model'] .$listing['products_car_typ'] .$listing['products_fw_tlrate'] . $listing['products_name'] . TEXT_NOW); } else { $buy_now='<a href="' . xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('action')) . 'action=buy_now&BUYproducts_id=' . $listing['products_id'], 'NONSSL') . '">' . xtc_image_button('button_buy_now.gif', TEXT_BUY . $listing['products_car_manu'] .$listing['products_car_model'] .$listing['products_car_typ'] .$listing['products_fw_tlrate'] . $listing['products_name'] . TEXT_NOW); } $fsk18=''; if ($listing['products_fsk18']=='1') { $fsk18='true'; } und hier: $image=''; if ($listing['products_image']!='') { $image=DIR_WS_THUMBNAIL_IMAGES . $listing['products_image']; } if (ACTIVATE_SHIPPING_STATUS=='true') { $shipping_status=xtc_get_shipping_status_name($listing['products_shippingtime']); $shipping_status_name=$shipping_status['name']; if ($shipping_status['image']!='') $shipping_status_image='admin/images/icons/'.$shipping_status['image']; } $module_content[]=array( 'PRODUCTS_CAR_MANU'=>$listing['products_car_manu'], 'PRODUCTS_CAR_MODEL'=>$listing['products_car_model'], 'PRODUCTS_CAR_TYP'=>$listing['products_car_typ'], 'PRODUCTS_FW_TLRATE'=>$listing['products_fw_tlrate'], 'PRODUCTS_NAME'=>$listing['products_name'], 'PRODUCTS_MODEL'=>$listing['products_model'], 'PRODUCTS_SHORT_DESCRIPTION'=>$listing['products_short_description'], 'PRODUCTS_IMAGE'=>$image, 'PRODUCTS_PRICE'=>$price, 'PRODUCTS_LINK' =>xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']), 'BUTTON_BUY_NOW'=>$buy_now, 'PRODUCTS_FSK18' => $fsk18, 'SHIPPING_NAME'=>$shipping_status_name, 'SHIPPING_IMAGE'=>$shipping_status_image, 'PRODUCTS_ID'=>$listing['products_id']); Nur zu dumm das meine neuen Felder nicht angezeigt werden, was habe ich ?bersehen? Meine Vermutung das in der Datei inc/xtc_get_products_name.inc der Name irgendwie generiert wird? function xtc_get_products_name($product_id, $language = '') { if (empty($language)) $language = $_SESSION['languages_id']; $product_query = xtc_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $product_id . "' and language_id = '" . $language . "'"); $product = xtc_db_fetch_array($product_query); return $product['products_name']; } Ist dem so, oder liege ich v?llig daneben?
  12. Schon wieder eine Frage :i: in der admin/specials.php muss ich, um "meinen" Produktnamen in der Auwahlliste vollst?ndig angezeigt zu bekommen meine neuen Fleder ja auch hinzuf?gen. Nur sehe ich hier mal wieder nicht durch, wie muss die ?nderung aussehen: Ich denke mal hier m?ssen die neuen Felder rein: <td class="main"><?php echo TEXT_SPECIALS_PRODUCT; echo ($sInfo->products_name) ? "" : ''; ?></td> w?re das so richtig? <td class="main"><?php echo TEXT_SPECIALS_PRODUCT; echo ($sInfo->products_name) ? "" : ''; echo ($sInfo->products_car_manu) ? "" : ''; ?></td> Weiterhin denke ich ist der n?chste Eintrag hier zu finden, f?r das Auswahlfeld: <td class="main"><?php echo ($sInfo->products_name) ? $sInfo->products_name . ' <small>(' . xtc_format_price($price,1,1). ')</small>' : xtc_draw_products_pull_down('products_id', 'style="font-size:10px"', $specials_array); echo xtc_draw_hidden_field('products_price', $sInfo->products_price); ?></td> Hier fehlt mir v?llig der Ansatz wie ich meine 3 neuen Felder davor bekomme: <td class="main"><?php echo products_car_manu usw ($sInfo->products_name) ? $sInfo->products_name . ' <small>(' . xtc_format_price($price,1,1). ')</small>' : xtc_draw_products_pull_down('products_id', 'style="font-size:10px"', $specials_array); echo xtc_draw_hidden_field('products_price', $sInfo->products_price); ?></td>
  13. Es geht , es geht, es geht.... Jippi... ! :pint: :pint:
  14. Autsch !!!! :wall: :wall: :wall: :wall: Also doch blind.... grummel ...
  15. Hallo, Das w?re der Aufruf der Funktion: <tr> <td bgcolor="#FFCC33" valign="top" class="main"><?php echo xtc_image(DIR_WS_LANGUAGES . $languages[$i]['directory'] .'/'. $languages[$i]['image'], $languages[$i]['name']); ?><?php echo TEXT_PRODUCTS_CAR_MANU; ?><?php echo xtc_draw_input_field('products_car_manu[' . $languages[$i]['id'] . ']', (($products_car_manu[$languages[$i]['id']]) ? stripslashes($products_car_manu[$languages[$i]['id']]) : xtc_get_products_car_manu($pInfo->products_id, $languages[$i]['id'])),'size=60'); ?></td> </tr> und das die Funktion aus admin/includes/function/genral.php function xtc_get_products_car_manu($product_id, $language_id = 0) { if ($language_id == 0) $language_id = $_SESSION['languages_id']; $product_query = xtc_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $product_id . "' and language_id = '" . $language_id . "'"); $product = xtc_db_fetch_array($product_query); return $product['products_car_manu']; } , kann keinen Fehler entdecken, oder bin ich mal wieder blind? ...
×
×
  • Create New...