anabolexx Posted October 10, 2006 Report Share Posted October 10, 2006 hi ich habe mal eine frage www.mikes-fitness-store.de/shop (der shop ist noch lange nicht fertig,bin noch am testen) und zwar habe ich folgendes problem wenn ich z.b. den testartikel 1 anklicke sieht man das oben neben dem logo jetzt jede menge platz ist,das soll natürlich nicht sein. nun zu meiner frage. wie kann ich das layout der artikel ändern das der text unter dem bild steht und nicht daneben? denn dann wird das wohl glaube ich mit dem logo wieder hin hauen vielen dank füreure hilfe p.s.ich habe ein gambio shop Link to comment Share on other sites More sharing options...
supervisior Posted October 10, 2006 Report Share Posted October 10, 2006 Dazu musst Du entweder Dein Gesamtlayout auf eine feste Breite bringen, eben so breit wie die Header Grafik ist oder die Größe des Header Bildes in % angeben, aber das ist eine sehr unschöne Methode. Das geschickteste wär wohl, wenn Du Dir für die Header Grafik was anderes einfallen lässt und zwar etwas, was sich bei der 100% Darstellung genauso verhält wie der Shop darunter. Alles verstanden? Link to comment Share on other sites More sharing options...
supervisior Posted October 10, 2006 Report Share Posted October 10, 2006 Muss mich leicht korrigieren, bzw. was ergänzen. Dir hats in der product_listing was in der Formatierung zerhauen, bzw. da hast Du wohl eine feste Breite eingestellt, so dass es das ganze Layout sprengt. Link to comment Share on other sites More sharing options...
anabolexx Posted October 10, 2006 Author Report Share Posted October 10, 2006 hiermal die product_listing.php was und wo muß ich was umschreiben? <?php /* ----------------------------------------------------------------------------------------- $Id: product_listing.php 1286 2005-10-07 10:10:18Z mz $ XT-Commerce - community made shopping http://www.xt-commerce.com Copyright © 2003 XT-Commerce ----------------------------------------------------------------------------------------- based on: © 2000-2001 The Exchange Project (earlier name of osCommerce) © 2002-2003 osCommerce(product_listing.php,v 1.42 2003/05/27); www.oscommerce.com © 2003 nextcommerce (product_listing.php,v 1.19 2003/08/1); www.nextcommerce.org Released under the GNU General Public License ---------------------------------------------------------------------------------------*/ $module_smarty = new Smarty; $module_smarty->assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/'); $result = true; // include needed functions require_once (DIR_FS_INC.'xtc_get_all_get_params.inc.php'); require_once (DIR_FS_INC.'xtc_get_vpe_name.inc.php'); $listing_split = new splitPageResults($listing_sql, (int)$_GET['page'], MAX_DISPLAY_SEARCH_RESULTS, 'p.products_id'); $module_content = array (); if ($listing_split->number_of_rows > 0) { $navigation = ' <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText">'.$listing_split->display_count(TEXT_DISPLAY_NUMBER_OF_PRODUCTS).'</td> <td class="smallText" align="right">'.TEXT_RESULT_PAGE.' '.$listing_split->display_links(MAX_DISPLAY_PAGE_LINKS, xtc_get_all_get_params(array ('page', 'info', 'x', 'y'))).'</td> </tr> </table>'; if (GROUP_CHECK == 'true') { $group_check = "and c.group_permission_".$_SESSION['customers_status']['customers_status_id']."=1 "; } $category_query = xtDBquery("select cd.categories_description, cd.categories_name, cd.categories_heading_title, c.listing_template, c.categories_image from ".TABLE_CATEGORIES." c, ".TABLE_CATEGORIES_DESCRIPTION." cd where c.categories_id = '".$current_category_id."' and cd.categories_id = '".$current_category_id."' ".$group_check." and cd.language_id = '".$_SESSION['languages_id']."'"); $category = xtc_db_fetch_array($category_query,true); $image = ''; if ($category['categories_image'] != '') $image = DIR_WS_IMAGES.'categories/'.$category['categories_image']; $module_smarty->assign('CATEGORIES_NAME', $category['categories_name']); $module_smarty->assign('CATEGORIES_HEADING_TITLE', $category['categories_heading_title']); $module_smarty->assign('CATEGORIES_IMAGE', $image); $module_smarty->assign('CATEGORIES_DESCRIPTION', $category['categories_description']); $rows = 0; $listing_query = xtDBquery($listing_split->sql_query); while ($listing = xtc_db_fetch_array($listing_query, true)) { $rows ++; $price = $xtPrice->xtcGetPrice($listing['products_id'], $format = true, 1, $listing['products_tax_class_id'], $listing['products_price'], 1); if ($_SESSION['customers_status']['customers_status_show_price'] != '0') { $vpePrice = ''; if ($listing['products_vpe_status'] == 1 && $listing['products_vpe_value'] != 0.0 && $price['plain'] > 0) $vpePrice = $xtPrice->xtcFormat($price['plain'] * (1 / $listing['products_vpe_value']), true).TXT_PER.xtc_get_vpe_name($listing['products_vpe']); $buy_now = ''; if ($_SESSION['customers_status']['customers_fsk18'] == '1') { if ($listing['products_fsk18'] == '0') $buy_now = '<a href="'.xtc_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id='.$listing['products_id'].'&'.xtc_get_all_get_params(array ('action')), 'NONSSL').'">'.xtc_image_button('button_buy_now.gif', TEXT_BUY.$listing['products_name'].TEXT_NOW).'</a>'; } else { $buy_now = '<a href="'.xtc_href_link(basename($PHP_SELF), 'action=buy_now&BUYproducts_id='.$listing['products_id'].'&'.xtc_get_all_get_params(array ('action')), 'NONSSL').'">'.xtc_image_button('button_buy_now.gif', TEXT_BUY.$listing['products_name'].TEXT_NOW).'</a>'; } $fsk18 = ''; if ($listing['products_fsk18'] == '1') $fsk18 = 'true'; } $image = ''; if ($listing['products_image'] != '') $image = DIR_WS_THUMBNAIL_IMAGES.$listing['products_image']; if (ACTIVATE_SHIPPING_STATUS == 'true') { $shipping_status_name = $main->getShippingStatusName($listing['products_shippingtime']); $shipping_status_image = $main->getShippingStatusImage($listing['products_shippingtime']); } if ($_SESSION['customers_status']['customers_status_show_price'] != 0) { $tax_rate = $xtPrice->TAX[$listing['products_tax_class_id']]; // price incl tax if ($tax_rate > 0 && $_SESSION['customers_status']['customers_status_show_price_tax'] != 0) { $tax_info = sprintf(TAX_INFO_INCL, $tax_rate.'%'); } if ($tax_rate == 0 && $_SESSION['customers_status']['customers_status_show_price_tax'] != 0) { $tax_rate = '0'; $tax_info = sprintf(TAX_INFO_INCL, $tax_rate.'%'); } // excl tax + tax at checkout if ($tax_rate > 0 && $_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 1) { $tax_info = sprintf(TAX_INFO_ADD, $tax_rate.'%'); } // excl tax if ($tax_rate > 0 && $_SESSION['customers_status']['customers_status_show_price_tax'] == 0 && $_SESSION['customers_status']['customers_status_add_tax_ot'] == 0) { $tax_info = sprintf(TAX_INFO_EXCL, $tax_rate.'%'); } } $ship_info=""; if (SHOW_SHIPPING=='true') { $ship_info=' '.SHIPPING_EXCL.' <a href="'.xtc_href_link(FILENAME_CONTENT, 'coID='.SHIPPING_INFOS).'">'.SHIPPING_COSTS.'</a>'; } $module_content[] = array ('PRODUCTS_NAME' => $listing['products_name'], 'PRODUCTS_MODEL' => $listing['products_model'], 'PRODUCTS_EAN' => $listing['products_ean'], 'PRODUCTS_TAX_INFO' => $tax_info, 'PRODUCTS_SHIPPING_LINK' => $ship_info, 'PRODUCTS_SHORT_DESCRIPTION' => $listing['products_short_description'], 'PRODUCTS_IMAGE' => $image, 'PRODUCTS_PRICE' => $price['formated'], 'PRODUCTS_VPE' => $vpePrice, 'PRODUCTS_LINK' => xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link($listing['products_id'],$listing['products_name'])), 'BUTTON_BUY_NOW' => $buy_now, 'PRODUCTS_FSK18' => $fsk18, 'SHIPPING_NAME' => $shipping_status_name, 'SHIPPING_IMAGE' => $shipping_status_image, 'PRODUCTS_ID' => $listing['products_id']); } } else { // no product found $result = false; } // get default template if ($category['listing_template'] == '' or $category['listing_template'] == 'default') { $files = array (); if ($dir = opendir(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_listing/')) { while (($file = readdir($dir)) !== false) { if (is_file(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_listing/'.$file) and ($file != "index.html") and (substr($file, 0, 1) !=".")) { $files[] = array ('id' => $file, 'text' => $file); } //if } // while closedir($dir); } $category['listing_template'] = $files[0]['id']; } if ($result != false) { $module_smarty->assign('MANUFACTURER_DROPDOWN', $manufacturer_dropdown); $module_smarty->assign('language', $_SESSION['language']); $module_smarty->assign('module_content', $module_content); $module_smarty->assign('NAVIGATION', $navigation); // set cache ID if (!CacheCheck()) { $module_smarty->caching = 0; $module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/product_listing/'.$category['listing_template']); } else { $module_smarty->caching = 1; $module_smarty->cache_lifetime = CACHE_LIFETIME; $module_smarty->cache_modified_check = CACHE_CHECK; $cache_id = $current_category_id.'_'.$_SESSION['language'].'_'.$_SESSION['customers_status']['customers_status_name'].'_'.$_SESSION['currency'].'_'.$_GET['manufacturers_id'].'_'.$_GET['filter_id'].'_'.$_GET['page'].'_'.$_GET['keywords'].'_'.$_GET['categories_id'].'_'.$_GET['pfrom'].'_'.$_GET['pto'].'_'.$_GET['x'].'_'.$_GET['y']; $module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/product_listing/'.$category['listing_template'], $cache_id); } $smarty->assign('main_content', $module); } else { $error = TEXT_PRODUCT_NOT_FOUND; include (DIR_WS_MODULES.FILENAME_ERROR_HANDLER); } ?> Link to comment Share on other sites More sharing options...
supervisior Posted October 10, 2006 Report Share Posted October 10, 2006 Na mit der .php Datei hat das nun wirklich nichts zu tun, sondern wenn dann in der Temlate Datei. Dort formatierst Du doch! Link to comment Share on other sites More sharing options...
supervisior Posted October 10, 2006 Report Share Posted October 10, 2006 Nimm mal aus dem Artikel die ganzen Testbuchstaben raus, dann löst sich Dein Probelm von alleine Link to comment Share on other sites More sharing options...
supervisior Posted October 10, 2006 Report Share Posted October 10, 2006 Hast Du gesehen, was passiert, wenn man so viele zeichen ohne Leerzeichen in das Bewertungsfeld eingibt? Link to comment Share on other sites More sharing options...
anabolexx Posted October 10, 2006 Author Report Share Posted October 10, 2006 ups hatte ausversehen den quelltext der falschen datei hochgeladen. hat hingehauen. manchmal sieht man den wald vor lauter bäumen nicht !!! vielen dank für deine hilfe. bevor ich da geguckt hätte hätte ich bestimmt den ganzen shop umgeschrieben:rolleyes: Link to comment Share on other sites More sharing options...
anabolexx Posted October 10, 2006 Author Report Share Posted October 10, 2006 nochmal eine frage wo genau kann ich den eine feste breite einstellen. gibt es sowas wie automatischen zellenumbruch? wenn ich zuviele zeichen in die artikelbeschreibung reinschreibe passiert das gleiche.wie mit der bewertung (die du gesprengt hast) was muß ich ändern? Link to comment Share on other sites More sharing options...
supervisior Posted October 10, 2006 Report Share Posted October 10, 2006 Du verlangst mir gerade einen HTML Kurs ab! Versuchs mal bei Stefan Münz. http://www.selfhtml.de/ Dort findest Du alles, was DU wissen musst. Link to comment Share on other sites More sharing options...
anabolexx Posted October 10, 2006 Author Report Share Posted October 10, 2006 jo danke werde mir das mal angucken Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.