#1 (permalink)  
Alt 11.06.2010, 09:34
Neuer Benutzer
 
Registriert seit: 01.06.2010
Beiträge: 28
Daumen hoch Gelöst: product_listing mehrspaltig :)

Hallo Leutz, nachdem es hier keine Lösung zu o.g. Problem gab, hab ich einfach selbst getüftelt! Den PHP Code hab ich hier aus dem Forum von einer mehrspaltigen categorie_listing von RW4D.

Also hier meine product_listing_v1.html
Code:
  
{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 class="productPreview" width="100%" border="0" cellspacing="10" cellpadding="0">
      <tr> 
      {foreach name=aussen item=module_data from=$product_listing}
         	{php} 
            $col++; 
  		    {/php} 
                  <!-- Produkt - Bild -->
            {if $module_data.products_image!=''}
              <td class="productPreviewImage">
                  <table>
                    <tr>
                     <td class="product_previewImage1"> <a href="{$module_data.products_link}">{img img=$module_data.products_image type=m_thumb class=productImageBorder alt=$module_data.products_name}</a> </td>
                    </tr>
                    <tr>
                      <td>
                         <!-- Überschrift -->
                            <h2><a href="{$module_data.products_link}">{$module_data.products_name}</a></h2>
                         <!-- Zeitbeschränkung, wenn vorhanden -->
                          {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}
                         <!-- Stars 
                      		{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} -->
            	           <!-- Preis -->
                      		{if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'}
                      		<span class="price">{$module_data.products_price.formated}</span>
                      		<span class="taxandshippinginfo">({$module_data.products_tax_info.tax_desc})</span>
                      		{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}
                      	 <!-- Anzeige-Button 
                      		<div class="addtobasketlisting">
                      		<table border="0" cellspacing="0" cellpadding="2" align="center">
                        			<tr >
                                  <a href="{$module_data.products_link}">{button text=$smarty.const.BUTTON_PRODUCT_Link file='show.gif' type='form' btn_template='tpl_button_2.gif' space_left='25'}</a>
                        			</tr>
                      		</table>
                      		</div> -->
                      		{form type=formend}
                      		
                      </td> 
                    </tr>  
                    
                  </table>
                  <div class="hrproductpreview"></div> 
              </td> 
              {/if}
             
  
          {assign var=maxcol value=$smarty.const._STORE_MAX_CATEGORIES_PER_ROW}
          {php}
              $maxcol="3";
        		  if ($col>=$maxcol) { 
        		  $col=0; 
        		  echo '</tr><tr>';
        		   } 
          {/php}
      {/foreach} 
      </tr>
          
    </table>   

 <div class="hrproductpreview"></div>
<div id="NAVIGATION">
	<div class="COUNT">{$NAVIGATION_COUNT}</div>
	<div class="PAGES">{$NAVIGATION_PAGES}</div>
</div>{/if}
{$error_listing}
<!--ruft categorie_listing auf: in dieser werden die Neuen Artikel aufgerufen und ausgegeben --> 
 {$categories}
Der Wert von $maxcol="3"; kann natürlich beliebig geändert werden

Viel Spaß damit

Grüße


ps: ich suche immernoch Hilfe zu : erweiterte Suche mit Kategorie als Standard
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #2 (permalink)  
Alt 11.06.2010, 20:41
Erfahrener Benutzer
 
Registriert seit: 22.07.2009
Ort: Bad Bramstedt
Beiträge: 946
Standard

kannst mal ein link posten das man mal dein shop sieht
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
  #3 (permalink)  
Alt 14.06.2010, 06:49
Neuer Benutzer
 
Registriert seit: 01.06.2010
Beiträge: 28
Standard

Zitat:
Zitat von giller Beitrag anzeigen
kannst mal ein link posten das man mal dein shop sieht
Hi, der ist leider noch nicht Online, aber wie es aussieht ist ja klar
sieht so aus, wie der Templateshop von xtcommerce, nur eben nicht fest mit 2 Spalten, sondern sogar variabel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

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
Inseluschlag gelöst ! seeyou Modul Entwicklung 5 09.09.2010 08:01
VEYTON SHOP Artikelliste (product_listing) Mehrspaltig! PRAXIS Anleitungen - Patches - Downloads 0 10.06.2010 10:36


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:58 Uhr.

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

xt:Commerce is a SafeCharge brand