#11 (permalink)  
Alt 06.10.2008, 12:55
Benutzer
 
Registriert seit: 24.04.2007
Beiträge: 61
Standard Spalten wollen nicht, immer nur 1 Spalte

Hallo,
habe in die product_listing1.html folgenden Code aber es wird nur eine Spalte angezeigt was habe ich übersehen?wenn ich foreach höher setze bzw. tr davor und unten entsprechend hinter foreach, dann ist die Tabelle total durcheinander:
Code:
{config_load file="$language/lang_$language.conf" section="index"}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="10"></td>
  </tr>
</table>

<table width="100%" height="22px" border="0">
  <tr height="22px">
    <td valign="middle"class="contentsTopics" style="border:none; background-color:#eaeaea">&nbsp;{if $CATEGORIES_IMAGE}<img  src="{$CATEGORIES_IMAGE}" width="22px" height="20px"align=absmiddle style="margin-top:2px;margin-bottom:2px" alt="{$CATEGORIES_NAME}" />{/if}&nbsp;&nbsp;<strong>&nbsp;{$CATEGORIES_NAME}</strong></td>
  </tr>
</table>

<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="border-bottom: 1px solid; border-color: #cccccc;">&nbsp;</td>
  </tr>
</table>
{if $MANUFACTURER_DROPDOWN}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="main" align="right"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="main" align="right">{#text_show#}&nbsp;</td>
        <td class="main" align="right">{$MANUFACTURER_DROPDOWN}</td>
      </tr>
    </table>      </td>
  </tr>
</table>
{/if}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td align="center"> 
        <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-top: 0px solid; border-color: #d4d4d4;">
          {foreach name=aussen item=module_data from=$module_content}
{php}
$col++;
{/php} 
          <tr> 
            <td width="175" rowspan="2" valign="top" style="border-bottom: 1px solid; border-left: 1px solid; border-color: #cccccc;">&nbsp;{if $module_data.PRODUCTS_IMAGE!=''}<a href="{$module_data.PRODUCTS_LINK}"><img src="{$module_data.PRODUCTS_IMAGE}" style="margin-top: 5px" alt="{$module_data.PRODUCTS_NAME}" /></a>{/if}
			{if $module_data.PRODUCTS_FSK18=='true'}<br /><img src="{$tpl_path}img/fsk18.gif" alt="" />{/if}</td>
            <td align="left" class="main" colspan="2" style="border-right: 1px solid; border-color: #cccccc;"><a href="{$module_data.PRODUCTS_LINK}"><strong>{$module_data.PRODUCTS_NAME}</strong></a></td>
          </tr>
          <tr> 
            
          <td align="left" class="main" style="border-bottom: 1px solid; border-color: #cccccc;">{$module_data.PRODUCTS_SHORT_DESCRIPTION|truncate:100:"...":true} 
            <br />
            <strong>{$module_data.PRODUCTS_PRICE} </strong><br />
            <font face="Verdana, Arial, Helvetica, sans-serif" size="1">{$module_data.PRODUCTS_TAX_INFO}{$module_data.PRODUCTS_SHIPPING_LINK}</font> 
            {if $module_data.PRODUCTS_VPE}<br />{$module_data.PRODUCTS_VPE}{/if}
            </td><td class="main" style="border-bottom: 1px solid; border-right: 1px solid; border-color: #cccccc;"><table border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="right"><table width="140" border="0" cellpadding="5">
                    <tr>
                      <td align="center">{#text_shippingtime#}{if $module_data.PRODUCTS_SHIPPING_NAME}
                          <img src="{$module_data.PRODUCTS_SHIPPING_IMAGE}" alt="{$module_data.PRODUCTS_SHIPPING_NAME}" /><br />{/if}
                          {$module_data.PRODUCTS_BUTTON_BUY_NOW}</td>
                    </tr>
                  </table></td>
                </tr>
            </table>  </td>
          </tr>
          {php}
if ($col>=3) {
$col=0;
echo '</tr><tr>';
}
{/php}
{/foreach} 
      </table>
    </td>
  </tr>
</table>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>{$NAVIGATION}</td>
  </tr>
</table>

Geändert von 0etzi (06.10.2008 um 12:59 Uhr)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #12 (permalink)  
Alt 08.10.2008, 23:45
Neuer Benutzer
 
Registriert seit: 29.09.2008
Beiträge: 2
Standard Höhe der Spalten o. Textlänge.

Guten Abend, und vielen Dank an die Leute die sich bemühen den anderen zu helfen. Habe schon sehr viele Antworten auf meine Fragen hier gefunden.

ich habe auch eine Frage. das mit der Anzahl der Spalten Funktioniert wunderbaraber aber maximal 2 Spalten liegt das an dem Template? ( bei new_product kann ich merkwürdigerweise xbeliebige anzahl der Spalten eingeben)

Wie kann ich den Beschreibungstext auf eine bestimmte Anzahl der Symbole einschrenken oder die Höhe der Spalte (ist am sinnvollsten) verstellen kann?. den wenn die Spalten soooo hoch sind wie der ganze Text sieht es schrecklich aus.

Vielen Dank im Voraus!

Geändert von xxxpirat (09.10.2008 um 01:04 Uhr)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #13 (permalink)  
Alt 10.10.2008, 20:52
Neuer Benutzer
 
Registriert seit: 29.09.2008
Beiträge: 2
Standard

keiner ne Idee??? schade....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #14 (permalink)  
Alt 12.10.2008, 21:59
xt:Commerce Support Kunde
 
Registriert seit: 13.06.2007
Beiträge: 44
Standard

Bei mir funktioniert das mit den zwei Spalten leider auch nicht.

Ich habe lediglich die Anpassungen gemacht welche hier besprochen wurden.
Alles in der Originaldatei, also sonst wurde gar nichts verändert.

Aber es läuft nicht, die Artikel werden immer noch in einer Spalte angezeigt.

Hier mein Code, was ist daran nicht korrekt?

Code:
{config_load file="$language/lang_$language.conf" section="index"}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr valign="top">
    <td class="contentsTopics">{$CATEGORIES_NAME}</td>
    <td align="right">&nbsp;</td>
  </tr>
  <tr valign="top">
    <td class="contentsTopics">{$CATEGORIES_HEADING_TITLE}</td>
    <td align="right">&nbsp;</td>
  </tr>
  
</table>
{if $CATEGORIES_DESCRIPTION}<br />
{$CATEGORIES_DESCRIPTION}{/if}<br />{if $CATEGORIES_IMAGE}<img src="{$CATEGORIES_IMAGE}" alt="{$CATEGORIES_NAME}" />
<br />
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td style="border-bottom: 1px solid; border-color: #000000;">&nbsp;</td>
  </tr>
</table>
{/if}
{if $MANUFACTURER_DROPDOWN}<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="main" align="right"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="main" align="right">{#text_show#}&nbsp;</td>
        <td class="main" align="right">{$MANUFACTURER_DROPDOWN}</td>
      </tr>
    </table>      </td>
  </tr>
</table>
<br />
{/if}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td align="center"> 
        <table width="100%" border="0" cellpadding="0" cellspacing="0" style="border-top: 2px solid; border-color: #d4d4d4;">
  {foreach name=aussen item=module_data from=$module_content}
  {php} $col++; 
  {/php}
          <tr> 
            <td rowspan="2" style="border-bottom: 1px solid; border-color: #cccccc;">&nbsp;{if $module_data.PRODUCTS_IMAGE!=''}<a href="{$module_data.PRODUCTS_LINK}"><img src="{$module_data.PRODUCTS_IMAGE}" alt="{$module_data.PRODUCTS_NAME}" /></a>{/if}
			{if $module_data.PRODUCTS_FSK18=='true'}<br /><img src="{$tpl_path}img/fsk18.gif" alt="" />{/if}</td>
            <td align="left" class="main"><a href="{$module_data.PRODUCTS_LINK}"><strong>{$module_data.PRODUCTS_NAME}</strong></a></td>
          </tr>
          <tr> 
            
          <td align="left" class="main" style="border-bottom: 1px solid; border-color: #cccccc;">{$module_data.PRODUCTS_SHORT_DESCRIPTION} 
            <br />
            <strong>{$module_data.PRODUCTS_PRICE} </strong><br />
            {$module_data.PRODUCTS_TAX_INFO}{$module_data.PRODUCTS_SHIPPING_LINK} 
            {if $module_data.PRODUCTS_VPE}{$module_data.PRODUCTS_VPE}{/if} 
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="right"><table width="200" border="0">
                    <tr>
                      <td align="right">{if $module_data.SHIPPING_NAME}
                          <table width="200" border="0" cellpadding="0" cellspacing="0">
                            <tr valign="middle">
                              <td class="main">{#text_shippingtime#}</td>
                              {if $module_data.SHIPPING_IMAGE}
                              <td><img src="{$module_data.SHIPPING_IMAGE}" alt="{$module_data.SHIPPING_NAME}" /></td>
                              {/if}
                              <td class="main">{$module_data.SHIPPING_NAME}</td>
                            </tr>
                          </table>
                          {/if}
                          {$module_data.BUTTON_BUY_NOW}</td>
                    </tr>
                  </table></td>
                </tr>
            </table>            </td>
          </tr>
  {php} 
  if ($col>=2) {
  $col=0;
  echo '</tr><tr>';
  }
  {/php}
  {/foreach} 
      </table>
    </td>
  </tr>
</table>
<br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>{$NAVIGATION}</td>
  </tr>
</table>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #15 (permalink)  
Alt 17.10.2008, 10:45
Erfahrener Benutzer
 
Registriert seit: 06.10.2008
Beiträge: 105
Standard

Zitat:
Zitat von xxxpirat Beitrag anzeigen

Wie kann ich den Beschreibungstext auf eine bestimmte Anzahl der Symbole einschrenken oder die Höhe der Spalte (ist am sinnvollsten) verstellen kann?. den wenn die Spalten soooo hoch sind wie der ganze Text sieht es schrecklich aus.
Für Höhe der Spalte gibst du deinem td eine Klasse und sprichst es dann in der css mit td."Klassenname" direkt an.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #16 (permalink)  
Alt 17.10.2008, 10:49
Erfahrener Benutzer
 
Registriert seit: 06.10.2008
Beiträge: 105
Standard

Zitat:
Zitat von denderli Beitrag anzeigen

Hier mein Code, was ist daran nicht korrekt?
Hab mir jetzt zwar nicht alles ganz genau durchgelesen. Aber ich denke du solltest mal deine <tr>'s überprüfen.

Weil du in der Schleife soviele <tr>'s hast das du vielleicht den Umbruch den deine Schleife macht garnicht mehr mitkriegst? Deine Schleife ist korrekt!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #17 (permalink)  
Alt 15.01.2010, 19:48
Neuer Benutzer
 
Registriert seit: 23.09.2009
Beiträge: 5
Standard

habe das gleiche problem. mit den hier geposteten codes kriege ich allerdings immer smarty fehler. liegt das evtl. am template?

Hip Hop Klamotten, Kleidung Shop, Streetwear - online kaufen bei Gentlemens-Club.de <-- um den shop geht es
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #18 (permalink)  
Alt 16.02.2010, 01:27
Benutzer
 
Registriert seit: 02.02.2010
Beiträge: 59
Standard

Zitat:
Zitat von Gafo Beitrag anzeigen
habe das gleiche problem. mit den hier geposteten codes kriege ich allerdings immer smarty fehler. liegt das evtl. am template?

Hip Hop Klamotten, Kleidung Shop, Streetwear - online kaufen bei Gentlemens-Club.de <-- um den shop geht es

Hi Gafo,

ich glaube in Deinem Shop stimmt wohl was nicht so ganz:




Gruß,

Bodo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
ändern, auflistung, produkt

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
Produkt verlinken m2pdesign2 Admininterface 7 07.07.2008 22:29
xtc v2_0_rc_1_2 Gast warenkorb produkt ist weg jan2 Shopbereich 0 08.11.2005 20:07
2 Warenbest?nde, 1 Produkt ? Charon Installation und Konfiguration 1 26.02.2004 18:09


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:37 Uhr.

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

xt:Commerce is a SafeCharge brand