#1 (permalink)  
Alt 20.03.2009, 14:19
Erfahrener Benutzer
 
Registriert seit: 30.03.2008
Ort: LE
Beiträge: 100
Standard Artikel in mehrere Spalten?

Hallo,

ist es möglich Artikel in mehreren Spalten anzuordnen (2 oder 3).
Habe zu dem Thema leider nix im Handbuch gefunden.

Grüße
Thomas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 20.03.2009, 14:32
Benutzerbild von mzanier
xt:Commerce GmbH, Geschäftsführung
 
Registriert seit: 18.04.2003
Beiträge: 27.414
Standard

Natürlich, die komplette darstellung ist eine reine Templateangelegenheit.

Dies kann an jegliche Anforderung angepasst werden.
__________________
xt:Commerce Helpdesk
xt:Commerce Blog

xt:Commerce Warenwirtschaft

###

Offene Stellen bei xt:Commerce!
xt:Commerce stellt ein
###
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 20.03.2009, 14:41
Benutzerbild von dukie6666
VEYTON Service Partner
 
Registriert seit: 26.01.2004
Ort: Nueva Colombia/Paraguay
Beiträge: 1.855
Standard

hier:
templates\dein_template\xtCore\pages\product_listi ng\
sind die Dateien für das Produktlisting und können beliebig angepasst werden
__________________
Grüße Oliver


Zertifizierter xt:Commerce VEYTON Reseller & Service Partner
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #4 (permalink)  
Alt 20.03.2009, 16:38
Erfahrener Benutzer
 
Registriert seit: 30.03.2008
Ort: LE
Beiträge: 100
Standard

Läuft das genau wie bei V3 mit
PHP-Code:
{php
          
$col++; 
        {/
php

und dann noch:

{
php
        if (
$col>=3) { 
        
$col=0
        echo 
' ';
        } 
        {/
php
        {/foreach} 
??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #5 (permalink)  
Alt 20.03.2009, 17:17
Benutzerbild von dukie6666
VEYTON Service Partner
 
Registriert seit: 26.01.2004
Ort: Nueva Colombia/Paraguay
Beiträge: 1.855
Standard

das geht hier so:
Code:
  {foreach name=aussen item=module_data from=$product_listing}
  {php} $col++; 
  {/php}
Code:
  {php} 
  if ($col>=3) {
  $col=0;
  echo '';
  }
  {/php}
  {/foreach}
__________________
Grüße Oliver


Zertifizierter xt:Commerce VEYTON Reseller & Service Partner
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #6 (permalink)  
Alt 20.03.2009, 17:46
Erfahrener Benutzer
 
Registriert seit: 30.03.2008
Ort: LE
Beiträge: 100
Standard

Vielen Dank für die Info!

Grüße
Thomas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #7 (permalink)  
Alt 20.03.2009, 17:56
Erfahrener Benutzer
 
Registriert seit: 30.03.2008
Ort: LE
Beiträge: 100
Standard

Hallo,

irgendwie stell' ich mich mal wieder zu doof an.

PHP-Code:
  {foreach name=aussen item=module_data from=$product_listing}
  {
php$col++; 
  {/
php
kommt über die Tabelle die die Produkte beinhaltet.

Und

PHP-Code:
  {php
  if (
$col>=3) {
  
$col=0;
  echo 
'';
  }
  {/
php}
  {/foreach} 
kommt dann doch eigentlich nach dem </table>??
So dachte ich eigentlich.

Aber dabei tut sich gar nix. Ergo ich mache mal wieder etwas falsch!

Kann mir da nochmal einer unter die Schweißnassen Arme greifen??

Grüße
Thomas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #8 (permalink)  
Alt 20.03.2009, 18:53
Benutzer
 
Registriert seit: 07.11.2008
Beiträge: 91
Standard

Hallo, würde gerne da auch Hilfe bekommen. Habe soweit den Code in der product_listing_v1.html eingefügt wie zu sehen ist. Aber leider ändert sich an der Artkikelanzeige gar nichts. Habe aber die Scripte wie oben beschrieben eingefügt.

Würde mich auch über eine Antwort freuen und andere sicherlich auch.

MfG


PHP-Code:
{$categories}
{if 
$product_listing}
{if 
$heading_text}<h1>{$heading_text}</h1>{/if}
{if 
$PRODUCTS_DROPDOWN}{$PRODUCTS_DROPDOWN}{/if}

{if 
$sort_dropdown.options}
<
div class="products_sort">
{
form type=form name=sort_dropdown action='dynamic' method=get}
{
form type=hidden name=page value='categorie'}
{
form type=hidden name=cat value=$current_category_id}
{
form type=select name=sorting value=$sort_dropdown.options default='' onchange='this.form.submit();'}
{
form type=formend}
</
div>
{/if}

{if 
$MANUFACTURER_DROPDOWN}
<
div class="products_sort">
{if 
$MANUFACTURER_DROPDOWN}{$MANUFACTURER_DROPDOWN}{/if}
</
div>
{/if}

{if 
$manufacturer}
{
$manufacturer.MANUFACTURER.manufacturers_description}
{/if}

<
div class="hrproductpreview"></div>
  {foreach 
name=aussen item=module_data from=$product_listing}
  {
php$col++; 
  {/
php}
<
table class="productPreview" width="100%" border="0" cellspacing="0" cellpadding="0">
  <
tr>
    {if 
$module_data.products_image!=''}<td class="productPreviewImage"><a href="{$module_data.products_link}">{img img=$module_data.products_image type=m_info class=productImageBorder alt=$module_data.products_name}</a></td>{/if}
    <
td class="productPreviewContent">
        <
h2><a href="{$module_data.products_link}">{$module_data.products_name}</a></h2>
        {if 
$module_data.review_stars_rating}
            <
div class="reviews_rating_light"><div class="reviews_rating_dark" style="width:{$module_data.review_stars_rating}%"></div></div>
        {/if}
        {if 
$module_data.products_short_description}<p>{$module_data.products_short_description}</p>{/if}
        {if 
$smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}
        <
class="price">{$module_data.products_price.formated}</p>
        <
class="taxandshippinginfo">{$module_data.products_tax_info.tax_desc}{if $module_data.products_shipping_link}<a href="{$module_data.products_shipping_link}target="_blank" rel="nofollow">{txt key=TEXT_EXCL_SHIPPING}</a>{/if}</p>
        {if 
$module_data.base_price}<class="vpe">{$module_data.base_price.price} {txt key=TEXT_SHIPPING_BASE_PER} {$module_data.base_price.vpe.name}</p>{/if}
        {/if}
        {if 
$module_data.products_weight 0}<class="taxandshippinginfo">{txt key=TEXT_PRODUCTS_WEIGHT}: {$module_data.products_weightKG</p>{/if}
        {if 
$module_data.shipping_status}<class="shippingtime">{txt key=TEXT_SHIPPING_STATUS}&nbsp;{$module_data.shipping_status}</p>{/if}

        {if 
$module_data.stock_image}
            <
class="stockimage">{img img=$module_data.stock_image.image type=t_img_stockrules alt=$module_data.stock_image.name}</p>
            <
class="stockimagetext">{$module_data.stock_image.name}</p>
        {/if}

        {if 
$module_data.allow_add_cart eq 'true'}
        {
form type=form name=product action='dynamic' link_params=getParams method=post}
        {
form type=hidden name=action value=add_product}
        {
form type=hidden name=product value=$module_data.products_id}
        <
div class="addtobasketlisting">
        <
table border="0" cellspacing="0" cellpadding="2">
              <
tr>
            <
td style="width:100%">{form type=text name=qty value=1 style='width:50px;'}</td>
            <
td>{button text=$smarty.const.BUTTON_ADD_CART file='button_in_cart.gif' type='form' btn_template='tpl_button_2.gif' space_left='25'}</td>
              </
tr>
        </
table>
        </
div>
        {
form type=formend}
        {/if}

    </
td>
  </
tr>
</
table>
<
div class="hrproductpreview"></div>
 
  {
php
  if (
$col>=3) {
  
$col=0;
  echo 
'';
  }
  {/
php}
  {/foreach}

<
div id="NAVIGATION">
    <
div class="COUNT">{$NAVIGATION_COUNT}</div>
    <
div class="PAGES">{$NAVIGATION_PAGES}</div>
</
div>{/if}
{
$error_listing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #9 (permalink)  
Alt 20.03.2009, 19:10
Benutzerbild von dukie6666
VEYTON Service Partner
 
Registriert seit: 26.01.2004
Ort: Nueva Colombia/Paraguay
Beiträge: 1.855
Standard

naja...so bringt das ja auch nichts.
Die schleife muss ja zwischen <tr> bei einer Tabelle und dann nach x Spalten umbrechen.

Hier der Code für das Standardtemplate - 2Spaltig:
Code:
{$categories}
{if $product_listing}
{if $heading_text}<h1>{$heading_text}</h1>{/if}
{if $PRODUCTS_DROPDOWN}{$PRODUCTS_DROPDOWN}{/if}
{if $sort_dropdown.options}
<div class="products_sort">
{form type=form name=sort_dropdown action='dynamic' method=get}
{form type=hidden name=page value='categorie'}
{form type=hidden name=cat value=$current_category_id}
{form type=select name=sorting value=$sort_dropdown.options default='' onchange='this.form.submit();'}
{form type=formend}
</div>
{/if}
{if $MANUFACTURER_DROPDOWN}
<div class="products_sort">
{if $MANUFACTURER_DROPDOWN}{$MANUFACTURER_DROPDOWN}{/if}
</div>
{/if}
{if $manufacturer}
{$manufacturer.MANUFACTURER.manufacturers_description}
{/if}
<div class="hrproductpreview"></div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
{foreach name=aussen item=module_data from=$product_listing}
  {php} $col++; 
  {/php}
    <td class="main">
<table class="productPreview" width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    {if $module_data.products_image!=''}<td class="productPreviewImage"><a href="{$module_data.products_link}">{img img=$module_data.products_image type=m_info class=productImageBorder alt=$module_data.products_name}</a></td>{/if}
    <td class="productPreviewContent">
  <h2><a href="{$module_data.products_link}">{$module_data.products_name}</a></h2>
  {if $module_data.date_available!=''}
  <ul class="info_info">
   <li class="infoInfo">{txt key=TEXT_PRODUCT_AVAILABLE} {$module_data.date_available|date_format:"%A, %B %e, %Y"}</li>
  </ul>
  {/if}
  {if $module_data.review_stars_rating}
   <div class="reviews_rating_light"><div class="reviews_rating_dark" style="width:{$module_data.review_stars_rating}%"></div></div>
  {/if}
  {if $module_data.products_short_description}<p>{$module_data.products_short_description}</p>{/if}
  {if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}
  <p class="price">{$module_data.products_price.formated}</p>
  <p class="taxandshippinginfo">{$module_data.products_tax_info.tax_desc}{if $module_data.products_shipping_link}<a href="{$module_data.products_shipping_link}" target="_blank" rel="nofollow">{txt key=TEXT_EXCL_SHIPPING}</a>{/if}</p>
  {if $module_data.base_price}<p class="vpe">{$module_data.base_price.price} {txt key=TEXT_SHIPPING_BASE_PER} {$module_data.base_price.vpe.name}</p>{/if}
  {/if}
  {if $module_data.products_weight > 0}<p class="taxandshippinginfo">{txt key=TEXT_PRODUCTS_WEIGHT}: {$module_data.products_weight} KG</p>{/if}
  {if $module_data.shipping_status}<p class="shippingtime">{txt key=TEXT_SHIPPING_STATUS}&nbsp;{$module_data.shipping_status}</p>{/if}
  {if $module_data.stock_image}
            <p class="stockimage">{img img=$module_data.stock_image.image type=t_img_stockrules alt=$module_data.stock_image.name}</p>
   <p class="stockimagetext">{$module_data.stock_image.name}</p>
  {/if}
  {if $module_data.allow_add_cart eq 'true'}
  {form type=form name=product action='dynamic' link_params=getParams method=post}
  {form type=hidden name=action value=add_product}
  {form type=hidden name=product value=$module_data.products_id}
  <div class="addtobasketlisting">
  <table border="0" cellspacing="0" cellpadding="2">
     <tr>
      <td style="width:100%">{form type=text name=qty value=1 style='width:50px;'}</td>
      <td>{button text=$smarty.const.BUTTON_ADD_CART file='button_in_cart.gif' type='form' btn_template='tpl_button_2.gif' space_left='25'}</td>
     </tr>
  </table>
  </div>
  {form type=formend}
  {/if}
 </td>
  </tr>
</table>
<div class="hrproductpreview"></div>
</td>
  {php} 
  if ($col>=2) {
  $col=0;
  echo '</tr><tr>';
  }
  {/php}
  {/foreach}  
  </tr>
</table>

<div id="NAVIGATION">
 <div class="COUNT">{$NAVIGATION_COUNT}</div>
 <div class="PAGES">{$NAVIGATION_PAGES}</div>
</div>{/if}
{$error_listing}
eleganter ist natürlich wenn man die ganzen Tabellen rausnimmt und alles mit Listen macht.
__________________
Grüße Oliver


Zertifizierter xt:Commerce VEYTON Reseller & Service Partner
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #10 (permalink)  
Alt 20.03.2009, 21:12
Erfahrener Benutzer
 
Registriert seit: 30.03.2008
Ort: LE
Beiträge: 100
Standard

Hallo Oliver

hat prima geklappt!

Danke nochmals für den Tip!

Grüße
Thomas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
artikel, spalten

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
neue Artikel in allen Unterkategorien anzeigen shd Shopbereich 6 24.02.2011 00:06
verschiedene Versandkosten f?r Artikel Big LeMouski Installation und Konfiguration 2 20.04.2006 05:43


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:14 Uhr.

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

xt:Commerce is a SafeCharge brand